@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #F5F0E8;
    --dark: #1A1A18;
    --olive: #5C6B3A;
    --olive-light: #8A9B60;
    --rust: #C4583A;
    --gold: #D4A853;
    --card-bg: #FFFFFF;
    --border: #E0D9CC;
    --text-muted: #7A7568;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(26, 26, 24, 0.08);
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
}

/* ── HEADER ── */
header {
    background: var(--dark);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--olive);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span {
    color: var(--gold);
}

.header-sub {
    font-size: 12px;
    color: var(--olive-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── HERO ── */
.hero {
    background: var(--dark);
    padding: 56px 24px 48px;
    text-align: center;
    border-bottom: 1px solid #2E2E2A;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    color: #A09890;
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 28px;
}

.hero-count {
    display: inline-block;
    background: var(--olive);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ── FILTERS ── */
.filters-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 64px;
    z-index: 90;
}

.filters-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-right: 4px;
}

.filter-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 6px;
}

.btn-filter {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    border-color: var(--olive);
    color: var(--olive);
}

.btn-filter.active {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

/* ── RESULTS BAR ── */
.results-bar {
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── GRID ── */
main {
    max-width: 1100px;
    margin: 16px auto 60px;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* ── CARD ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 26, 24, 0.12);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 1px solid var(--border);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img.placeholder {
    background: #F0EBE0;
}

.card-body {
    padding: 16px 18px 18px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

.open-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 2px;
}

.open-badge.open {
    background: #E8F5E2;
    color: #3A7A26;
}

.open-badge.closed {
    background: #F5E8E8;
    color: #9B3A3A;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: capitalize;
}

.tag-cuisine {
    background: var(--cream);
    color: var(--dark);
    border: 1px solid var(--border);
}

.tag-type {
    background: #EEF2E6;
    color: var(--olive);
    border: 1px solid #C8D4AD;
}

.card-hours {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 2px;
}

.card-hours strong {
    color: var(--dark);
}

/* ── NO RESULTS ── */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.no-results h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--dark);
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: #7A7568;
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
    border-top: 3px solid var(--olive);
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer p+p {
    margin-top: 6px;
}

/* ── MODAL / DETAIL ── */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.7);
    z-index: 200;
    padding: 24px;
    overflow-y: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #F5F0E8;
    --dark: #1A1A18;
    --olive: #5C6B3A;
    --olive-light: #8A9B60;
    --rust: #C4583A;
    --gold: #D4A853;
    --card-bg: #FFFFFF;
    --border: #E0D9CC;
    --text-muted: #7A7568;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(26, 26, 24, 0.08);
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
}

/* ── HEADER ── */
header {
    background: var(--dark);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--olive);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span {
    color: var(--gold);
}

.header-sub {
    font-size: 12px;
    color: var(--olive-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── HERO ── */
.hero {
    background: var(--dark);
    padding: 56px 24px 48px;
    text-align: center;
    border-bottom: 1px solid #2E2E2A;
      position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/Attleborough_Hero.webp") center/cover no-repeat;
  opacity: 0.18; 
  z-index: 0;
}


.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* dark tint */
  z-index: 1;
}


.hero > * {
  position: relative;
  z-index: 2;
}


.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    color: #A09890;
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 28px;
}

.hero-count {
    display: inline-block;
    background: var(--olive);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ── FILTERS ── */
.filters-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 64px;
    z-index: 90;
}

.filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-right: 4px;
}

.filter-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 6px;
}

.btn-filter {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    border-color: var(--olive);
    color: var(--olive);
}

.btn-filter.active {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

/* ── RESULTS BAR ── */
.results-bar {
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── GRID ── */
main {
    max-width: 1100px;
    margin: 16px auto 60px;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* ── CARD ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 26, 24, 0.12);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 1px solid var(--border);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img.placeholder {
    background: #F0EBE0;
}

.card-body {
    padding: 16px 18px 18px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

.open-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 2px;
}

.open-badge.open {
    background: #E8F5E2;
    color: #3A7A26;
}

.open-badge.closed {
    background: #F5E8E8;
    color: #9B3A3A;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: capitalize;
}

.tag-cuisine {
    background: var(--cream);
    color: var(--dark);
    border: 1px solid var(--border);
}

.tag-type {
    background: #EEF2E6;
    color: var(--olive);
    border: 1px solid #C8D4AD;
}

.card-hours {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 2px;
}

.card-hours strong {
    color: var(--dark);
}

/* ── NO RESULTS ── */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.no-results h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--dark);
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: #7A7568;
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
    border-top: 3px solid var(--olive);
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer p+p {
    margin-top: 6px;
}


.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.7);
    z-index: 200;
    padding: 24px;
    overflow-y: auto;
}

.modal-backdrop.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal {
    background: #fff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-hero {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--cream);
    position: relative;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.modal-img.placeholder {
    background: #F0EBE0;
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-body h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 4px;
}

.modal-address {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-phone {
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-phone a {
    color: var(--olive);
    font-weight: 500;
}

.hours-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 6px 12px;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--cream);
    border-radius: 8px;
}

.hours-grid .day {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

.hours-grid .time {
    color: var(--dark);
}

.hours-grid .today {
    color: var(--olive);
    font-weight: 600;
}

.modal-menu-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.menu-placeholder {
    background: var(--cream);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-menu-img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
}


.modal-backdrop.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal {
    background: #fff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* .modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  border-bottom: 1px solid var(--border);
}

.modal-img img { width: 100%; height: 100%; object-fit: cover; } */

.modal-img.placeholder {
    background: #F0EBE0;
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-body h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 4px;
}

.modal-address {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-phone {
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-phone a {
    color: var(--olive);
    font-weight: 500;
}

.hours-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 6px 12px;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--cream);
    border-radius: 8px;
}

.hours-grid .day {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

.hours-grid .time {
    color: var(--dark);
}

.hours-grid .today {
    color: var(--olive);
    font-weight: 600;
}

.modal-menu-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.menu-placeholder {
    background: var(--cream);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-menu-img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .filters-section { display: none; }

  .hero { padding: 36px 16px 32px; }
  main { padding: 0 16px; }
  .modal-body { padding: 20px 20px 24px; }
  .header-sub { display: none; }

  .filter-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border);
    padding: 20px 20px 36px;
    z-index: 300;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .filter-drawer.open { transform: translateY(0); }
  .filter-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,24,0.5);
    z-index: 299;
  }
  .filter-drawer-backdrop.open { display: block; }
  .drawer-handle {
    width: 36px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
  }
  .drawer-section { margin-bottom: 16px; }
  .drawer-section-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .drawer-btns { display: flex; flex-wrap: wrap; gap: 6px; }

  .burger-filter-btn {
    position: fixed;
    bottom: 24px; right: 20px;
    width: 56px; height: 56px;
    background: var(--dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 4px 16px rgba(26,26,24,0.3);
  }
  .burger-bun {
    width: 22px; height: 5px;
    background: var(--gold);
    border-radius: 3px 3px 1px 1px;
  }
  .burger-patty {
    width: 24px; height: 5px;
    background: var(--rust);
    border-radius: 1px;
    margin: 3px 0;
  }
  .burger-bun-bottom {
    width: 22px; height: 5px;
    background: var(--gold);
    border-radius: 1px 1px 3px 3px;
  }
  .burger-filter-btn .filter-label-text {
    font-size: 8px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
  }
}

@media (min-width: 601px) {
  .burger-filter-btn,
  .filter-drawer,
  .filter-drawer-backdrop { display: none !important; }
}