/* ============================================================
   Plan en Familia — Child-friendly Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fredoka+One&display=swap');

:root {
    --orange:    #FF6B35;
    --yellow:    #FFD93D;
    --green:     #6BCB77;
    --blue:      #4D96FF;
    --purple:    #C77DFF;
    --pink:      #FF6B9D;
    --red:       #FF4757;
    --teal:      #26de81;

    --bg:        #f7f7f8;
    --bg-card:   #FFFFFF;
    --bg-dark:   #2D3436;

    --text:      #2D3436;
    --text-mid:  #636E72;
    --text-muted:#B2BEC3;

    --radius-sm:  8px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow:    0 4px 20px rgba(0,0,0,.09);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

    --transition: .2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }

.font-brand { font-family: 'Fredoka One', cursive; }

/* ---- Layout ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.plans-filter-container { padding-top: 1.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .75rem 1.25rem;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-search {
    flex: 1;
    max-width: 480px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: .6rem 1rem .6rem 2.8rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-xl);
    font-size: .95rem;
    transition: border-color var(--transition);
    background: var(--bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
}

.search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.nav-link {
    padding: .5rem .9rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    transition: all var(--transition);
    color: var(--text-mid);
}

.nav-link:hover { background: var(--bg); color: var(--orange); }

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: #fff;
    border: none;
    padding: .55rem 1.2rem;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,.4);
}

.btn-secondary {
    background: #fff;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: .5rem 1.1rem;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-secondary:hover {
    background: var(--orange);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border: 2px solid #e0e0e0;
    padding: .5rem 1.1rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #FFF3E8 0%, #FFE8F5 50%, #E8F4FF 100%);
    padding: 4rem 1.25rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,.08) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 35%;
    height: 150%;
    background: radial-gradient(circle, rgba(77,150,255,.08) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, var(--orange), var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .75rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--orange);
}

.hero-stat-label {
    font-size: .85rem;
    color: var(--text-mid);
    font-weight: 600;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.categories-strip-wrapper {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.categories-strip {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.categories-strip::-webkit-scrollbar { display: none; }

.categories-inner {
    display: flex;
    gap: .6rem;
    padding: .8rem 1.25rem;
}

/* Fade gradients */
.categories-fade-left,
.categories-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .2s;
}

.categories-fade-left  { left: 0;  background: linear-gradient(to right, #fff 50%, transparent); }
.categories-fade-right { right: 0; background: linear-gradient(to left,  #fff 50%, transparent); }

.categories-strip-wrapper.can-scroll-left  .categories-fade-left  { opacity: 1; }
.categories-strip-wrapper.can-scroll-right .categories-fade-right { opacity: 1; }

/* Arrows */
.categories-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--text-mid);
    transition: all var(--transition);
    opacity: 0;
    pointer-events: none;
}

.categories-strip-arrow:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.categories-strip-arrow.arrow-left  { left: 8px; }
.categories-strip-arrow.arrow-right { right: 8px; }

.categories-strip-wrapper.can-scroll-left  .arrow-left,
.categories-strip-wrapper.can-scroll-right .arrow-right {
    opacity: 1;
    pointer-events: auto;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: var(--radius-xl);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    background: var(--bg);
    color: var(--text-mid);
}

.category-chip:hover,
.category-chip.active {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

.category-chip .chip-emoji { font-size: 1rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.section-link {
    font-weight: 700;
    color: var(--orange);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.section-link:hover { text-decoration: underline; }

/* ============================================================
   PLAN CARDS
   ============================================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.plan-card.featured {
    border: 2px solid var(--yellow);
}

.plan-card.featured::before {
    content: '⭐ Destacado';
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--yellow);
    color: #333;
    font-size: .7rem;
    font-weight: 800;
    padding: .25rem .6rem;
    border-radius: var(--radius-xl);
    z-index: 2;
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.plan-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    background: linear-gradient(135deg, #fff3e8, #ffe8f5);
}

.card-category-badge {
    position: absolute;
    bottom: .6rem;
    right: .6rem;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.card-body {
    padding: 1.1rem 1.1rem .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-badges {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .65rem;
    border-radius: var(--radius-xl);
    font-size: .75rem;
    font-weight: 700;
}

.badge-age   { background: #E8F4FF; color: #2667CC; }
.badge-free  { background: #E8F8EE; color: #1E8038; }
.badge-price { background: #FFF3E8; color: #B35000; }
.badge-province { background: #F3E8FF; color: #7B1FCC; }

.card-rating {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rating-score {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--orange);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    font-size: .75rem;
    color: var(--text-muted);
}

.rating-stars .star.filled { color: var(--yellow); }

.rating-count {
    font-size: .78rem;
    color: var(--text-muted);
}

.card-excerpt {
    font-size: .85rem;
    color: var(--text-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    padding: .75rem 1.1rem;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.card-location {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.btn-card {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: #fff;
    border: none;
    padding: .4rem .9rem;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: .82rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,107,53,.4);
}

/* ── Photo vote buttons ── */
.photo-like-btn,
.photo-dislike-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-mid);
}
.photo-like-btn:hover  { border-color: #22c55e; color: #16a34a; }
.photo-dislike-btn:hover { border-color: #ef4444; color: #dc2626; }
.photo-like-btn.active    { background: #dcfce7; border-color: #22c55e; color: #16a34a; }
.photo-dislike-btn.active { background: #fee2e2; border-color: #ef4444; color: #dc2626; }

/* ============================================================
   FILTERS (inside Live Component)
   ============================================================ */
.filter-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-field label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: .3rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: .55rem .8rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
    cursor: pointer;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.filter-range input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: linear-gradient(to right, var(--orange) var(--val, 50%), #e0e0e0 var(--val, 50%));
    border-radius: 2px;
    cursor: pointer;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255,107,53,.4);
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.results-count {
    font-weight: 700;
    color: var(--text-mid);
    font-size: .9rem;
}

.sort-select {
    padding: .4rem .8rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-xl);
    font-size: .85rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

/* ============================================================
   PLAN DETAIL
   ============================================================ */
.plan-detail {
    padding: 2rem 0 3rem;
}

.plan-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.plan-hero-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #fff3e8, #ffe8f5);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* ── Plan Media Gallery ── */
.plan-gallery {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 420px;
    background: #111;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.gallery-main-video {
    width: 100%;
    height: 100%;
}

.gallery-fullscreen-btn {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .35rem .65rem;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: background .2s;
}
.gallery-fullscreen-btn:hover { background: rgba(0,0,0,.8); }

.gallery-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 90px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #222;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb:hover { border-color: var(--purple); }

.thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}

.thumb-play-big {
    color: #fff;
    font-size: 1.5rem;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 48px rgba(0,0,0,.6);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
    z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.75rem;
    padding: .75rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    z-index: 10000;
    transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 600px) {
    .gallery-main { height: 240px; }
    .gallery-thumb { flex: 0 0 70px; height: 50px; }
}

.plan-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .plan-layout { grid-template-columns: 1fr; }
}

.plan-title-area { margin-bottom: 1rem; }

.plan-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text);
    margin-bottom: .75rem;
}

.plan-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.plan-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}

.plan-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 5rem;
}

.plan-info-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .9rem;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-weight: 600;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.info-value {
    font-weight: 800;
    color: var(--text);
}

.plan-url-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: #fff;
    padding: .9rem;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 1rem;
    margin-top: 1.25rem;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(255,107,53,.35);
}

.plan-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,.45);
}

/* ============================================================
   RATING WIDGET
   ============================================================ */
.rating-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rating-big-score {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: var(--orange);
    line-height: 1;
}

.rating-big-score span { font-size: 1.5rem; color: var(--text-muted); }

.rating-info p { color: var(--text-muted); font-size: .9rem; font-weight: 600; }

.rating-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: .4rem;
    width: 120px;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-radius: 4px;
    transition: width .6s ease;
}

.vote-widget { margin-top: 1rem; }

.vote-title {
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .75rem;
    color: var(--text);
}

.vote-stars {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.vote-star {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #f9f9f9;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
}

.vote-star.active,
.vote-star:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #333;
    transform: scale(1.15);
}

.vote-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-mid);
    min-height: 1.2em;
    transition: color .2s;
}

.rating-updated { animation: pulse .4s ease; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.comment-form { margin-bottom: 2rem; }

.comment-textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    resize: vertical;
    transition: border-color var(--transition);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.comments-list { display: flex; flex-direction: column; gap: 1rem; }

.comment-item {
    display: flex;
    gap: .9rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    animation: fadeInUp .3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-username {
    font-weight: 800;
    font-size: .9rem;
    color: var(--text);
}

.comment-date {
    font-size: .78rem;
    color: var(--text-muted);
    margin-left: .5rem;
}

.comment-content {
    font-size: .9rem;
    color: var(--text-mid);
    margin-top: .3rem;
    line-height: 1.6;
}

/* ============================================================
   PROVINCE CARDS
   ============================================================ */
.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.province-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.province-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--orange);
}

.province-emoji { font-size: 2rem; }
.province-name { font-weight: 800; font-size: .95rem; }
.province-count { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   FEATURED CAROUSEL (horizontal scroll)
   ============================================================ */
.featured-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #f0f0f0;
    padding-bottom: .75rem;
    scroll-snap-type: x mandatory;
}

.featured-scroll .plan-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.auth-container {
    max-width: 440px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.form-group { margin-bottom: 1.1rem; }

.form-label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
}

.form-error {
    font-size: .8rem;
    color: var(--red);
    margin-top: .3rem;
    font-weight: 600;
}

.form-error-msg {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    padding: .4rem .7rem;
    background: #fff0f0;
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #c0392b;
    font-size: .82rem;
    font-weight: 700;
}

.form-group:has(.form-error-msg) .form-control {
    border-color: var(--red);
    background: #fffafa;
}

.form-group:has(.form-error-msg) .form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255,71,87,.15);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}

.flash {
    padding: .8rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: #E8F8EE; color: #1E8038; border-left: 4px solid #6BCB77; }
.flash-error   { background: #FFE8E8; color: #C0392B; border-left: 4px solid #FF4757; }
.flash-info    { background: #E8F4FF; color: #2667CC; border-left: 4px solid #4D96FF; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    transition: all var(--transition);
    border: 2px solid #e0e0e0;
    color: var(--text-mid);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.pagination .current {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: .75rem 0;
    font-size: .85rem;
    color: #111111;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--orange); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: #b2bec3;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.footer-brand .logo-text { color: #fff; -webkit-text-fill-color: #fff; }
.footer-brand p { margin-top: .75rem; font-size: .9rem; line-height: 1.7; }

.footer-heading {
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .75rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    font-size: .9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .83rem;
}

/* ============================================================
   LOADING SPINNER (for Live Component)
   ============================================================ */
[data-live-component] [data-loading] { display: none; }
[data-live-component].loading [data-loading] { display: flex; }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HAMBURGER / MOBILE NAV
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: .45rem .5rem;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 3px solid var(--orange);
    padding: .6rem 1.25rem 1rem;
    gap: .3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    position: sticky;
    top: 56px;
    z-index: 999;
}
.mobile-nav.open { display: flex; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        flex-wrap: nowrap;
        gap: .5rem;
        padding: .6rem 1rem;
    }
    .header-search { flex: 1; max-width: none; }
    .header-nav { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .hero { padding: 2rem 1rem 1.75rem; }
    .hero-title { font-size: clamp(1.75rem, 7vw, 3rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 1.25rem; margin-top: 1.25rem; }
    .hero-stat-number { font-size: 1.5rem; }

    /* Sections */
    .section { padding: 1.75rem 0; }
    .section-title { font-size: 1.4rem; }

    /* Plan detail */
    .plan-layout { grid-template-columns: 1fr; }
    .plan-info-card { position: static; }
    .plan-hero-img { height: 220px; border-radius: var(--radius); }
    .plan-hero-placeholder { height: 180px; font-size: 3.5rem; }

    /* Rating */
    .rating-display { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .rating-big-score { font-size: 3rem; }

    /* Provinces grid */
    .provinces-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
    .province-card { padding: 1.1rem .75rem; }
    .province-emoji { font-size: 1.5rem; }

    /* Auth */
    .auth-container { margin: 1.5rem auto; }
    .auth-card { padding: 1.5rem 1.25rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer { padding: 2rem 0 1.25rem; margin-top: 2rem; }

    /* Featured scroll */
    .featured-scroll .plan-card { min-width: 240px; }

    /* Categories strip hidden on mobile */
    .categories-strip-wrapper { display: none; }

    /* Plans filter container: no top padding on mobile */
    .plans-filter-container { padding-top: 0; }

    /* Filters */
    .filter-panel { padding: .9rem; }
    .filter-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .filter-field label { font-size: .75rem; }
    .filter-select, .filter-input { padding: .5rem .7rem; font-size: .85rem; }
}

@media (max-width: 480px) {
    /* Plans */
    .plans-grid { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; gap: .6rem; }

    /* Logo text hide on very small */
    .logo-text { font-size: 1.2rem; }

    /* Province hero */
    .province-card { padding: .9rem .5rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Search */
    .search-box input { font-size: .88rem; padding: .5rem .8rem .5rem 2.4rem; }
}

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results-emoji { font-size: 4rem; display: block; margin-bottom: 1rem; }
.no-results h3 { font-size: 1.4rem; color: var(--text-mid); margin-bottom: .5rem; }

/* ============================================================
   FILTER TOGGLE (mobile collapsible)
   ============================================================ */
.filter-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 .75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: var(--text);
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: .75rem;
}
.filter-toggle-arrow { font-size: .7rem; transition: transform .2s; }
.filter-toggle[aria-expanded="false"] .filter-toggle-arrow { transform: rotate(180deg); }

@media (max-width: 768px) {
    .filter-toggle {
        display: flex;
        padding: .6rem .75rem;
        background: var(--bg);
        border: 2px solid #e8e8e8;
        border-radius: var(--radius);
        margin-bottom: .75rem;
        font-size: .9rem;
    }
    .filter-grid.collapsed { display: none; }
    .filter-actions { margin-top: .5rem; }
    .filter-actions .btn-ghost { width: 100%; justify-content: center; font-size: .85rem; padding: .5rem; }
    .btn-proximity { width: 100%; justify-content: center; }
    .proximity-controls { width: 100%; justify-content: space-between; }
}

/* ============================================================
   PROXIMITY FILTER
   ============================================================ */
.proximity-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.btn-proximity {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    background: linear-gradient(135deg, #4D96FF, #2667CC);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .88rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(77,150,255,.35);
    white-space: nowrap;
}
.btn-proximity:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(77,150,255,.45); }
.btn-proximity:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.proximity-controls {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #EBF3FF;
    border: 1.5px solid #4D96FF;
    border-radius: var(--radius-xl);
    padding: .25rem .25rem .25rem .75rem;
}

.proximity-select {
    background: transparent !important;
    border: none !important;
    font-weight: 800;
    color: #2667CC;
    font-size: .88rem;
    padding: .2rem .4rem !important;
    cursor: pointer;
}
.proximity-select:focus { outline: none; }

.btn-proximity-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #4D96FF;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.btn-proximity-clear:hover { background: #C0392B; }

/* ============================================================
   HERO PROVINCES (chips inside hero)
   ============================================================ */
.hero-provinces {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.75rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-province-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: var(--radius-xl);
    font-size: .82rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hero-province-chip:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

@media (max-width: 480px) {
    .hero-provinces { gap: .4rem; margin-top: 1.25rem; }
    .hero-province-chip { font-size: .78rem; padding: .3rem .7rem; }
}
