/* ==========================================================
   PROPERTY PAGE — Shared styles for all listing pages
   Colors: #1E1D1A (dark), #F5F4EE (cream), #FFC580 (gold),
           #7DBCB3 (teal), #E0BFB4 (blush), #C9A86C (gold-dark)
   ========================================================== */

/* --- Virtual Tour Modal --- */
.tour-modal {
    display: none;
    position: fixed;
    z-index: 200;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tour-modal.showing { display: flex; }
.tour-modal iframe {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    border: 0;
    border-radius: 8px;
}
.tour-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 0;
    color: #FFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.tour-modal-close:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
    .tour-modal iframe { height: 60vh; }
}

/* --- Breadcrumb (overlaps bottom of hero) --- */
.prop-breadcrumb {
    position: relative;
    z-index: 3;
    margin-top: -48px;
    padding: 14px 24px;
    font-size: 13px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
}
.prop-breadcrumb a { transition: opacity 0.2s; }
.prop-breadcrumb a:hover { opacity: 1; }
.prop-breadcrumb .sep { opacity: 0.3; }

@media (min-width: 834px) { .prop-breadcrumb { padding: 14px 50px; } }
@media (min-width: 1200px) { .prop-breadcrumb { padding: 14px 70px; } }

/* --- Review Bar (white strip) --- */
.prop-review-bar {
    background-color: #FFFFFF;
    color: #1E1D1A;
    padding: 14px 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.prop-review-bar::-webkit-scrollbar { display: none; }
.prop-review-bar-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
    width: 100%;
}
.review-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}
.review-score .big { font-size: 28px; font-weight: 700; }
.review-score .small { font-size: 14px; opacity: 0.6; }
.review-label {
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid rgba(30,29,26,0.2);
    padding-left: 16px;
}
.review-source {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.review-source .name { font-size: 12px; opacity: 0.6; }
.review-source .rating { font-size: 15px; font-weight: 700; }
.review-cta {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid #1E1D1A;
    background: transparent;
    color: #1E1D1A;
    cursor: pointer;
    transition: all 0.25s;
}
.review-cta:hover { background: #1E1D1A; color: #FFF; }

@media (min-width: 834px) {
    .prop-review-bar-inner { padding: 0 50px; gap: 50px; }
}

/* Tour button in review bar */
.review-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid #1E1D1A;
    background: transparent;
    color: #1E1D1A;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.review-tour-btn:hover { background: #1E1D1A; color: #FFF; }
.review-tour-btn:hover svg { stroke: #FFF; }
.review-tour-btn svg { width: 16px; height: 16px; transition: stroke 0.25s; }

/* --- Hero Image (full-width, crossfade slider) --- */
.prop-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}
.prop-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}
.prop-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(30,29,26,0.15) 0%, rgba(30,29,26,0.55) 100%);
}
.prop-hero-content {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
    z-index: 2;
}
.prop-hero-content h1 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    margin-bottom: 8px;
}
.prop-hero-location {
    font-size: 16px;
    opacity: 0.8;
}
.prop-hero-nav {
    position: absolute;
    bottom: 40px;
    right: 24px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 2;
}
.prop-hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    transition: all 0.25s;
}
.prop-hero-arrow:hover { background: #FFF; color: #1E1D1A; }

@media (min-width: 834px) {
    .prop-hero { height: 70vh; }
    .prop-hero-content { bottom: 60px; left: 50px; }
    .prop-hero-nav { bottom: 60px; right: 50px; }
}
@media (min-width: 1200px) {
    .prop-hero { height: 80vh; max-height: 800px; }
    .prop-hero-content { bottom: 80px; left: 70px; }
    .prop-hero-nav { bottom: 80px; right: 70px; }
    .prop-hero-location { font-size: 18px; }
}

/* --- Description (cream bg, two-column) --- */
.prop-description {
    background-color: #F5F4EE;
    color: #1E1D1A;
    padding: 80px 0;
}
.prop-desc-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.prop-desc-title {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 16px;
}
.prop-desc-right {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.75;
    max-width: 560px;
}
.prop-desc-right p + p { margin-top: 16px; }
.prop-read-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.prop-read-more:hover { opacity: 0.6; }

@media (min-width: 1200px) {
    .prop-description { padding: 100px 0; }
    .prop-desc-grid { flex-direction: row; gap: 80px; }
    .prop-desc-grid > * { flex: 1; }
}

/* --- Photo Gallery (horizontal scroll, mixed heights) --- */
.prop-gallery {
    background-color: #F5F4EE;
    color: #1E1D1A;
    padding: 0 0 80px;
}
.prop-gallery-header { padding: 0 24px 30px; }
.prop-gallery-header h2 { margin-bottom: 8px; color: #1E1D1A; }
.prop-gallery-header p { font-size: 15px; opacity: 0.6; color: #1E1D1A; }

.prop-gallery-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 24px 20px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}
.prop-gallery-slider::-webkit-scrollbar { display: none; }
.prop-gallery-slider.dragging { cursor: grabbing; }

.prop-gallery-img {
    flex-shrink: 0;
    max-height: 480px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.4s ease;
}
.prop-gallery-img:hover { transform: scale(0.98); }

@media (min-width: 834px) {
    .prop-gallery-header { padding: 0 50px 40px; }
    .prop-gallery-slider { gap: 20px; padding: 0 50px 20px; }
    .prop-gallery-img { max-height: 560px; }
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 0;
    color: #FFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 0;
    color: #FFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* --- Services Grid --- */
.prop-services {
    background-color: #F5F4EE;
    color: #1E1D1A;
    padding: 60px 0 80px;
}
.prop-services-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}
.prop-services-header h2 { color: #1E1D1A; }
.prop-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.prop-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-top: 1px solid rgba(30,29,26,0.12);
    font-size: 16px;
    font-weight: 500;
}
.prop-service-item svg { flex-shrink: 0; opacity: 0.5; width: 28px; height: 28px; }

@media (min-width: 834px) {
    .prop-services-grid { grid-template-columns: repeat(4, 1fr); gap: 0 30px; }
}

/* --- Booking CTA --- */
.prop-booking-cta {
    background-color: #1E1D1A;
    color: #FFF;
    padding: 80px 0;
    text-align: center;
}
.prop-booking-cta h2 { margin-bottom: 16px; }
.prop-booking-cta p {
    font-size: 16px;
    opacity: 0.55;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Gold button (property CTA) --- */
.btn-gold {
    background-color: #C9A86C;
    color: #FFF;
    border: 0;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-gold:hover { background-color: #b8954f; }
.btn-gold:active { background-color: #C9A86C; }

/* --- Property page footer override — less padding --- */
.prop-page .site-footer { padding-top: 40px; }

/* --- Booking Request Modal --- */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.booking-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.booking-modal {
    background: #1E1D1A;
    max-width: 520px;
    width: 100%;
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.booking-modal-header {
    text-align: center;
    margin-bottom: 32px;
}
.booking-modal-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: #fff;
    margin: 0 0 6px;
}
.booking-modal-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.booking-modal-close:hover { background: rgba(255,255,255,0.1); }
.booking-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.booking-modal-field { display: flex; flex-direction: column; gap: 6px; }
.booking-modal-field.full { grid-column: 1 / -1; }
.booking-modal-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}
.booking-modal-input,
.booking-modal-select,
.booking-modal-textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.booking-modal-input:focus,
.booking-modal-select:focus,
.booking-modal-textarea:focus {
    border-color: rgba(255,255,255,0.5);
}
.booking-modal-input::placeholder,
.booking-modal-textarea::placeholder {
    color: rgba(255,255,255,0.5);
}
.booking-modal-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.booking-modal-select option {
    background: #1E1D1A;
    color: #fff;
}
.booking-modal-textarea {
    min-height: 80px;
    resize: vertical;
}
.booking-modal-submit {
    width: 100%;
    margin-top: 24px;
    background: #fff;
    color: #1E1D1A;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.booking-modal-submit:hover { background: #e5e5e5; }
.booking-modal-privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .booking-modal { padding: 30px 20px; }
    .booking-modal-grid { grid-template-columns: 1fr; }
    .booking-modal-header h2 { font-size: 24px; }
}
