/* ============================================================
   HOMEPAGE — Activityz.ma
   Mobile-first. CSS scroll-snap (no Glide dependency).
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */

.hp-hero {
    background: linear-gradient(150deg, #0d0d1a 0%, #1a0a2e 45%, #2a0f1a 100%);
    padding: 72px 20px 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,46,94,0.25) 0%, transparent 65%);
    pointer-events: none;
}

.hp-hero::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(90,50,200,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.hp-hero__badge {
    display: inline-block;
    background: rgba(255,46,94,0.15);
    border: 1px solid rgba(255,46,94,0.3);
    color: #ff8fa3;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: 0.4px;
}

.hp-hero h1 {
    font-size: clamp(30px, 6vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #fff;
}

.hp-hero h1 span {
    color: #ff2e5e;
}

.hp-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
    line-height: 1.7;
}

/* Search bar within hero — override its default colors */
.hp-hero .search-bar-wrap,
.hp-hero .searchform,
.hp-hero form {
    max-width: 540px;
    margin: 0 auto 22px;
}

/* Trending chips */
.hp-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hp-chips__label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.hp-chip {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hp-chip:hover {
    background: #ff2e5e;
    border-color: #ff2e5e;
    color: #fff;
}

/* ── Section Base ─────────────────────────────────────────── */

.hp-section {
    padding: 56px 0;
}

.hp-section--dark {
    background: #111827;
}

.hp-section--light {
    background: #f7f8fc;
}

.hp-section__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hp-section__head h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 0 0 3px;
    color: #1a202c;
}

.hp-section--dark .hp-section__head h2 {
    color: #fff;
}

.hp-section__head > div > p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.hp-section--dark .hp-section__head > div > p {
    color: rgba(255,255,255,0.45);
}

.hp-see-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #ff2e5e;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.2s;
}

.hp-see-all:hover { gap: 9px; color: #ff2e5e; }

.hp-see-all--light { color: rgba(255,255,255,0.6); }
.hp-see-all--light:hover { color: #fff; }

/* ── Horizontal Scroll Track ─────────────────────────────── */

.hp-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 20px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hp-scroll::-webkit-scrollbar { display: none; }

@media (min-width: 960px) {
    .hp-scroll {
        padding: 4px calc((100vw - 1200px) / 2 + 20px) 16px;
    }
}

/* ── Product Cards (Bons Plans) ───────────────────────────── */

.hp-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 210px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.hp-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.hp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.hp-card:hover .hp-card__img img {
    transform: scale(1.06);
}

.hp-card__body {
    padding: 11px 13px 14px;
}

.hp-card__body h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.4;
    color: #1a202c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #ff2e5e;
}

/* ── Category Grid ────────────────────────────────────────── */

.hp-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .hp-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
    .hp-cats { gap: 14px; }
}

.hp-cat {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}

.hp-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.hp-cat:hover img {
    transform: scale(1.08);
}

.hp-cat span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 10px 11px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .hp-cat span { font-size: 13px; }
}

/* ── Event Cards ──────────────────────────────────────────── */

.hp-event-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: #fff;
    display: block;
    transition: transform 0.2s, border-color 0.2s;
}

.hp-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,46,94,0.45);
}

.hp-event-card__img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a2e;
}

.hp-event-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: transform 0.35s, opacity 0.2s;
}

.hp-event-card:hover .hp-event-card__img img {
    transform: scale(1.06);
    opacity: 1;
}

.hp-event-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff2e5e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.2px;
}

.hp-event-card__body {
    padding: 13px 14px 15px;
}

.hp-event-card__body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hp-event-meta span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-event-meta i {
    color: #ff2e5e;
    font-size: 11px;
    width: 11px;
    text-align: center;
}

/* ── Popular Pills ────────────────────────────────────────── */

.hp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.hp-pill img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.hp-pill:hover {
    border-color: #ff2e5e;
    color: #ff2e5e;
    box-shadow: 0 3px 14px rgba(255,46,94,0.12);
}

/* ── City Cards ───────────────────────────────────────────── */

.hp-city-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.hp-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.hp-city-card:hover img {
    transform: scale(1.08);
}

.hp-city-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* ── Blog Grid ────────────────────────────────────────────── */

.hp-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .hp-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.hp-blog-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.hp-blog-card__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.hp-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.hp-blog-card:hover .hp-blog-card__img img {
    transform: scale(1.05);
}

.hp-blog-card__body {
    padding: 15px 16px 18px;
}

.hp-blog-card__date {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #ff2e5e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.hp-blog-card__body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 7px;
    line-height: 1.45;
    color: #1a202c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-blog-card__body p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* ── Partners ─────────────────────────────────────────────── */

.hp-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 44px;
}

.hp-partners a {
    display: block;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.hp-partners a:hover { opacity: 1; }

.hp-partners img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(1);
    transition: filter 0.2s;
}

.hp-partners a:hover img { filter: none; }
