/* ============================================================
   Immobilien Detail / Exposé Page Styles
   Best Practice: consistent spacing, visual hierarchy, polish
   ============================================================ */

/* Bildergalerie */
.immo-gallery-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.immo-gallery-card .card-body {
    padding: 0;
}
.immo-gallery-main {
    position: relative;
    background: #f0f0f0;
    cursor: pointer;
}
.immo-gallery-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.immo-gallery-main img:hover {
    opacity: 0.95;
}

/* Thumbnail-Bereich */
.immo-thumbs-wrap {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}
.immo-thumbs-wrap .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 12px;
}
.immo-thumbs-wrap .nav-tabs .nav-link {
    font-size: 0.85rem;
    padding: 6px 14px;
    border: none;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.immo-thumbs-wrap .nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}
.immo-thumbnail {
    width: 88px;
    height: 66px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.85;
}
.immo-thumbnail:hover,
.immo-thumbnail.active {
    border-color: #0d6efd;
    opacity: 1;
    transform: translateY(-1px);
}

/* Eckdaten-Box */
.immo-eckdaten-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.immo-eckdaten-card .card-body {
    padding: 20px 24px;
}
.immo-eckdaten-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.immo-eckdaten-item .label {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 2px;
}
.immo-eckdaten-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* Detail Tabs Card */
.immo-tabs-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.immo-tabs-card .card-body {
    padding: 24px;
}
.immo-tabs-card .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}
.immo-tabs-card .nav-tabs .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    padding: 10px 18px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.immo-tabs-card .nav-tabs .nav-link:hover {
    color: #495057;
}
.immo-tabs-card .nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}
.immo-tabs-card .tab-content {
    padding-top: 20px;
    font-size: 0.93rem;
    line-height: 1.7;
    color: #444;
}

/* Sidebar Cards */
.immo-sidebar-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.immo-sidebar-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 14px 20px;
}
.immo-sidebar-card .card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}
.immo-sidebar-card .card-body {
    padding: 20px;
}

/* Preis-Box */
.immo-price-card {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(13,110,253,0.25);
}
.immo-price-card .card-body {
    padding: 24px 20px;
    text-align: center;
}
.immo-price-card .price {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.immo-price-card .price-type {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}
.immo-price-card .badge-provisionsfrei {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 10px;
    backdrop-filter: blur(4px);
}
.immo-price-card .price-detail {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-top: 6px;
}

/* Faktenliste in Sidebar */
.immo-facts-table {
    margin: 0;
    font-size: 0.88rem;
}
.immo-facts-table td {
    padding: 10px 20px;
    vertical-align: middle;
}
.immo-facts-table tr:last-child td {
    border-bottom: none;
}
.immo-facts-table .fact-label {
    color: #6c757d;
}
.immo-facts-table .fact-value {
    font-weight: 600;
    text-align: right;
}

/* Kontaktformular */
.immo-contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}
.immo-contact-form .form-control,
.immo-contact-form .form-select {
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.immo-contact-form .form-control:focus,
.immo-contact-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.immo-contact-form .btn-primary {
    padding: 12px;
    font-weight: 600;
    font-size: 0.93rem;
    border-radius: 8px;
}
.immo-contact-form .form-check {
    font-size: 0.82rem;
}

/* Makler-Box */
.immo-makler-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
.immo-makler-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.immo-makler-contact a {
    font-size: 0.88rem;
    text-decoration: none;
}
.immo-makler-contact a:hover {
    text-decoration: underline;
}

/* Ausstattung Features */
.immo-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
}
.immo-feature-item i {
    color: #198754;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Energie-Tabelle */
.immo-energy-table {
    font-size: 0.9rem;
}
.immo-energy-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.immo-energy-table td:first-child {
    color: #6c757d;
    width: 40%;
    font-weight: 500;
}

/* Dokument-Liste */
.immo-doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.immo-doc-item:last-child {
    border-bottom: none;
}
.immo-doc-item i {
    font-size: 1.5rem;
    color: #dc3545;
}
.immo-doc-item a {
    font-weight: 500;
}
.immo-doc-item .doc-size {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Status-Banner */
.immo-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    z-index: 3;
    pointer-events: none;
}
.immo-status-overlay span {
    background: #dc3545;
    color: #fff;
    padding: 8px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-15deg);
}
.immo-status-overlay.reserviert span {
    background: #ffc107;
    color: #000;
}

/* Lightbox */
.immo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.immo-lightbox.active {
    display: flex;
}
.immo-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.immo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}
.immo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    z-index: 10000;
}
.immo-lightbox-prev { left: 10px; }
.immo-lightbox-next { right: 10px; }

/* Sticky Sidebar */
@media (min-width: 992px) {
    .immo-sidebar-sticky {
        position: sticky;
        top: 80px;
    }
}

/* Breadcrumb */
.immo-breadcrumb .pagetitle h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .immo-gallery-main img {
        height: 360px;
    }
    .immo-thumbnail {
        width: 72px;
        height: 54px;
    }
}
@media (max-width: 768px) {
    .immo-gallery-main img {
        height: 260px;
    }
    .immo-thumbnail {
        width: 64px;
        height: 48px;
    }
    .immo-eckdaten-card .card-body {
        padding: 16px;
    }
    .immo-tabs-card .card-body {
        padding: 16px;
    }
    .immo-tabs-card .nav-tabs .nav-link {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
    .immo-price-card .price {
        font-size: 1.5rem;
    }
    .immo-sidebar-card .card-body {
        padding: 16px;
    }
}
