/* =============================================================================
   AYAL TOURS — VEHICLE PAGES (SINGLE + COMBINED)
   Enqueued only on page-vehicle.php and page-vehicles.php via
   ayal_enqueue_vehicles_styles() in functions.php
   Depends on: ayal-tokens
   ============================================================================= */


/* =============================================================================
   1. HERO — shared pattern, used by both templates
   ============================================================================= */

.ayal-vehicle-hero,
.ayal-vehicles-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--ayal-green); /* Fallback if no featured image */
    overflow: hidden;
}

/* Full-height hero on desktop only — mobile keeps the shorter 52vh above */
@media (min-width: 1024px) {
    .ayal-vehicle-hero,
    .ayal-vehicles-hero {
        min-height: 100vh;
    }
}

.ayal-vehicle-hero__overlay,
.ayal-vehicles-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 8, 0.22) 0%,
        rgba(10, 14, 8, 0.55) 60%,
        rgba(10, 14, 8, 0.75) 100%
    );
    pointer-events: none;
}

.ayal-vehicle-hero__content,
.ayal-vehicles-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 6vw, 72px);
}

.ayal-vehicles-hero__content {
    text-align: center;
}

.ayal-vehicle-hero .ayal-eyebrow--sand,
.ayal-vehicles-hero .ayal-eyebrow--sand {
    color: var(--ayal-sand);
    margin-bottom: var(--space-12);
}

.ayal-vehicle-hero__title,
.ayal-vehicles-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: var(--weight-light);
    color: var(--ayal-white);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: var(--space-16);
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.20);
}

.ayal-vehicle-hero__tagline,
.ayal-vehicles-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: var(--leading-relaxed);
    color: rgba(247, 245, 239, 0.82);
    max-width: 600px;
}

.ayal-vehicles-hero__sub {
    margin: 0 auto;
}


/* =============================================================================
   2. INTRO (combined page)
   ============================================================================= */

.ayal-vehicles-intro__body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--leading-relaxed);
    color: var(--ayal-charcoal-2);
    max-width: 620px;
    margin: var(--space-20) auto 0;
}


/* =============================================================================
   3. OVERVIEW + SPECS (single vehicle page)
   ============================================================================= */

.ayal-vehicle-overview__grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: var(--grid-gap);
    align-items: start;
}

.ayal-vehicle-overview__intro {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--leading-relaxed);
    color: var(--ayal-charcoal-2);
    margin: var(--space-20) 0 var(--space-32);
    max-width: 640px;
}

.ayal-vehicle-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    max-width: 560px;
}

.ayal-vehicle-features__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--ayal-charcoal-2);
}

.ayal-vehicle-features__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ayal-green-muted);
    color: var(--ayal-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Specs sidebar — sidebar cards use 12px radius site-wide */
.ayal-vehicle-specs {
    background: var(--ayal-white);
    border: 1px solid var(--ayal-border);
    border-radius: 12px;
    padding: var(--space-32);
    position: sticky;
    top: var(--space-96);
}

.ayal-vehicle-specs__head {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--ayal-green);
    margin-bottom: var(--space-20);
}

.ayal-vehicle-specs__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--ayal-border-light);
}

.ayal-vehicle-specs__row:first-of-type {
    padding-top: 0;
}

.ayal-vehicle-specs__label {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    color: var(--ayal-charcoal-3);
}

.ayal-vehicle-specs__value {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    color: var(--ayal-charcoal);
}

.ayal-vehicle-specs__note {
    margin-top: var(--space-24);
    padding-top: var(--space-24);
    border-top: 1px solid var(--ayal-border);
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--text-body-sm);
    line-height: var(--leading-relaxed);
    color: var(--ayal-charcoal-2);
}


/* =============================================================================
   4. GALLERY (single vehicle page)
   ============================================================================= */

.ayal-vehicle-gallery .ayal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-40);
}

.ayal-vehicle-gallery .ayal-gallery__item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--ayal-charcoal-2);
}

.ayal-vehicle-gallery .ayal-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
    display: block;
}

.ayal-vehicle-gallery .ayal-gallery__item:hover img {
    transform: scale(1.06);
}

.ayal-vehicle-gallery .ayal-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 8, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease);
}

.ayal-vehicle-gallery .ayal-gallery__item:hover .ayal-gallery__overlay {
    opacity: 1;
}


/* =============================================================================
   5. VEHICLE GRID + CARDS — shared by "Other Vehicles" and the combined page
   ============================================================================= */

.ayal-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.ayal-vehicle-grid--1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.ayal-vehicle-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ayal-vehicle-card {
    background: var(--ayal-white);
    border: 1px solid var(--ayal-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease),
                box-shadow var(--duration-base) var(--ease);
}

.ayal-vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ayal-vehicle-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ayal-vehicle-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--ayal-ivory-2);
}

.ayal-vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slower) var(--ease);
    display: block;
}

.ayal-vehicle-card:hover .ayal-vehicle-card__image img {
    transform: scale(1.06);
}

.ayal-vehicle-card__content {
    padding: var(--space-20) var(--space-24) var(--space-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ayal-vehicle-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    color: var(--ayal-charcoal);
    margin-bottom: var(--space-8);
}

.ayal-vehicle-card__tagline {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    line-height: var(--leading-relaxed);
    color: var(--ayal-charcoal-3);
    margin-bottom: var(--space-16);
    flex-grow: 1;
}

.ayal-vehicles-empty {
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--ayal-charcoal-3);
    text-align: center;
    padding: var(--space-48) 0;
}


/* =============================================================================
   6. FINAL CTA — shared pattern, used by both templates
   ============================================================================= */

.ayal-vehicle-cta,
.ayal-vehicles-cta {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.ayal-vehicle-cta {
    background-color: var(--ayal-green-deep);
}

.ayal-vehicles-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--ayal-green-deep);
}

.ayal-vehicles-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 8, 0.45);
}

.ayal-vehicle-cta__content,
.ayal-vehicles-cta__content {
    position: relative;
    z-index: 2;
    padding: var(--space-24);
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ayal-vehicle-cta__title,
.ayal-vehicles-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: var(--weight-light);
    color: var(--ayal-white);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: var(--space-12) 0 var(--space-20);
}

.ayal-vehicle-cta__body,
.ayal-vehicles-cta__body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--leading-relaxed);
    color: rgba(247, 245, 239, 0.82);
    margin-bottom: var(--space-32);
    max-width: 480px;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {

    .ayal-vehicle-overview__grid {
        grid-template-columns: 1fr;
    }

    .ayal-vehicle-specs {
        position: static;
    }

}

@media (max-width: 767px) {

    .ayal-vehicle-grid,
    .ayal-vehicle-grid--2,
    .ayal-vehicle-grid--3 {
        grid-template-columns: 1fr;
    }

    .ayal-vehicle-gallery .ayal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}
