/* ==========================================================================
   VillaVakti - Villa Detail Page Stylesheet (Villa Sepeti Inspired)
   65% Left Content / 35% Sticky Booking Box Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BREADCRUMB NAVIGATION
   -------------------------------------------------------------------------- */
.detail-breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-breadcrumb a {
    color: #4b5563;
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   2. VILLA TITLE & ACTIONS HEADER
   -------------------------------------------------------------------------- */
.detail-header-wrap {
    padding: 26px 0 20px 0;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.detail-location-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.detail-location-meta span {
    display: inline-flex;
    align-items: center;
}

.detail-villa-code {
    background: var(--background-soft);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.detail-action-btn.active {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

/* --------------------------------------------------------------------------
   3. GALLERY GRID (1 Large + 4 Small Grid)
   -------------------------------------------------------------------------- */
.detail-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.gallery-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-small {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-large img, .gallery-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-large:hover img, .gallery-small:hover img {
    transform: scale(1.03);
}

.btn-all-photos {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-all-photos:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   4. QUICK FEATURES STRIP (Kapasite, Yatak Odası, Banyo, Havuz)
   -------------------------------------------------------------------------- */
.detail-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.feature-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-bar-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-bar-icon svg {
    width: 22px;
    height: 22px;
}

.feature-bar-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.feature-bar-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   5. TWO-COLUMN LAYOUT (LEFT 65% / RIGHT 35%)
   -------------------------------------------------------------------------- */
.detail-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: flex-start;
    padding-bottom: 70px;
}

/* Content Box Cards */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-card-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.villa-description-text {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.villa-description-text p {
    margin-bottom: 14px;
}

/* Amenities & Features Badges */
.features-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-badge-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--background-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
}

.feature-badge-box svg {
    color: var(--success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Distance Grid */
.distance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.distance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    background: var(--background-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
}

.distance-item span:first-child {
    color: var(--text-light);
    font-weight: 500;
}

.distance-item span:last-child {
    font-weight: 600;
    color: var(--text);
}

/* Seasonal Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.price-table th {
    background: var(--background-soft);
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}

.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #4b5563;
}

.price-table tr:hover td {
    background: var(--background-soft);
}

/* --------------------------------------------------------------------------
   6. AVAILABILITY CALENDAR (Clean, Calm Aesthetics)
   -------------------------------------------------------------------------- */
.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    font-size: 13px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.legend-color.available {
    background: #ffffff;
    border-color: #cbd5e1;
}

.legend-color.booked {
    background: #fee2e2;
    border-color: #fca5a5;
}

.legend-color.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cal-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cal-nav {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
}

.btn-cal-nav:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.cal-day-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    padding: 6px 0;
}

.cal-day {
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    position: relative;
}

.cal-day.available:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.cal-day.booked {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.75;
}

.cal-day.past {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: var(--border);
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-day.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.cal-day.range-start {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cal-day.range-end {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cal-day.in-range {
    background: var(--primary-tint) !important;
    color: var(--primary-dark) !important;
    border-radius: 0 !important;
    border-color: #cbd5e1 !important;
}

/* Mobilde Sabit Alt Rezervasyon Barı */
.mobile-bottom-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.10);
    padding: 12px 20px;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
}

.mobile-bottom-price {
    display: flex;
    flex-direction: column;
}

.mobile-bottom-price-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.mobile-bottom-price-unit {
    font-size: 11px;
    color: var(--text-muted);
}

.mobile-bottom-cta {
    background: var(--accent);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobile-bottom-cta:hover {
    background: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   7. RIGHT STICKY BOOKING BOX
   -------------------------------------------------------------------------- */
.booking-sticky-box {
    position: sticky;
    top: 96px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-md);
}

.booking-box-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.booking-price-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.booking-price-unit {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.booking-inputs-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.booking-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.booking-input-col {
    padding: 9px 12px;
}

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

.booking-input-col label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.booking-input-col input, .booking-input-col select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.booking-calc-breakdown {
    background: var(--background-soft);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #4b5563;
    margin-bottom: 9px;
}

.calc-row.discount {
    color: #16a34a;
    font-weight: 600;
}

.calc-row.total {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-booking-submit {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    height: 50px;
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-booking-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.booking-fast-contact {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-fast-contact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--background-soft);
    color: #374151;
    transition: all 0.2s ease;
}

.btn-fast-contact:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-fast-contact.whatsapp {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.btn-fast-contact.whatsapp:hover {
    background: #dcfce7;
}

/* --------------------------------------------------------------------------
   8. LIGHTBOX GALLERY MODAL
   -------------------------------------------------------------------------- */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 35, 49, 0.95);
    z-index: 3000;
    padding: 30px;
    overflow-y: auto;
}

.gallery-modal-content {
    max-width: 960px;
    margin: 0 auto;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    margin-bottom: 24px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.modal-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.modal-photos-grid img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   9. MOBILE & RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .detail-content-layout {
        grid-template-columns: 1fr;
    }
    .booking-sticky-box {
        position: static;
        margin-top: 30px;
    }
    .detail-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 140px;
    }
    .gallery-large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}

@media (max-width: 992px) {
    .mobile-bottom-booking-bar {
        display: flex;
    }
    body.has-mobile-booking-bar {
        padding-bottom: 74px;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 26px;
    }
    .detail-header-top {
        flex-direction: column;
        gap: 14px;
    }
    .detail-features-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 16px;
    }
    .features-badge-grid {
        grid-template-columns: 1fr;
    }
    .distance-grid {
        grid-template-columns: 1fr;
    }
    .modal-photos-grid {
        grid-template-columns: 1fr;
    }
}

