/* =========================================================
   home.css — Home page sections
   ========================================================= */

/* ---- Shared Section Styles ---- */
.lx-section {
    padding: 56px 0;
}
.lx-section--gray {
    background: #f0f4f8;
}
.lx-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.lx-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
}
.lx-section__title--center { text-align: center; margin-bottom: 40px; }
.lx-section__link {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}
.lx-section__link:hover { gap: 8px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background: #f0f4f8;  /* light bg for bottom half */
    padding-bottom: 48px;
}

/* Image only covers the TOP portion */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 360px; /* stops halfway through the form */
    overflow: hidden;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,28,60,0.45);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 90px 20px 0; /* top = header height */
}

.hero__title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* =========================================================
   SEARCH WIDGET V2  (sw2) — Agoda exact clone
   ========================================================= */
.sw2 {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

/* ---- Category tabs (sit above the white card) ---- */
.sw2__tabs {
    display: flex;
    gap: 2px;
    padding: 0 4px;
}

.sw2__tab {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.sw2__tab:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
}
.sw2__tab--active {
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
}

/* ---- White card body ---- */
.sw2__card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* ---- Sub-tabs (Qua Đêm / Trong Ngày) ---- */
.sw2__sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.sw2__sub-tab {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.sw2__sub-tab:hover { border-color: #1a1a1a; color: #1a1a1a; }
.sw2__sub-tab--active {
    border-color: #1a1a1a;
    color: #1a1a1a;
    font-weight: 700;
}

/* ---- Destination input (full-width) ---- */
.sw2__dest {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.sw2__dest:focus-within { border-color: #1a1a1a; }

.sw2__dest-icon {
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sw2__dest-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #334155;
    font-family: inherit;
    width: 100%;
}
.sw2__dest-input::placeholder { color: #94a3b8; }

/* ---- Date + Guests row ---- */
.sw2__row {
    display: flex;
    gap: 0;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.sw2__row:focus-within { border-color: #1a1a1a; }

.sw2__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.sw2__field:hover { background: #f0f4f8; }
.sw2__field--guests { flex: 1.2; }

.sw2__field-icon {
    color: #64748b;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sw2__field-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sw2__field-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.sw2__field-day {
    font-size: 0.73rem;
    color: #94a3b8;
}

.sw2__row-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 8px 0;
    flex-shrink: 0;
}

.sw2__guests-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* ---- "+ Bổ sung chuyến bay" ---- */
.sw2__extra {
    margin-bottom: 14px;
}

.sw2__add-flight {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.15s;
}
.sw2__add-flight:hover { opacity: 0.75; }

/* ---- Search button (full-width pill) ---- */
.sw2__btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.sw2__btn:hover { background: #000000; }
.sw2__btn:active { transform: scale(0.99); }

/* =========================================================
   DESTINATIONS GRID
   ========================================================= */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.dest-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    background: #fff;
    cursor: pointer;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }

.dest-card__img-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
}
.dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.dest-card:hover .dest-card__img { transform: scale(1.08); }
.dest-card__tag {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(255,255,255,0.92);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.dest-card__info {
    padding: 12px;
    text-align: center;
}
.dest-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
}
.dest-card__count {
    font-size: 0.75rem;
    color: #64748b;
}

/* =========================================================
   AGODA-STYLE CARD
   ========================================================= */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.agoda-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    color: inherit;
    transition: box-shadow 0.2s;
}
.agoda-card:hover {
    box-shadow: none;
}

/* Square image — 4:3 ratio */
.agoda-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #e8edf5;
    border-radius: 8px;
}
.agoda-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.agoda-card:hover .agoda-card__img { transform: scale(1.04); }

/* Score badge — dark blue pill, top-right */
.agoda-card__score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Body — no side padding like Agoda */
.agoda-card__body {
    padding: 10px 4px 4px;
}

/* Bold multi-line name, max 2 lines */
.agoda-card__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stars + dot + location on same row */
.agoda-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.agoda-card__stars {
    display: flex;
    gap: 1px;
    color: #f59e0b;
    font-size: 0.7rem;
}
.agoda-card__dot {
    color: #94a3b8;
    font-size: 0.75rem;
}
.agoda-card__location {
    font-size: 0.78rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 3px;
}
.agoda-card__location i {
    color: #4a5568;
    font-size: 0.7rem;
}

/* "Giá mỗi đêm chưa gồm thuế và phí" */
.agoda-card__price-note {
    font-size: 0.73rem;
    color: #718096;
    margin-bottom: 3px;
}

/* Red price */
.agoda-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1;
}

/* =========================================================
   PROMO CARDS (Khuyến mãi & Hoạt động)
   ========================================================= */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promo-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 160px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }

.promo-card--purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.promo-card--orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.promo-card--teal   { background: linear-gradient(135deg, #0f766e, #0891b2); }

.promo-card__img-side {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}
.promo-card__img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.4s;
}
.promo-card:hover .promo-card__img-side img { transform: scale(1.06); }

.promo-card__body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: #fff;
}

.promo-card__badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.promo-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.promo-card__sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}
.promo-card__sub strong { color: #fff; font-size: 1.1rem; }

.promo-card__cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
}

/* =========================================================
   BRAND CARDS (Landscape + overlay)
   ========================================================= */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.brand-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 180px;
    display: block;
    transition: transform 0.25s;
}
.brand-card:hover { transform: translateY(-5px); }

.brand-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.brand-card:hover .brand-card__img { transform: scale(1.06); }

.brand-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.brand-card__content { color: #fff; }

.brand-card__tag {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255,255,255,0.22);
    border-radius: 20px;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.brand-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.brand-card__sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* =========================================================
   FLASH SALE LAYOUT (Big banner + 3 side cards)
   ========================================================= */
.flash-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Big left banner */
.flash-banner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 340px;
    display: block;
    transition: transform 0.2s;
}
.flash-banner:hover { transform: scale(1.01); }

.flash-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,28,60,0.85) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}

.flash-banner__badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #ffd166;
    color: #111111;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
}

.flash-banner__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.flash-banner__sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.flash-banner__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.flash-banner__old {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-decoration: line-through;
}
.flash-banner__new {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd166;
}
.flash-banner__per {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* Side cards stack */
.flash-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    position: relative;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.flash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.flash-card__img {
    width: 90px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.flash-card__body { flex: 1; min-width: 0; }

.flash-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-card__location {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.flash-card__location i { color: #1a1a1a; font-size: 0.7rem; }

.flash-card__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-card__old {
    font-size: 0.72rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.flash-card__new {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e53e3e;
}

.flash-card__score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
}

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-4px); }

.feature-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* =========================================================
   APP BANNER
   ========================================================= */
.app-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    padding: 60px 0;
    overflow: hidden;
}

.app-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.app-banner__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.app-banner__sub {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.app-banner__btns {
    display: flex;
    gap: 12px;
}

.app-store-btn {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}
.app-store-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); color: #fff; }
.app-store-btn i { font-size: 1.75rem; }
.app-store-btn span { font-size: 0.72rem; display: block; opacity: 0.7; }
.app-store-btn strong { font-size: 0.95rem; display: block; }

.app-banner__img-wrap {
    flex-shrink: 0;
    width: 320px;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.app-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .destinations-grid { grid-template-columns: repeat(3, 1fr); }
    .deals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .flash-layout { grid-template-columns: 1fr; }
    .flash-banner { height: 280px; }
}

@media (max-width: 768px) {
    /* Hero */
    .hero__bg { height: 100%; }
    .hero__content { padding: 80px 16px 0; }
    .hero__title { font-size: 1.4rem; margin-bottom: 16px; }

    /* Search Widget (sw2) */
    .sw2__card { border-radius: 12px; padding: 16px; }
    .sw2__sub-tabs { margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; white-space: nowrap; }
    .sw2__row { flex-direction: column; background: transparent; border: none; gap: 8px; margin-bottom: 10px; }
    .sw2__field { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 12px; }
    .sw2__row-divider { display: none; }
    
    /* Section Headers */
    .lx-section__title { font-size: 1.4rem; line-height: 1.3; max-width: 70%; }
    .lx-section__title--center { text-align: left; max-width: 100%; margin-bottom: 28px; }
    .lx-section__link { white-space: nowrap; flex-shrink: 0; }

    /* Grids */
    .destinations-grid { grid-template-columns: repeat(2, 1fr); }
    .deals-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
    
    /* Promo Cards */
    .promo-card { height: auto; min-height: 160px; }
    .promo-card__img-side { width: 40%; min-height: 100%; }
    .promo-card__body { padding: 16px 12px; gap: 8px; }
    .promo-card__title { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card { padding: 20px 16px; }
    .lx-section { padding: 36px 0; }

    /* agoda-card → layout ngang như trang /rooms */
    .agoda-card {
        display: flex;
        flex-direction: row;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 1px 6px rgba(0,0,0,.07);
        min-height: 110px;
    }
    /* Reset padding-top trick, dùng chiều cao thực */
    .agoda-card__img-wrap {
        width: 38%;
        min-width: 120px;
        max-width: 150px;
        padding-top: 0 !important;
        height: auto;
        align-self: stretch;
        border-radius: 0;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    /* Đổi img từ absolute → fill bằng inset:0 vẫn ok vì parent có chiều cao từ flex */
    .agoda-card__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .agoda-card__score {
        top: 6px;
        left: 6px;
        right: auto;
        font-size: .75rem;
        padding: 3px 7px;
    }
    .agoda-card__body {
        flex: 1;
        padding: 10px 28px 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        position: relative;
    }
    .agoda-card__body::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 7px;
        height: 7px;
        border-top: 2px solid #bbb;
        border-right: 2px solid #bbb;
    }
    .agoda-card__name {
        font-size: .88rem;
        color: #1a56db;
        margin-bottom: 3px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .agoda-card__meta { margin-bottom: 3px; gap: 3px; }
    .agoda-card__price-note {
        font-size: .7rem;
        color: #888;
        margin-bottom: 1px;
        display: block;
    }
    .agoda-card__price {
        font-size: 1rem;
        color: #e53e3e;
        font-weight: 800;
    }
}

@media (max-width: 480px) {
    .brand-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    
    /* Flash Cards Stack */
    .flash-card { flex-direction: column; align-items: stretch; }
    .flash-card__img { width: 100%; height: 120px; }
    .flash-card__score { top: auto; bottom: 12px; right: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   MASONRY GALLERY SECTION
   ══════════════════════════════════════════════════════════════ */

.lx-section--gallery {
    padding-bottom: 100px;
}

.gallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-bottom: 12px;
}
.gallery-eyebrow::before,
.gallery-eyebrow::after {
    content: '';
    height: 1px;
    width: 48px;
    background: #B8752A;
    opacity: .45;
}
.gallery-eyebrow span {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #B8752A;
}

.gallery-title-em {
    font-style: italic;
    font-weight: 400;
    color: #B8752A;
}

/* ── Masonry grid ── */
.lx-masonry {
    columns: 3;
    column-gap: 12px;
    margin-top: 40px;
}

.lx-masonry__item {
    break-inside: avoid;
    margin-bottom: 12px;
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #e8e0d8;
    text-decoration: none;
}

.lx-masonry__item img {
    width: 100%;
    display: block;
    transition: transform .42s cubic-bezier(.22,.68,0,1.15);
}

.lx-masonry__item:hover img {
    transform: scale(1.04);
}

.lx-masonry__caption {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(16,10,4,.72) 0%, transparent 100%);
    color: #f0ebe3;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s, transform .22s;
    pointer-events: none;
}

.lx-masonry__item:hover .lx-masonry__caption {
    opacity: 1;
    transform: translateY(0);
}

.lx-masonry__zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    opacity: 0;
    transition: opacity .18s, background .18s;
    pointer-events: none;
}

.lx-masonry__item:hover .lx-masonry__zoom {
    opacity: 1;
    background: rgba(184,117,42,.6);
    border-color: rgba(184,117,42,.7);
}

@media (max-width: 768px) {
    .lx-masonry { columns: 2; }
}
@media (max-width: 480px) {
    .lx-masonry { columns: 1; }
    .lx-section--gallery { padding-bottom: 60px; }
}
