.restaurants-directory-page{
    --r-blue:#114c97;
    --r-blue-dark:#0c3f7b;
    --r-bg:#eef3f8;
    --r-card:#ffffff;
    --r-text:#12304d;
    --r-muted:#5b6f89;
    --r-border:#cfdced;
    --r-shadow:0 18px 40px rgba(17,76,151,.09);
    --r-shadow-hover:0 24px 56px rgba(17,76,151,.14);
    --r-radius:28px;
    background:var(--r-bg);
    color:var(--r-text);
}

.restaurants-directory-page .container{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

.restaurants-hero{
    position:relative;
    min-height:420px;
    overflow:hidden;
}

.restaurants-hero-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.restaurants-hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(8,36,75,.86) 0%, rgba(11,58,110,.72) 45%, rgba(13,52,99,.32) 100%);
}

.restaurants-hero-inner{
    position:relative;
    z-index:2;
    display:flex;
    align-items:flex-end;
    min-height:420px;
    padding:48px 0 44px;
}

.restaurants-hero-copy{
    max-width:760px;
    color:#fff;
}

.restaurants-hero-copy .hero-kicker,
.section-kicker{
    margin:0 0 14px;
    letter-spacing:.18em;
    text-transform:uppercase;
    font-size:.95rem;
    font-weight:800;
    color:#6d7f98;
}

.restaurants-hero-copy .hero-kicker{color:#d7e8ff;}

.restaurants-hero-copy h1{
    margin:0 0 18px;
    font-size:clamp(2.4rem, 4.8vw, 4rem);
    line-height:.96;
    letter-spacing:-.04em;
    font-weight:900;
}

.restaurants-hero-copy p{
    margin:0;
    max-width:780px;
    font-size:0.98rem;
    line-height:1.55;
    color:rgba(255,255,255,.95);
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:28px;
}

.hero-btn,
.btn-read{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none;
    transition:all .2s ease;
}

.hero-btn-primary,
.btn-read{
    background:var(--r-blue);
    color:#fff;
    box-shadow:var(--r-shadow);
    border:1px solid var(--r-blue);
}

.hero-btn-primary:hover,
.btn-read:hover{
    background:var(--r-blue-dark);
    border-color:var(--r-blue-dark);
    color:#fff;
    transform:translateY(-1px);
}

.hero-btn-secondary{
    border:1px solid rgba(255,255,255,.28);
    color:#fff;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(4px);
}

.hero-btn-secondary:hover{
    background:rgba(255,255,255,.16);
    color:#fff;
    transform:translateY(-1px);
}

.btn-read-light{
    background:#fff;
    color:var(--r-blue);
    border:1px solid var(--r-border);
    box-shadow:none;
}

.btn-read-light:hover{
    background:#f6f9fc;
    color:var(--r-blue-dark);
    transform:translateY(-1px);
}

.restaurants-needs,
.restaurants-neighborhoods,
.restaurants-featured,
.restaurants-directory,
.restaurants-editorial{padding:24px 0;}

.neighborhoods-grid,
.editorial-columns{
    display:grid;
    gap:26px;
}

.neighborhoods-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.editorial-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.neighborhood-card,
.restaurants-editorial .editorial-columns{
    background:var(--r-card);
    border:1px solid var(--r-border);
    border-radius:var(--r-radius);
    box-shadow:var(--r-shadow);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.neighborhood-card,
.restaurants-editorial .editorial-columns{padding:24px 26px;}

.neighborhood-card:hover,
.restaurants-editorial .editorial-columns:hover{
    transform:translateY(-4px);
    box-shadow:var(--r-shadow-hover);
}

.neighborhood-card h3,
.section-heading h2,
.editorial-columns h2,
.featured-restaurant-body h3,
.restaurant-card h3,
.restaurants-hero-copy h1{
    text-wrap:balance;
}

.neighborhood-card h3{
    margin:0 0 12px;
    font-size:1.45rem;
    line-height:1.04;
    letter-spacing:-.03em;
    color:var(--r-text);
}

.neighborhood-card p,
.section-heading p,
.editorial-columns p{
    margin:0;
    color:var(--r-muted);
    line-height:1.8;
    font-size:0.98rem;
}

.compact-heading{margin-bottom:20px;}
.with-action{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;}

.section-heading h2,
.editorial-columns h2{
    margin:0 0 14px;
    font-size:clamp(1.8rem, 3.4vw, 2.6rem);
    line-height:1.02;
    letter-spacing:-.03em;
}

.restaurant-needs-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
}

.restaurant-need-card,
.featured-restaurant-card,
.restaurant-card{
    background:var(--r-card);
    border:1px solid var(--r-border);
    border-radius:var(--r-radius);
    box-shadow:var(--r-shadow);
    overflow:hidden;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.restaurant-need-card{
    position:relative;
    min-height:280px;
    text-decoration:none;
    color:#fff;
}

.restaurant-need-card:hover,
.featured-restaurant-card:hover,
.restaurant-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--r-shadow-hover);
}

.restaurant-need-card img,
.featured-restaurant-media img,
.restaurant-card-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .45s ease;
}

.restaurant-need-card img{position:absolute;inset:0;}
.restaurant-need-card:hover img,
.featured-restaurant-card:hover .featured-restaurant-media img,
.restaurant-card:hover .restaurant-card-media img{
    transform:scale(1.04);
}

.restaurant-need-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(13,52,99,.15) 0%, rgba(8,32,65,.78) 100%);
}

.restaurant-need-content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    height:100%;
    padding:20px;
}

.restaurant-need-content h3{
    margin:0 0 12px;
    font-size:2rem;
    line-height:1.02;
    letter-spacing:-.03em;
    color:#fff;
}

.restaurant-need-content p{
    margin:0;
    color:rgba(255,255,255,.94);
    line-height:1.6;
}

.featured-restaurant-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}

.featured-restaurant-media{display:block;height:200px;}
.featured-restaurant-body,
.restaurant-card-body{padding:18px 18px 20px;}

.featured-restaurant-body h3{
    margin:0 0 10px;
    font-size:1.6rem;
    line-height:1.1;
}

.featured-restaurant-body p{
    margin:0 0 16px;
    color:var(--r-muted);
    line-height:1.8;
}

.directory-layout{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:28px;
    align-items:start;
}

.directory-sidebar{position:sticky;top:24px;}

.directory-filter-box{
    background:linear-gradient(180deg, #114c97 0%, #0c3f7b 100%);
    color:#fff;
    border-radius:34px;
    padding:22px 22px;
    box-shadow:var(--r-shadow);
}

.directory-filter-box h2{
    margin:0 0 22px;
    font-size:clamp(1.8rem, 3.4vw, 2.5rem);
    line-height:1.02;
    letter-spacing:-.03em;
    color:#fff;
}

.directory-filter-box label{
    display:block;
    margin:0 0 10px;
    font-size:1rem;
    font-weight:800;
    color:#fff;
}

.directory-filter-box input,
.directory-filter-box select{
    width:100%;
    min-height:48px;
    border:none;
    border-radius:22px;
    padding:0 16px;
    font-size:1rem;
    margin-bottom:20px;
    background:#fff;
    color:#143255;
}

.directory-submit,.directory-reset{width:100%;margin-top:4px;}
.directory-reset{margin-top:14px;border-color:rgba(255,255,255,.22);}

.directory-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    background:var(--r-card);
    border:1px solid var(--r-border);
    border-radius:34px;
    padding:18px 22px;
    box-shadow:var(--r-shadow);
    margin-bottom:22px;
}

.directory-count{
    font-size:1.2rem;
    font-weight:900;
    color:var(--r-text);
}

.directory-controls{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
}

.view-pill,
.listing-pagination a{
    transition:all .2s ease;
}

.view-pill{
    min-width:118px;
    min-height:44px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid var(--r-border);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:800;
    color:var(--r-text);
    background:#fff;
}

.view-pill.is-active{
    background:var(--r-blue);
    border-color:var(--r-blue);
    color:#fff;
}

.view-pill:hover,
.listing-pagination a:hover{
    transform:translateY(-1px);
}

.sort-form select{
    min-width:220px;
    min-height:44px;
    border-radius:18px;
    border:1px solid var(--r-border);
    padding:0 18px;
    font-size:1rem;
    background:#fff;
    color:#143255;
}

.restaurant-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.restaurant-results-list{display:grid;grid-template-columns:1fr;gap:18px;}
.restaurant-card-grid .restaurant-card-media{display:block;height:190px;}

.place-card-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.badge-premium,.badge-new{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border-radius:999px;font-size:.82rem;font-weight:800;}
.badge-premium{background:var(--r-blue);color:#fff;}
.badge-new{background:#e8f6ec;color:#17803b;}
.place-location{margin:0 0 8px;color:#6b7f98;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.9rem;}
.restaurant-card h3{margin:0 0 10px;font-size:clamp(1.55rem, 2vw, 2.2rem);line-height:1.05;letter-spacing:-.03em;}
.place-meta{margin:0 0 14px;color:#425974;font-weight:700;line-height:1.7;}
.place-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;}
.place-tags span{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#f4ead9;color:#7c5714;font-size:.84rem;font-weight:700;border:1px solid rgba(124,87,20,.08);}
.place-description{margin:0 0 16px;color:var(--r-muted);line-height:1.8;}
.card-links{display:flex;flex-wrap:wrap;gap:10px;}

.restaurant-card-list{display:grid;grid-template-columns:280px minmax(0,1fr);}
.restaurant-card-list .restaurant-card-media{min-height:100%;}
.restaurant-card-list .restaurant-card-body{padding:24px 24px 26px;}

.listing-pagination{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;}
.listing-pagination a{width:42px;height:42px;border-radius:999px;background:#fff;color:var(--r-blue);display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;border:1px solid var(--r-border);}
.listing-pagination a.is-active{background:var(--r-blue);color:#fff;border-color:var(--r-blue);}
.listing-empty{background:var(--r-card);padding:22px 24px;border-radius:var(--r-radius);border:1px solid var(--r-border);color:var(--r-muted);box-shadow:var(--r-shadow);}

.restaurants-directory{padding-top:18px;}
.restaurants-editorial{padding-top:10px;}

@media (max-width:1180px){
    .restaurant-needs-grid,
    .featured-restaurant-grid,
    .restaurant-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:980px){
    .neighborhoods-grid,
    .editorial-columns,
    .directory-layout{grid-template-columns:1fr;}
    .directory-sidebar{position:static;}
    .directory-toolbar{flex-direction:column;align-items:stretch;}
    .directory-controls{justify-content:flex-start;}
    .restaurant-card-list{grid-template-columns:1fr;}
    .restaurants-editorial .editorial-columns,
    .neighborhood-card{padding:28px 24px;}
}

@media (max-width:720px){
    .restaurants-directory-page .container{width:min(100% - 28px, 1320px);}
    .restaurants-hero{min-height:360px;}
    .restaurants-hero-inner{min-height:360px;padding:40px 0 28px;}
    .restaurants-hero-copy h1{font-size:clamp(2.1rem, 10vw, 3.2rem);}
    .restaurants-hero-copy p{font-size:1.12rem;}
    .restaurant-needs-grid,
    .featured-restaurant-grid,
    .restaurant-results-grid{grid-template-columns:1fr;}
    .restaurant-need-card{min-height:260px;}
    .with-action{display:block;}
    .with-action .hero-btn{margin-top:14px;}
    .view-pill,.sort-form select{min-width:auto;width:100%;}
    .directory-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
    .sort-form{grid-column:1 / -1;}
    .directory-toolbar{border-radius:26px;padding:16px 16px;}
    .restaurants-editorial .editorial-columns,
    .neighborhood-card{padding:24px 22px;}
}
