/* ==========================================================================
   Property Detail Page Styles - GEWEL Premium
   Selon CLAUDE.md : dominante or #BFA174, accents dorés, espacements généreux
   ========================================================================== */

@import url('../base.css');

/* Breadcrumb */
.breadcrumb {
    background: var(--paper);
    padding: calc(var(--header-height) + var(--top-band-height) + 20px) 0 20px;
    border-bottom: 1px solid rgba(191, 161, 116, 0.1);
}

.breadcrumb ol {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--ink-700);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--gold-500);
}

.breadcrumb li:not(:last-child)::after {
    content: "→";
    margin-left: 12px;
    color: var(--ink-500);
}

/* Property Header */
.property-header {
    background: white;
    padding: var(--g-lg) 0;
    border-bottom: 1px solid rgba(191, 161, 116, 0.1);
}

.property-header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--g-md);
    align-items: start;
}

.property-title {
    font-size: 32px;
    font-weight: var(--font-bold);
    margin-bottom: 8px;
    color: var(--ink-900);
}

.property-location {
    color: var(--ink-700);
    font-size: 16px;
    margin-bottom: var(--g-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-specs {
    display: flex;
    gap: var(--g-md);
    font-size: 14px;
    color: var(--ink-700);
}

.property-spec {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-price {
    text-align: right;
}

.property-price .price {
    font-size: 36px;
    font-weight: var(--font-bold);
    color: var(--ink-900);
}

.property-price .price span {
    font-size: 18px;
    color: var(--ink-700);
}

.property-availability {
    background: var(--gold-500);
    color: #111;
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    display: inline-block;
}

/* Property Gallery */
.property-gallery {
    padding: var(--g-lg) 0;
    background: white;
}

.gallery-main {
    position: relative;
    height: 600px;
    margin-bottom: var(--g-md);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* Gold accent on main gallery image */
.gallery-main::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
    background: var(--gold-500);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--g-sm);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--g-md);
}

.gallery-thumb {
    position: relative;
    height: 120px;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Details */
.property-details {
    padding: var(--g-lg) 0;
    background: var(--paper);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--g-xl);
}

.property-description h3 {
    margin-bottom: var(--g-sm);
    color: var(--ink-900);
}

.property-description p {
    margin-bottom: var(--g-sm);
    line-height: 1.8;
    color: var(--ink-700);
}

.property-features {
    background: white;
    padding: var(--g-md);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
}

.features-section {
    margin-bottom: var(--g-md);
}

.features-section:last-child {
    margin-bottom: 0;
}

.features-section h4 {
    color: var(--gold-500);
    margin-bottom: var(--g-sm);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--font-semibold);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--paper);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-700);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: var(--gold-500);
    font-weight: bold;
}

/* Contact Section */
.property-contact {
    padding: var(--g-lg) 0;
    background: white;
}

.contact-form-wrapper {
    background: var(--paper);
    padding: var(--g-lg);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
}

.contact-form h3 {
    margin-bottom: var(--g-sm);
    color: var(--ink-900);
}

.contact-form p {
    margin-bottom: var(--g-md);
    color: var(--ink-700);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--g-sm);
}

.form-group {
    margin-bottom: var(--g-sm);
}

.btn-full {
    width: 100%;
}

/* Map Section */
.property-map {
    padding: var(--g-lg) 0;
    background: var(--paper);
}

.map-container {
    height: 450px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--paper);
    position: relative;
    transition: all var(--transition-base);
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
}

.map-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Interactive overlay for map link */
.map-interactive-overlay {
    position: absolute;
    bottom: var(--g-sm);
    right: var(--g-sm);
    z-index: 10;
}

.map-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-500);
    color: white;
    padding: 12px 16px;
    border-radius: var(--r-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-open-link:hover {
    background: var(--gold-600);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(191, 161, 116, 0.4);
}

.map-open-link:active {
    transform: translateY(0);
}

.map-open-text {
    white-space: nowrap;
}

.map-open-link svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Similar Properties Section */
.similar-properties {
    padding: var(--g-xl) 0;
    background: white;
}

.similar-properties h2 {
    text-align: center;
    margin-bottom: var(--g-lg);
    color: var(--ink-900);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--g-lg);
    margin-top: var(--g-lg);
}

/* Related Properties */
.related-properties {
    padding: var(--g-lg) 0;
    background: white;
}

.related-properties h3 {
    margin-bottom: var(--g-lg);
    text-align: center;
    color: var(--ink-900);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--g-lg);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-medium);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    font-family: var(--font-base);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Gallery Navigation - Remove duplicate declaration */

.gallery-nav {
    background: var(--gold-500);
    border: none;
    color: #111;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.gallery-nav:hover {
    background: var(--gold-600);
    transform: scale(1.1);
}

.thumb {
    background: none;
    border: 3px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    padding: 0;
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.thumb.active {
    border-color: var(--gold-500);
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Hero Improvements */
.property-hero {
    background: white;
    padding: calc(var(--header-height) + var(--top-band-height) + 40px) 0 40px;
}

.property-meta-primary {
    display: flex;
    align-items: center;
    gap: var(--g-md);
    margin-top: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-700);
    font-size: 16px;
}

.price-highlight {
    font-size: 24px;
    font-weight: var(--font-bold);
    color: var(--gold-500);
    background: var(--gold-500);
    color: #111;
    padding: 8px 16px;
    border-radius: var(--r-md);
}

/* Content Layout Improvements */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--g-xl);
    margin-top: var(--g-lg);
}

.content-main {
    /* styles for main content area */
}

.content-sidebar {
    /* styles for sidebar */
}

.info-section {
    margin-bottom: var(--g-xl);
}

.info-section h2 {
    color: var(--ink-900);
    margin-bottom: var(--g-md);
    font-size: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--g-sm);
    margin-bottom: var(--g-md);
}

.feature {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: white;
    border-radius: var(--r-md);
    border: 1px solid rgba(191, 161, 116, 0.1);
}

.feature-label {
    font-size: 14px;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.feature-value {
    font-weight: var(--font-semibold);
    color: var(--ink-900);
    font-size: 16px;
}

/* Included Features Grid */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--g-md);
}

.included-category h3 {
    color: var(--gold-500);
    font-size: 18px;
    margin-bottom: var(--g-sm);
    font-weight: var(--font-semibold);
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 6px 0;
    color: var(--ink-700);
    border-bottom: 1px solid rgba(191, 161, 116, 0.1);
    position: relative;
    padding-left: 20px;
}

.included-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-500);
    font-weight: bold;
}

.included-list li:last-child {
    border-bottom: none;
}

/* Location Benefits */
.location-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--g-sm);
    margin-bottom: var(--g-md);
}

.proximity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--r-md);
    border: 1px solid rgba(191, 161, 116, 0.1);
}

.proximity-item svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* Contact Card */
.contact-card {
    background: white;
    padding: var(--g-lg);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: calc(var(--header-height) + var(--top-band-height) + 20px);
}

.contact-card h2 {
    margin-bottom: var(--g-md);
    color: var(--ink-900);
    font-size: 20px;
}

.price-recap, .availability-recap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(191, 161, 116, 0.1);
}

.price-value, .avail-value {
    font-weight: var(--font-bold);
    color: var(--gold-500);
}

.visit-form {
    margin-top: var(--g-md);
}

.visit-form h3 {
    margin-bottom: var(--g-sm);
    color: var(--ink-900);
    font-size: 18px;
}

.contact-alternative {
    margin-top: var(--g-md);
    padding-top: var(--g-md);
    border-top: 1px solid rgba(191, 161, 116, 0.1);
    text-align: center;
}

.contact-phone {
    display: inline-block;
    color: var(--gold-500);
    font-weight: var(--font-semibold);
    text-decoration: none;
    margin-top: 8px;
}

.contact-phone:hover {
    color: var(--gold-600);
}

/* Similar Properties */
.similar-properties {
    background: var(--paper);
    padding: var(--g-xl) 0;
}

.similar-properties h2 {
    text-align: center;
    margin-bottom: var(--g-lg);
    color: var(--ink-900);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--g-lg);
}

.property-card {
    background: white;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-image {
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: var(--g-md);
}

.property-title {
    font-size: 18px;
    font-weight: var(--font-semibold);
    margin-bottom: 8px;
    color: var(--ink-900);
}

.property-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-700);
    margin-bottom: 12px;
}

.property-price {
    font-size: 20px;
    font-weight: var(--font-bold);
    color: var(--gold-500);
    margin-bottom: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--g-lg);
    }
    
    .gallery-thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    /* Map responsive adjustments */
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-meta-primary {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--g-sm);
    }
    
    .gallery-main {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
    }
    
    .location-benefits {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        position: static;
        margin-top: var(--g-lg);
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile map optimizations */
    .map-container {
        height: 350px;
    }
    
    .map-open-link {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .map-interactive-overlay {
        bottom: 12px;
        right: 12px;
    }
    
    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}