/* Top 50 Restaurants — Hotel Dublin design */

:root {
  --teal-dark:  #0a3535;
  --teal:       #006e6e;
  --teal-light: #008888;
  --amber:      #e8a000;
  --green-badge:#1a9c5c;
  --gray-50:    #f3f5f7;
  --gray-100:   #eaecef;
  --gray-200:   #d8dbe0;
  --gray-300:   #b0b5be;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --white:      #ffffff;
  --radius:     6px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 14px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.13);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--teal-dark);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name  { font-size: 1.05rem; font-weight: 800; letter-spacing: .05em; color: var(--white); text-transform: uppercase; }
.logo-tagline { font-size: 0.58rem; letter-spacing: .12em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.header-right { font-size: 0.8rem; color: rgba(255,255,255,.75); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(.5);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.hero-title    { font-size: 2.3rem; font-weight: 800; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.45); margin-bottom: .5rem; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.85); }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 48px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .72rem .95rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-700);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .18s, border-color .18s;
}
.filter-btn:hover, .filter-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

.filter-sep { width: 1px; height: 1.4rem; background: var(--gray-200); flex-shrink: 0; margin: 0 .2rem; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.main-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 500px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  align-items: start;
}

.listing-header { padding: .75rem 0 .4rem; }
.listing-count  { font-size: 1.15rem; font-weight: 700; }
.listing-sub    { font-size: .82rem; color: var(--teal); margin-top: .2rem; }

/* ── RESTAURANT CARD ─────────────────────────────────────── */
.restaurant-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
  overflow: hidden;
}
.restaurant-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ─ card top row ─ */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem .65rem;
}

.card-name-block { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }

.card-rank-name {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.rank-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-circle.rank-1 { background: #b8860b; }
.rank-circle.rank-2 { background: #8c8c8c; }
.rank-circle.rank-3 { background: #8b4513; }

.restaurant-name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.restaurant-name a:hover { color: var(--teal); }

.card-address { font-size: .76rem; color: var(--gray-500); display: flex; align-items: center; gap: .25rem; padding-left: .15rem; }

/* ─ right block: rating badge + review count ─ */
.card-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; flex-shrink: 0; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--amber);
  color: #1a0900;
  border-radius: 4px;
  padding: .22rem .55rem;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.rating-badge-label { font-size: .7rem; opacity: .85; font-weight: 500; }

.review-count-sm { font-size: .72rem; color: var(--gray-400); }

/* ─ card body: image + info side by side ─ */
.card-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0 1rem 0 1rem;
}

/* image wrapper — fixed size, all carousel images absolutely positioned */
.card-image-wrap {
  position: relative;
  width: 190px;
  height: 165px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background: var(--gray-100);
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s;
}
.carousel-image.active { opacity: 1; }

/* carousel nav arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity .18s;
  padding: 0;
}
.card-image-wrap:hover .carousel-btn { opacity: 1; }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
.carousel-btn svg { width: 9px; height: 9px; }

/* "Best for" badge on image */
.best-for-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  padding: 1.5rem .55rem .4rem;
}
.best-for-badge span {
  display: inline-block;
  background: var(--amber);
  color: #1a0a00;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .2rem .45rem;
  border-radius: 3px;
  line-height: 1.3;
}

/* info panel right of image */
.card-info {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 .9rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.card-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .28rem;
  margin: 0;
}
.card-highlights li {
  font-size: .8rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.35;
}
.card-highlights li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.card-tags { display: flex; flex-wrap: wrap; gap: .3rem; }

.tag {
  display: inline-flex;
  padding: .18rem .5rem;
  border-radius: 3px;
  font-size: .71rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
}
.tag-price { color: var(--teal); }

/* quote / description snippet */
.card-quote {
  font-size: .78rem;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--gray-200);
  padding-left: .6rem;
  margin: 0;
}

/* ─ card footer ─ */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: .75rem;
}

.btn-outline {
  padding: .38rem .9rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  background: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: background .18s, color .18s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-solid {
  padding: .38rem .9rem;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: background .18s;
}
.btn-solid:hover { background: var(--teal-light); border-color: var(--teal-light); }

.no-results-msg { text-align: center; padding: 2rem; color: var(--gray-500); font-size: .9rem; }

/* ── MAP COLUMN ──────────────────────────────────────────── */
.map-col {
  position: sticky;
  top: 96px;
  height: calc(100vh - 116px);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── MAP SIDEBAR (fills remaining space) ── */
.map-sidebar {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.map-container { width: 100%; height: 100%; }

/* ── MAP ACTIVE CARD (bottom of map) ── */
.map-active-card {
  background: var(--white);
  border-top: 2px solid var(--amber);
  flex-shrink: 0;
}
.map-active-card:empty { display: none; }

.mac-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.mac-photo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.mac-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mac-info {
  flex: 1;
  min-width: 0;
}

.mac-rank-name {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .2rem;
}

.mac-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mac-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-address {
  font-size: .68rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .3rem;
}

.mac-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}

.mac-rating {
  background: var(--amber);
  color: #1a0900;
  font-size: .7rem;
  font-weight: 700;
  padding: .18rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.mac-btn {
  font-size: .65rem !important;
  padding: .25rem .6rem !important;
  white-space: nowrap;
}

/* ── DETAIL PAGE ─────────────────────────────────────────── */
.detail-wrap { max-width: 980px; margin: 0 auto; padding: 2rem 1.5rem; }

.detail-breadcrumb {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.detail-breadcrumb a { color: var(--teal); }
.detail-breadcrumb a:hover { text-decoration: underline; }

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.detail-name { font-size: 2rem; font-weight: 800; line-height: 1.2; }

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .88rem;
  color: var(--gray-500);
}

.stars { display: flex; align-items: center; gap: 2px; }

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 4px;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.25rem 0;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.detail-gallery img:hover { opacity: .9; transition: opacity .2s; }
.detail-gallery .main-photo { grid-row: 1 / 3; height: 100%; }

.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.detail-section { margin-bottom: 2rem; }
.detail-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.info-grid { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .875rem; }
.info-grid dt { color: var(--gray-400); font-weight: 600; white-space: nowrap; }
.info-grid dd { color: var(--gray-700); margin: 0; }
.info-grid a { color: var(--teal); }
.info-grid a:hover { text-decoration: underline; }

.detail-map-box { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
#detail-map { width: 100%; height: 260px; }

.detail-review {
  padding: .85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: .7rem;
}
.detail-review--trusted {
  border-color: #c8e6fa;
  background: #f5fbff;
}
.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0070c9;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 9px 3px 7px;
  border-radius: 99px;
  margin-bottom: .45rem;
}
.detail-review p { color: var(--gray-700); font-size: .875rem; line-height: 1.6; font-style: italic; margin: .35rem 0; }
.review-author { color: var(--gray-400); font-size: .76rem; font-weight: 600; margin-top: .3rem; }

.badge-section { background: var(--teal-dark); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; color: var(--white); }
.badge-section h2 { color: rgba(255,255,255,.75); border-bottom-color: rgba(255,255,255,.15); }

.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 1rem; }
.other-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.other-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.other-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.other-card-info { padding: .6rem .75rem; }
.other-card-info h3 { font-size: .82rem; font-weight: 600; margin-bottom: .2rem; }
.other-card-info h3 a:hover { color: var(--teal); }
.other-card-info .rating-sm { font-size: .73rem; color: var(--gray-500); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #1a2e35;
  color: rgba(255,255,255,.65);
  font-size: .83rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.sf-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}
.sf-logo {
  display: flex; flex-direction: column; gap: .2rem;
  text-decoration: none !important; margin-bottom: 1.5rem;
}
.sf-logo__name { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.sf-logo__tagline { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }

.sf-payments__title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.45); margin-bottom: .5rem; }
.sf-payments__icons { display: flex; gap: .4rem; align-items: center; margin-bottom: 1rem; }

.sf-trusted { display: flex; align-items: center; gap: .65rem; }
.sf-trusted svg { flex-shrink: 0; opacity: .9; }
.sf-trusted__title { font-size: .78rem; font-weight: 600; color: #fff; margin: 0; }
.sf-trusted__sub { font-size: .7rem; color: rgba(255,255,255,.5); }

.sf-nav { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.sf-nav__heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.5); margin: 0 0 .9rem; }
.sf-nav__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.sf-nav__list li a,
.sf-nav__link { font-size: .83rem; color: rgba(255,255,255,.75); cursor: pointer; }
.sf-nav__list li a:hover,
.sf-nav__link:hover { color: #fff; text-decoration: underline; }

.sf-searches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sf-search-group__title { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.45); margin: 0 0 .5rem; }

.sf-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1280px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.4);
}

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .sf-nav { grid-template-columns: 1fr; gap: 1.5rem; }
  .sf-searches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .sf-searches { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1060px) {
  .main-layout { grid-template-columns: 1fr; }
  .map-col { position: relative; top: 0; height: auto; order: -1; }
  .map-sidebar { height: 320px; }
  .detail-two-col { grid-template-columns: 1fr; }
  .detail-map-box { position: relative; top: 0; }
}

@media (max-width: 600px) {
  .hero { height: 210px; }
  .hero-title { font-size: 1.55rem; }
  .card-image-wrap { width: 130px; height: 140px; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 220px 140px 140px; }
  .detail-gallery .main-photo { grid-row: 1; }
  .detail-name { font-size: 1.45rem; }
}
