/* camper-detail.css */

:root {
    --cd-bg: #F5F1E8;
    --cd-accent: #C6A46C;
    --cd-text: #232323;
    --cd-text-light: #666666;
    --cd-radius: 20px;
    --cd-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --cd-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.camper-detail-body {
    background-color: var(--cd-bg);
    color: var(--cd-text);
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.page-wrapper {
    padding-top: 80px; /* Offset for header */
}

/* Header Refinement (Camper-Detail ONLY) */
body.camper-detail-body .header {
    background: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 15px 0 !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

body.camper-detail-body .nav-menu ul li a {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.camper-detail-body .nav-menu ul li a:hover {
    color: var(--cd-accent) !important;
}

body.camper-detail-body .btn-call {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.camper-detail-body .burger-menu span {
    background-color: #fff !important;
}

body.camper-detail-body .header-actions svg {
    stroke: #fff !important;
}

/* Breadcrumbs */
.cd-breadcrumbs {
    font-size: 13px;
    color: var(--cd-text-light);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    opacity: 0.8;
}
.cd-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.cd-breadcrumbs a:hover {
    color: var(--cd-accent);
}
.cd-breadcrumbs span {
    color: var(--cd-text);
    font-weight: 500;
}

/* Utilities */
.cd-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}
.cd-section {
    padding: 60px 0;
}
.cd-section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--cd-text);
}

/* Buttons */
.cd-btn-primary, .cd-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    border: none;
}
.cd-btn-primary {
    background-color: var(--cd-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(198, 164, 108, 0.3);
}
.cd-btn-primary:hover {
    background-color: #b59560;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(198, 164, 108, 0.4);
}
.cd-btn-outline {
    background-color: transparent;
    color: var(--cd-text);
    border: 1px solid rgba(35, 35, 35, 0.2);
}
.cd-btn-outline:hover {
    border-color: var(--cd-accent);
    color: var(--cd-accent);
}
.full-width {
    width: 100%;
}
.lg {
    padding: 20px 48px;
    font-size: 16px;
}

/* 1. TOP SECTION */
.cd-top-section {
    padding-bottom: 20px;
}
.cd-title-wrap {
    margin-bottom: 40px;
}
.cd-main-title {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}
.cd-subtitle {
    font-size: 1.125rem;
    color: var(--cd-text-light);
    max-width: 600px;
}

/* Gallery layout */
.cd-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 600px;
}
.cd-gallery-main {
    border-radius: var(--cd-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}
.cd-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}
.cd-gallery-side-top, .cd-gallery-side-bottom {
    border-radius: var(--cd-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}
.cd-gallery-item-clickable {
    cursor: pointer;
    transition: filter 0.3s ease;
}
.cd-gallery-item-clickable:hover {
    filter: brightness(1.1);
}

.btn-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--cd-text);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-all-photos:hover {
    background: #fff;
    transform: scale(1.05);
}

/* 2. MAIN 2-COLUMN LAYOUT */
.cd-two-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: stretch; /* Crucial for sticky height */
}

/* Left side */
.cd-content-left > div {
    margin-bottom: 60px;
}
.cd-desc-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cd-text-light);
    margin-bottom: 40px;
}

/* Specs Grid */
.cd-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.cd-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .cd-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cd-specs-grid {
        grid-template-columns: 1fr;
    }
}

.cd-spec-card {
    background: #fff;
    padding: 24px 20px;
    border-radius: var(--cd-radius);
    box-shadow: var(--cd-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.cd-spec-card:hover {
    transform: translateY(-5px);
}
.cd-spec-icon {
    color: var(--cd-accent);
    margin-bottom: 15px;
    display: flex;
}
.cd-spec-label {
    font-size: 13px;
    color: var(--cd-text-light);
    margin-bottom: 5px;
}
.cd-spec-value {
    font-size: 16px;
    font-weight: 600;
}

/* Amenities Grid */
.cd-block-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}
.cd-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.cd-amenity-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--cd-text);
}
.cd-amenity-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--cd-accent);
}

/* Right Side - Sticky Card */
.cd-sticky-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--cd-radius);
    box-shadow: var(--cd-shadow);
    position: sticky;
    top: 120px;
    z-index: 100;
    align-self: start; /* Prevents card from stretching */
}
.sticky-price-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.price-val {
    font-size: 2rem;
    font-weight: 700;
}
.price-unit {
    color: var(--cd-text-light);
}
.sticky-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.date-box {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.calc-label {
    font-size: 12px;
    color: var(--cd-text-light);
    margin-bottom: 5px;
}
.calc-value {
    font-size: 14px;
    font-weight: 500;
}
.sticky-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* 3. Conditions Tabs */
.cd-conditions-section {
    margin-bottom: 60px;
}
.cd-tabs-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    width: fit-content;
}
.cd-tab-btn {
    border: none;
    background: transparent;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    color: var(--cd-text-light);
    transition: all 0.3s ease;
    font-family: inherit;
}
.cd-tab-btn.active {
    background: var(--cd-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(198, 164, 108, 0.3);
}
.cd-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease;
}
.cd-tab-content.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.cd-tab-card {
    background: #fff;
    border-radius: var(--cd-radius);
    padding: 40px;
    box-shadow: var(--cd-shadow);
}
.cd-rules-list {
    list-style: none;
    margin-bottom: 30px;
}
.cd-rules-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}
.rule-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(198, 164, 108, 0.1);
    color: var(--cd-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.rule-text {
    display: flex;
    flex-direction: column;
}
.rule-text strong {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}
.rule-text span {
    color: var(--cd-text-light);
    line-height: 1.5;
}
.cd-note-block {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    color: var(--cd-text-light);
    font-style: italic;
    margin-bottom: 30px;
    border-left: 4px solid var(--cd-accent);
}

/* 4. Second Conditions */
.cd-secondary-conditions {
    margin-bottom: 60px;
}
.cd-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.cd-simple-list {
    list-style: none;
}
.cd-simple-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--cd-text-light);
}
.cd-simple-list li strong {
    color: var(--cd-text);
    margin-right: 10px;
}
.cd-price-tier-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--cd-radius);
    box-shadow: var(--cd-shadow);
}
.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tier-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}
.tier-days {
    font-weight: 500;
}
.tier-price {
    font-weight: 600;
    color: var(--cd-accent);
}
.tier-price small {
    color: var(--cd-text-light);
    font-weight: 400;
}

/* 5. Equipment */
.cd-equipment-section {
    margin-bottom: 60px;
}
.cd-equip-list {
    background: #fff;
    border-radius: var(--cd-radius);
    padding: 30px;
    box-shadow: var(--cd-shadow);
    margin-bottom: 30px;
}
.cd-equip-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cd-equip-item:last-child {
    border-bottom: none;
}
.equip-name {
    font-weight: 500;
}
.equip-price {
    font-weight: 600;
    color: var(--cd-accent);
}

/* 6. Calendar & Form Container */
.cd-booking-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}
.cd-booking-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Calendar */
.cd-cal-area {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--cd-shadow);
}
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cal-month {
    font-weight: 600;
    font-size: 1.1rem;
}
.cal-arrow {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--cd-text-light);
    transition: color 0.3s;
}
.cal-arrow:hover {
    color: var(--cd-accent);
}
.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 13px;
    color: var(--cd-text-light);
    margin-bottom: 15px;
}
.cal-grid, #popup-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0; /* No gaps for continuous lines */
    text-align: center;
}

.cal-day, .calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    border-radius: 0;
    margin: 0; /* Ensure no external spacing */
    padding: 0;
}

.cal-day.empty, .calendar-day.empty {
    cursor: default;
    background: transparent !important;
}

.day-number {
    font-weight: 500;
    z-index: 2;
}

.day-bar {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 0;
    background: transparent;
    transition: transform 0.4s ease;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 3;
    display: block; /* Always block, controlled by scaleX */
}

.active .day-bar {
    transform: scaleX(1);
}

.day-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.active .day-label:not(:empty) {
    opacity: 1;
}

/* SELECTED RANGE */
.selected, .selected-range {
    background: #fff !important;
}

.selected .day-bar, .selected-range .day-bar {
    background: #4CAF50;
}

.range-start .day-bar {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.range-end .day-bar {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.selected .day-label:not(:empty), .selected-range .day-label:not(:empty) {
    background: #4CAF50;
}

.range-start {
    border-radius: 12px 0 0 12px !important;
}

.range-end {
    border-radius: 0 12px 12px 0 !important;
}

.range-start.range-end {
    border-radius: 12px !important;
}

/* BOOKED DATES */
.booked .day-bar {
    background: #2C2C2C;
}

.booked-start .day-bar {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.booked-end .day-bar {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.booked-start {
    border-radius: 12px 0 0 12px !important;
}

.booked-end {
    border-radius: 0 12px 12px 0 !important;
}

.booked-start.booked-end {
    border-radius: 12px !important;
}

.booked .day-label:not(:empty) {
    background: #2C2C2C;
    bottom: 50%;
    transform: translate(-50%, 50%); /* Centered in cell */
}

.booked .day-number {
    color: #ccc;
    opacity: 0.5;
}

/* REMOVE OLD CLASSES */

.cal-day.past, .calendar-day.past {
    color: #eee;
    pointer-events: none;
}

.cal-day:not(.empty):not(.past):not(.booked):hover,
.calendar-day:not(.empty):not(.past):not(.booked):hover {
    background: #f9f9f9;
}
.date-box.cd-active-selection {
    border-color: var(--cd-accent) !important;
    background: rgba(198, 164, 108, 0.08);
    box-shadow: 0 0 0 1px var(--cd-accent);
}
/* Booking Popup Calendar */
.cd-booking-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 20px;
    z-index: 2000;
    display: none; /* Hidden by default */
}

.cd-booking-popup.active {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-month {
    font-weight: 600;
    font-size: 15px;
    color: var(--cd-text);
}

.popup-arrow {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--cd-accent);
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.popup-arrow:hover {
    background: rgba(198, 164, 108, 0.1);
}

.popup-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0; /* Continuous lines */
}

/* Popup days use the same .calendar-day class and .day-bar structure as main calendar */
.popup-grid .calendar-day {
    height: 40px; /* Adjust height for popup */
}

/* Ensure bars are styled consistently in popup */
.popup-grid .calendar-day .day-bar {
    bottom: 4px;
    height: 4px; /* Slightly thinner for popup */
}

/* Main Calendar Visualization Overrides - NOT NEEDED AS WE USE DYNAMIC CLASSES */
.cal-legend {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-size: 13px;
    color: var(--cd-text-light);
}
.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}
.busy-dot { background: #ccc; }
.select-dot { background: var(--cd-accent); }

/* Form */
.cd-form-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cd-form-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-size: 13px;
    color: var(--cd-text-light);
    margin-bottom: 8px;
}
.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border 0.3s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--cd-accent);
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--cd-text-light);
}
.checkbox-group a {
    color: var(--cd-accent);
    text-decoration: none;
}

/* 7. CTA Section */
.cd-final-cta {
    padding: 100px 0 120px;
}
.text-center {
    text-align: center;
}
.cd-final-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

/* Modal */
.cd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.cd-modal.active {
    display: flex;
}

/* BUSY DATES POPUP */
.busy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.busy-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.busy-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.busy-popup-overlay.active .busy-popup-content {
    transform: scale(1);
}

.busy-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.busy-popup-icon {
    width: 60px;
    height: 60px;
    background: #FFEDED;
    color: #FF4D4D;
    font-size: 30px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.busy-popup-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.busy-popup-text {
    color: var(--cd-text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.busy-popup-btn {
    width: 100%;
}

/* Disabled button state */
button.cd-btn-primary:disabled {
    background-color: #E0E0E0 !important;
    color: #999 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Success notification after booking */
.booking-success-message {
    text-align: center;
    padding: 40px;
}
.booking-success-icon {
    width: 60px;
    height: 60px;
    background: #E8F5E9;
    color: #4CAF50;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.cd-modal.active {
    opacity: 1;
    visibility: visible;
}
.cd-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}
.cd-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cd-modal-arrow:hover {
    background: var(--cd-accent);
}
.cd-modal-arrow.prev { left: 40px; }
.cd-modal-arrow.next { right: 40px; }
.cd-modal-img-wrap {
    max-width: 80%;
    max-height: 80vh;
}
.cd-modal-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .cd-two-cols {
        grid-template-columns: 1fr;
    }
    .cd-sticky-card {
        position: static;
    }
    .cd-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .cd-right-col {
        display: none;
    }
    .cd-container {
        padding: 0 20px;
    }
    .cd-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .cd-gallery-main {
        height: 300px;
    }
    .cd-gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px;
    }
    .cd-amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cd-booking-wrap {
        grid-template-columns: 1fr;
    }
    .cd-booking-glass {
        padding: 30px 20px;
    }
    .cd-tabs-header {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
    }
    .cd-tab-btn {
        border-radius: 12px;
    }
    .cd-secondary-grid {
        grid-template-columns: 1fr;
    }
}

/* ADDITIONAL EQUIPMENT STYLES */
.cd-equip-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cd-equip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.cd-equip-item:hover {
    border-color: var(--cd-accent);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cd-equip-item.selected {
    border-color: var(--cd-accent);
    background: rgba(139, 115, 85, 0.05);
}

.extra-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cd-equip-item::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 15px;
    transition: all 0.3s ease;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
}

.cd-equip-item.selected::before {
    background: var(--cd-accent);
    border-color: var(--cd-accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.equip-name {
    flex-grow: 1;
    font-weight: 500;
}

.equip-price {
    font-weight: 700;
    color: var(--cd-accent);
}

/* EXTRAS SUMMARY IN FORM */
.cd-extras-summary {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--cd-text);
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 12px;
    display: none; /* Hidden by default */
    line-height: 1.4;
    border-left: 3px solid var(--cd-accent);
}

.cd-extras-summary.active {
    display: block;
}
