/* ================================================
   SALTY DOG - Property Detail Page
   ================================================ */

.breadcrumb {
    padding: 12px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
}

.breadcrumb a { color: #0a3d5c; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* GALLERY */
.gallery-section {
    padding: 0 32px 0;
    margin-bottom: 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

.gallery-placeholder {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
}

.gallery-main-placeholder {
    background: #b8dce8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.gallery-thumbs {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.gallery-thumb-placeholder {
    background: #c8e6c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
}

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

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

.gallery-thumb img:hover { opacity: 0.9; }

.btn-video-tour {
    position: absolute;
    bottom: 16px;
    left: 48px;
    background: rgba(255,0,0,0.9);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.btn-video-tour:hover { background: rgba(200,0,0,1); }

/* MAIN LAYOUT */
.property-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 60px;
    align-items: start;
}

/* LEFT COLUMN */
.prop-header { margin-bottom: 20px; }

.prop-location-tag {
    font-size: 13px;
    color: #0a3d5c;
    font-weight: 600;
    margin-bottom: 8px;
}

.prop-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.prop-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stars { color: #f5c842; font-weight: 600; font-size: 15px; }
.review-count { font-size: 14px; color: var(--text-secondary); }
.dot { color: var(--text-secondary); }
.prop-type-tag { font-size: 14px; color: var(--text-secondary); }
.pet-friendly-tag { font-size: 14px; color: #854f0b; background: #fff8e1; padding: 2px 10px; border-radius: 10px; }

.prop-meta-bar {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-item { font-size: 14px; color: var(--text-secondary); }
.meta-item strong { color: var(--text); }

/* SECTIONS */
.prop-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.prop-section:last-child { border-bottom: none; }

.prop-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    margin-top: -8px;
}

.prop-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* VIDEO PREVIEW */
.video-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
    background: #000;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.video-preview:hover img { opacity: 0.5; }

.video-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.video-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: transform 0.2s;
}

.video-preview:hover .video-play-btn { transform: scale(1.1); }
.video-preview-text { font-size: 14px; color: #fff; font-weight: 500; }

/* AMENITIES */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 0;
}

.amenity-icon { font-size: 20px; }

/* CALENDAR */
.calendar-wrap {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}

.cal-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cal-month-title { font-size: 16px; font-weight: 600; color: var(--text); }

.cal-nav-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.2s;
}

.cal-nav-btn:hover { border-color: #0a3d5c; color: #0a3d5c; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-label {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.cal-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    border-radius: 7px;
    color: var(--text);
}

.cal-day.clickable { cursor: pointer; }
.cal-day.clickable:hover { background: #e8f4fb; color: #0a3d5c; }
.cal-day.blocked { color: #ccc; text-decoration: line-through; cursor: not-allowed; background: #fde8e8; }
.cal-day.selected { background: #0a3d5c; color: #fff; font-weight: 600; }
.cal-day.in-range { background: #e8f4fb; color: #0a3d5c; }
.cal-day.today { border: 2px solid #f5c842; font-weight: 600; }
.cal-day.empty { cursor: default; }

.cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.selected { background: #0a3d5c; }
.legend-dot.booked { background: #fde8e8; border: 1px solid #f09595; }
.legend-dot.available { background: #e8f4fb; border: 1px solid #85b7eb; }

/* REVIEWS */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
}

.rating-big {
    font-size: 48px;
    font-weight: 700;
    color: #0a3d5c;
    line-height: 1;
}

.rating-stars { font-size: 20px; color: #f5c842; margin-bottom: 4px; }
.rating-label { font-size: 13px; color: var(--text-secondary); }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }

.review-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0a3d5c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-name { font-size: 14px; font-weight: 600; color: var(--text); }
.reviewer-date { font-size: 12px; color: var(--text-secondary); color: #f5c842; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* OWNER */
.owner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
}

.owner-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0a3d5c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.owner-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.owner-since { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.owner-verified { font-size: 13px; color: #2d7a3a; }

/* BOOKING CARD */
.booking-sidebar { position: sticky; top: 80px; }

.booking-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(10,61,92,0.1);
}

.booking-price {
    font-size: 28px;
    font-weight: 700;
    color: #0a3d5c;
    margin-bottom: 4px;
}

.booking-price span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.booking-rating { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 10px;
}

.booking-date-field {
    padding: 10px 12px;
}

.booking-date-field:first-child { border-right: 1px solid var(--border); }

.booking-date-field label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.booking-date-field input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    width: 100%;
    outline: none;
}

.booking-guests {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.booking-guests label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.booking-guests select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    width: 100%;
    outline: none;
}

/* CANCELLATION POLICY */
.booking-policy { margin-bottom: 14px; }

.booking-policy label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.policy-options { display: flex; flex-direction: column; gap: 6px; }

.policy-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.policy-option input { display: none; }
.policy-option.active { border-color: #0a3d5c; background: #e8f4fb; }
.policy-option:hover:not(.active) { border-color: #0a3d5c; }

.policy-name { font-size: 13px; font-weight: 600; color: var(--text); }
.policy-desc { font-size: 11px; color: var(--text-secondary); }
.policy-price { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.policy-discount { color: #2d7a3a; }
.policy-premium { color: #854f0b; }

/* PET TOGGLE */
.booking-pet {
    border: 1px solid #f5c842;
    border-radius: 9px;
    padding: 12px;
    background: #fff8e1;
    margin-bottom: 14px;
}

.pet-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 10px;
}

.pet-label { font-size: 13px; font-weight: 600; color: #854f0b; }
.pet-sub { font-size: 11px; color: #a0622a; margin-top: 2px; }

.toggle-sw {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #ccc;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-sw.on { background: #0a3d5c; }
.toggle-sw::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.toggle-sw.on::after { left: 21px; }

/* PRICE BREAKDOWN */
.price-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 14px;
}

.price-placeholder {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 0;
}

.price-error {
    font-size: 13px;
    color: #a32d2d;
    background: #fde8e8;
    border-radius: 6px;
    padding: 8px 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-row.total {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.price-row.pet-row { color: #854f0b; font-weight: 500; }

.policy-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 6px;
}

/* BOOK BUTTON */
.btn-book-now {
    display: block;
    width: 100%;
    background: #0a3d5c;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.btn-book-now:hover:not(.disabled) { background: #071f2e; }
.btn-book-now.disabled { background: #ccc; cursor: not-allowed; pointer-events: none; }

.book-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.trust-badge {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* VIDEO MODAL */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.video-modal.open { opacity: 1; pointer-events: all; }

.video-modal-inner {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #111;
}

.video-modal-title { font-size: 14px; font-weight: 600; color: #fff; }

.video-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .property-layout { grid-template-columns: 1fr; }
    .booking-sidebar { position: static; }
    .gallery-placeholder, .gallery-grid { grid-template-columns: 1fr; height: auto; }
    .gallery-thumbs { display: none; }
    .gallery-main-placeholder { height: 240px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-section { padding: 12px 16px 0; }
    .prop-meta-bar { gap: 14px; }
}
