/* ============================================================
   BMB HOLIDAYS — HOMEPAGE CSS
   Shortcode-rendered selectors only — cannot be targeted in Etch
   ============================================================ */

/* ============================================================
   HERO CARD STACK
   ============================================================ */

.hero-stack {
position: relative;
width: 560px;
min-height: 520px;

@media (max-width: 1300px) {
  width: 500px;
}

@media (max-width: 1150px) {
  width: 100%;
  max-width: 420px;
  min-height: 320px;
}
}

.hero-card {
 position: absolute;
top: 0;
left: 0;
width: 280px;
background: #ffffff;
border: 2px solid #000054;
border-radius: 12px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0,0,0,0.25);
display: flex;
flex-direction: column;
gap: 16px;
cursor: pointer;
user-select: none;
transition: left 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, z-index 0s;
overflow: hidden;
}

.hero-card--active {
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    cursor: default;
}

.hero-card--peek-left {
    opacity: 1;
}

.hero-card--peek-right {
    opacity: 1;
}

.hero-card--peek-left:hover,
.hero-card--peek-right:hover {
    opacity: 1;
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.hero-card__image-wrap {
position: relative;
margin: -24px -24px 0 -24px;
border-radius: 12px 12px 0 0;
overflow: hidden;
aspect-ratio: 16 / 9;

@media (max-width: 1150px) {
  display: none;
}
}

.hero-card__image {
    width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

.hero-card__offer-pill {
position: absolute;
top: 10px;
right: 10px;
font-size: 0.68rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 4px 10px;
border-radius: 20px;
white-space: nowrap;
}

.hero-card__offer-badge {
position: absolute;
top: 10px;
right: 10px;
height: 28px;
width: auto;
}

.hero-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hero-card__eyebrow {
display: none;
}

.hero-card__type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.hero-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.hero-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card__meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 6px;

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.hero-card__meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    flex-shrink: 0;
}

.hero-card__meta-value {
    font-size: 0.85rem;
    color: #333;
    text-align: right;
}

.hero-card__meta-value--price {
    font-weight: 700;
    color: #000054;
    font-size: 0.95rem;
}

.hero-card__cta {
    display: block;
    background: #000054;
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;

    &:hover {
        background: #00007a;
        color: #ffffff;
    }
}

/* ============================================================
   SECTION 4 — FEATURED HOLIDAYS
   ============================================================ */

.homepage-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

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

    @media (max-width: 600px) {
        grid-template-columns: 1fr;
    }
}

.homepage-featured__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
        box-shadow: 0 8px 28px rgba(0,0,0,0.14);
        transform: translateY(-3px);
    }
}

.homepage-featured__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.homepage-featured__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-featured__card:hover .homepage-featured__image {
    transform: scale(1.04);
}

.homepage-featured__image-placeholder {
    position: absolute;
    inset: 0;
    background: #dde4dd;
}

.homepage-featured__badges-left {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;

    &:empty {
        display: none;
    }
}

.homepage-featured__event-badge {
    width: 60px;
    object-fit: cover;
}

.homepage-featured__offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.homepage-featured__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.homepage-featured__type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.homepage-featured__type-badge--short-breaks {
    background: #3E9D0F;
    color: #fff;
}

.homepage-featured__type-badge--abroad {
    background: #FFC107;
    color: #333;
}

.homepage-featured__type-badge--cruise {
    background: #000054;
    color: #fff;
}

.homepage-featured__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.homepage-featured__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.homepage-featured__date {
    font-size: 0.95rem;
    color: #666;
}

.homepage-featured__venue {
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
}

.homepage-featured__topic {
    font-size: 0.95rem;
    color: #000;
    font-style: italic;
}

.homepage-featured__duration {
    font-size: 0.95rem;
    color: #666;
}

.homepage-featured__host {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    font-weight: 600;
}

.homepage-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.homepage-featured__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000054;
}

.homepage-featured__status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
}

.homepage-featured__status--limited {
    background: #fff3cd;
    color: #856404;
}

.homepage-featured__status--sold-out {
    background: #f8d7da;
    color: #721c24;
}

.homepage-featured__cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000054;
    margin-left: auto;
    white-space: nowrap;
}


/* ============================================================
   SECTION 5 — MEET YOUR HOSTS
   ============================================================ */

.homepage-hosts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;

    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr;
    }
}

.homepage-host-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,0.13);
        transform: translateY(-2px);
    }
}

.homepage-host-card__photo-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
}

.homepage-host-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.homepage-host-card__photo--placeholder {
    width: 100%;
    height: 100%;
    background: #d0d0d0;
}

.homepage-host-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.homepage-host-card__title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000054;
    margin: 0;
}

.homepage-host-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.homepage-host-card__bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-host-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3E9D0F;
}


/* ============================================================
   SECTION 6 — SCHEDULE SNAPSHOT
   ============================================================ */

.snapshot {
    width: 100%;
}

.snapshot__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
}

.snapshot__head th {
    background-color: #EAEAFC;
    color: #000;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.snapshot__head th.schedule__price-col {
    text-align: right;
}

.snapshot__type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .snapshot__head {
        display: none;
    }

    .snapshot__table {
        box-shadow: none;
        border-radius: 0;
    }
}


/* ============================================================
   SECTION 8 — DESTINATIONS SHOWCASE
   ============================================================ */

.destinations__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-s);

   @media (max-width: 1000px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
}

.destinations__card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            transparent 60%,
            rgba(0,0,0,0.65) 100%
        );
        border-radius: 10px;
    }

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    }
}

.destinations__card-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.destinations__type-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.destinations__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}