/* CAR DETAILS PAGE - PREMIUM REDESIGN */
:root {
    --navy-primary: #0B132B;
    --navy-secondary: #1C2541;
    --teal-primary: #00B8A9;
    --teal-light: #10B981;
    --gold: #F59E0B;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

.cd-hero {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.cd-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.cd-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.cd-breadcrumb a:hover { color: var(--teal-primary); }
.cd-breadcrumb .separator { color: rgba(255,255,255,0.4); font-size: 10px; }
.cd-breadcrumb .current { color: white; font-weight: 600; }

.cd-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cd-hero-left { color: white; }

.cd-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #FBBF24 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.cd-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    color: white !important;
}

.cd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.cd-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.cd-meta-item i { color: var(--teal-primary); font-size: 14px; }
.cd-meta-item.cd-rating i { color: var(--gold); }
.cd-review-count { color: rgba(255,255,255,0.6); font-size: 13px; }

.cd-hero-price { display: flex; align-items: baseline; gap: 8px; }
.cd-price-amount { font-size: 48px; font-weight: 900; color: white; }
.cd-price-period { font-size: 18px; color: rgba(255,255,255,0.7); }

.cd-hero-image-container {
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 16px;
    backdrop-filter: blur(10px);
}

.cd-hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.cd-wishlist-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cd-wishlist-btn i { font-size: 18px; color: var(--navy-primary); }
.cd-wishlist-btn:hover { transform: scale(1.1); }
.cd-wishlist-btn.active { background: var(--teal-primary); }
.cd-wishlist-btn.active i { color: white; }

.cd-gallery-btn {
    position: absolute;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cd-gallery-btn:hover { background: var(--teal-primary); }

/* Specs Bar */
.cd-specs-bar {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.cd-specs-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cd-spec-item { display: flex; align-items: center; gap: 12px; }

.cd-spec-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-spec-icon i { font-size: 20px; color: white; }
.cd-spec-info { display: flex; flex-direction: column; }
.cd-spec-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.cd-spec-label { font-size: 12px; color: var(--text-muted); }
.cd-spec-cta { margin-left: auto; }

.cd-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.3);
}

.cd-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 184, 169, 0.4);
    color: white;
}

/* Main Content */
.cd-main-content { background: var(--bg-light); padding: 48px 0 80px; }

.cd-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cd-left-column { display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.cd-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cd-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cd-card-header h3 i { color: var(--teal-primary); }
.cd-card-body { padding: 24px; }
.cd-photo-count { font-size: 13px; color: var(--text-muted); }

/* Gallery Card Styles */
.cd-gallery-card { overflow: hidden; }
.cd-gallery-body { padding: 0 !important; }

.cd-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-gray);
}

.cd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cd-gallery-main:hover img {
    transform: scale(1.02);
}

.cd-gallery-expand {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--navy-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cd-gallery-expand:hover {
    background: var(--teal-primary);
    color: white;
    transform: scale(1.1);
}

.cd-gallery-strip {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.cd-gallery-strip::-webkit-scrollbar {
    height: 4px;
}

.cd-gallery-strip::-webkit-scrollbar-thumb {
    background: var(--teal-primary);
    border-radius: 4px;
}

.cd-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.cd-gallery-thumb:hover {
    opacity: 1;
    border-color: var(--text-muted);
}

.cd-gallery-thumb.active {
    opacity: 1;
    border-color: var(--teal-primary);
}

.cd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy grid styles */
.cd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px;
}

.cd-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.cd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.cd-gallery-item:hover, .cd-gallery-item.active { border-color: var(--teal-primary); }

.cd-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cd-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cd-detail-item {
    background: var(--bg-gray);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.cd-detail-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cd-detail-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.cd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cd-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.cd-feature:hover { background: rgba(0, 184, 169, 0.1); transform: translateX(4px); }
.cd-feature i { color: var(--teal-primary); font-size: 16px; width: 20px; text-align: center; }


/* Reviews */
.cd-rating-summary { display: flex; align-items: center; gap: 12px; }
.cd-rating-big { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.cd-rating-stars i { color: #E2E8F0; font-size: 14px; }
.cd-rating-stars i.filled { color: var(--gold); }
.cd-rating-count { font-size: 13px; color: var(--text-muted); }
.cd-reviews-list { display: flex; flex-direction: column; gap: 20px; }

.cd-review-item { padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.cd-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.cd-review-header { display: flex; gap: 12px; margin-bottom: 12px; }

.cd-reviewer-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.cd-reviewer-info h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; }
.cd-review-meta { display: flex; align-items: center; gap: 12px; }
.cd-review-stars i { font-size: 12px; color: #E2E8F0; }
.cd-review-stars i.filled { color: var(--gold); }
.cd-review-date { font-size: 12px; color: var(--text-muted); }
.cd-review-text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0; }

.cd-empty-reviews { text-align: center; padding: 40px 20px; }
.cd-empty-reviews i { font-size: 48px; color: var(--border-color); margin-bottom: 16px; display: block; }
.cd-empty-reviews p { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; }
.cd-empty-reviews span { font-size: 14px; color: var(--text-muted); }

.cd-write-review { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.cd-write-review h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 16px; }
.cd-review-form { display: flex; flex-direction: column; gap: 16px; }

.cd-star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.cd-star-rating input { display: none; }
.cd-star-rating label { cursor: pointer; font-size: 24px; color: #E2E8F0; transition: var(--transition); }
.cd-star-rating label:hover, .cd-star-rating label:hover ~ label, .cd-star-rating input:checked ~ label { color: var(--gold); }

.cd-review-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    resize: vertical;
    transition: var(--transition);
    font-family: inherit;
}

.cd-review-form textarea:focus { outline: none; border-color: var(--teal-primary); }

.cd-submit-review {
    align-self: flex-start;
    padding: 12px 24px;
    background: var(--navy-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cd-submit-review:hover { background: var(--navy-secondary); }

/* Right Column - Booking */
.cd-right-column { position: sticky; top: 140px; }

.cd-booking-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.cd-booking-header {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    padding: 24px;
    color: white;
    text-align: center;
}

.cd-booking-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: white;
}

.cd-booking-header p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

.cd-booking-form { padding: 24px; }
.cd-form-group { margin-bottom: 16px; }

.cd-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cd-form-group label i { color: var(--teal-primary); }
.cd-form-group label span { color: #EF4444; }

.cd-form-group input,
.cd-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.cd-form-group input:focus,
.cd-form-group select:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.1);
}

.cd-addon-option { margin-bottom: 16px; }

.cd-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cd-checkbox:hover { border-color: var(--teal-primary); background: white; }
.cd-checkbox input { display: none; }

.cd-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.cd-checkbox input:checked + .cd-checkmark {
    background: var(--teal-primary);
    border-color: var(--teal-primary);
}

.cd-checkbox input:checked + .cd-checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.cd-addon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.cd-addon-text i { color: var(--teal-primary); }
.cd-addon-price { font-size: 14px; font-weight: 700; color: var(--teal-primary); }

.cd-promo-group { margin-bottom: 20px; }
.cd-promo-group > label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.cd-promo-group > label i { color: var(--teal-primary); }

.cd-promo-input { display: flex; gap: 8px; }
.cd-promo-input input { flex: 1; padding: 12px 14px; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 14px; }
.cd-promo-input input:focus { outline: none; border-color: var(--teal-primary); }

.cd-promo-input button {
    padding: 12px 20px;
    background: var(--navy-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cd-promo-input button:hover { background: var(--navy-secondary); }

.cd-price-summary {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.cd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.cd-price-row span:last-child { font-weight: 600; color: var(--text-primary); }

.cd-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid var(--border-color);
}

.cd-price-total span:first-child { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.cd-price-total span:last-child { font-size: 24px; font-weight: 800; color: var(--teal-primary); }

.cd-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.3);
}

.cd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 184, 169, 0.4);
}

/* Trust Card */
.cd-trust-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.cd-trust-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.cd-trust-card h4 i { color: var(--teal-primary); }

.cd-trust-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cd-trust-item:last-child { border-bottom: none; }
.cd-trust-item > i { font-size: 20px; color: var(--teal-primary); margin-top: 2px; }
.cd-trust-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.cd-trust-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Support Card */
.cd-support-card {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    text-align: center;
    color: white;
}

.cd-support-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cd-support-icon i { font-size: 24px; color: var(--teal-primary); }
.cd-support-card h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: white; }
.cd-support-card p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0 0 16px; }

.cd-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--teal-primary);
    color: white !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cd-call-btn:hover { background: var(--teal-light); color: white; transform: translateY(-2px); }

/* Similar Cars */
.cd-similar-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.cd-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px;
}

.cd-section-title i { color: var(--teal-primary); }

.cd-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cd-similar-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cd-similar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cd-similar-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cd-similar-image img { width: 100%; height: 100%; object-fit: cover; }

.cd-similar-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--teal-primary);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.cd-similar-info { padding: 20px; }
.cd-similar-info h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }

.cd-similar-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.cd-similar-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.cd-similar-meta i { color: var(--teal-primary); font-size: 12px; }

.cd-similar-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--teal-primary);
}

.cd-similar-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }

/* Modal */
.cd-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cd-modal.active { opacity: 1; visibility: visible; }
.cd-modal-content { position: relative; max-width: 90vw; max-height: 90vh; }

.cd-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.cd-modal-close:hover { background: var(--teal-primary); }

.cd-modal-gallery { position: relative; display: flex; align-items: center; }
.cd-modal-gallery img { max-width: 80vw; max-height: 80vh; border-radius: var(--radius-lg); }

.cd-modal-nav {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.cd-modal-nav:hover { background: var(--teal-primary); }
.cd-modal-nav.cd-prev { left: -70px; }
.cd-modal-nav.cd-next { right: -70px; }

.cd-modal-counter { text-align: center; color: white; font-size: 14px; margin-top: 16px; }

/* Toast */
.cd-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: var(--transition);
}

.cd-toast.show { bottom: 30px; }

/* Responsive */
@media (max-width: 1200px) {
    .cd-content-grid { grid-template-columns: 1fr 340px; }
}

@media (max-width: 992px) {
    .cd-hero-content { grid-template-columns: 1fr; gap: 32px; }
    .cd-hero-title { font-size: 32px; }
    .cd-price-amount { font-size: 36px; }
    .cd-content-grid { grid-template-columns: 1fr; }
    .cd-right-column { position: static; }
    .cd-specs-grid { flex-wrap: wrap; justify-content: center; }
    .cd-spec-cta { width: 100%; margin-left: 0; margin-top: 16px; }
    .cd-book-btn { width: 100%; justify-content: center; }
    .cd-similar-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cd-hero { padding: 100px 0 40px; }
    .cd-hero-title { font-size: 28px; }
    .cd-hero-image { height: 240px; }
    .cd-specs-bar { position: static; }
    .cd-gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .cd-features-grid { grid-template-columns: 1fr; }
    .cd-similar-grid { grid-template-columns: 1fr; }
    .cd-modal-nav.cd-prev { left: 10px; }
    .cd-modal-nav.cd-next { right: 10px; }
}

@media (max-width: 576px) {
    .cd-hero-meta { flex-direction: column; gap: 12px; }
    .cd-details-grid { grid-template-columns: 1fr; }
    .cd-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
