/* Extracted from restaurants.php. Loaded at the original cascade position. */

:root {
  --km-red: #ef233c;
  --km-red-dark: #d90429;
  --km-black: #090b10;
  --km-black-soft: #111318;
  --km-white: #ffffff;
  --km-bg: #f5f6f8;
  --km-border: #e5e7eb;
  --km-text: #17191f;
  --km-muted: #68707d;
}

.rest-page {
  min-height: 80vh;
  padding: 28px 5%;
  background:
    radial-gradient(circle at top right, rgba(239,35,60,.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--km-bg) 100%);
}

.rest-hero,
.notice,
.filter-row,
.section-head,
.restaurant-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.rest-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(239,35,60,.24), transparent 26%),
    linear-gradient(135deg, #07090d, #17191f);
  color: var(--km-white);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 410px);
  gap: 22px;
  align-items: center;
  box-shadow: 0 18px 45px rgba(5,7,11,.16);
}

.rest-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--km-red), var(--km-red-dark));
}

.hero-copy,
.search-box {
  position: relative;
  z-index: 1;
}

.page-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(239,35,60,.12);
  border: 1px solid rgba(239,35,60,.32);
  color: #ff6b7d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.rest-hero h1 {
  margin: 10px 0 4px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.08;
  font-weight: 950;
}

.rest-hero p {
  margin: 0;
  color: #c7cbd2;
  font-size: 13px;
  line-height: 1.5;
}

.search-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 5px 5px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.search-box i {
  color: #8a909a;
  font-size: 13px;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--km-text);
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9299a4;
}

.search-box button,
.card-body button {
  border: 0;
  background: linear-gradient(135deg, var(--km-red), var(--km-red-dark));
  color: var(--km-white);
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.search-box button {
  flex: 0 0 auto;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 12px;
}

.search-box button:hover,
.card-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217,4,41,.24);
  filter: brightness(1.03);
}

.notice {
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #fecdd3;
  border-left: 4px solid var(--km-red);
  border-radius: 12px;
  background: #fff5f6;
  color: #9f1239;
  font-size: 12.5px;
  font-weight: 800;
}

.notice i {
  margin-right: 6px;
  color: var(--km-red);
}

.filter-row {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}

.filter-row a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--km-white);
  border: 1px solid var(--km-border);
  color: var(--km-text);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 850;
  transition: .22s ease;
}

.filter-row a:hover {
  border-color: var(--km-red);
  color: var(--km-red-dark);
  transform: translateY(-1px);
}

.filter-row .wish-link {
  background: var(--km-black-soft);
  border-color: var(--km-black-soft);
  color: var(--km-white);
}

.filter-row .wish-link i {
  color: #ff6075;
}

.section-head {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: end;
}

.section-head span {
  color: var(--km-red-dark);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 3px 0 0;
  color: var(--km-text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 950;
}

.section-head p {
  margin: 0;
  color: var(--km-muted);
  font-size: 12px;
  font-weight: 750;
}

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

.restaurant-card {
  position: relative;
  overflow: hidden;
  background: var(--km-white);
  border: 1px solid var(--km-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.restaurant-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239,35,60,.28);
  box-shadow: 0 20px 42px rgba(15,23,42,.105);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-img {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: #e9ebef;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.3));
  pointer-events: none;
}

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

.restaurant-card:hover .card-img img {
  transform: scale(1.045);
}

.rating {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(9,11,16,.88);
  color: var(--km-white);
  font-size: 10.5px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.rating i {
  color: #ff6377;
  font-size: 9px;
}

.card-body {
  padding: 12px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.title-row h3 {
  margin: 0;
  color: var(--km-text);
  font-size: 15.5px;
  font-weight: 950;
  line-height: 1.25;
}

.title-row span {
  flex: 0 0 auto;
  color: var(--km-red);
  font-size: 12px;
}

.card-body > p {
  margin: 5px 0 9px;
  color: var(--km-muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: #555d68;
  font-size: 10.8px;
  font-weight: 750;
}

.meta-row span {
  white-space: nowrap;
}

.meta-row i {
  color: var(--km-red-dark);
}

.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #eceef1;
  border-radius: 7px;
  background: #f8f9fb;
  color: #646b76;
  font-size: 9.5px;
  font-weight: 850;
}

.tag-row span:first-child i {
  color: #16a34a;
  font-size: 5px;
}

.tag-row span:last-child i {
  color: var(--km-red);
}

.card-body button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 11.5px;
}

.wish-form {
  position: absolute;
  z-index: 4;
  top: 9px;
  right: 9px;
}

.heart-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--km-red-dark);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,23,42,.16);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.heart-btn:hover {
  transform: scale(1.08);
}

.heart-btn.active {
  background: linear-gradient(135deg, var(--km-red), var(--km-red-dark));
  color: var(--km-white);
  border-color: transparent;
}

.floating-wishlist {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--km-red), var(--km-red-dark));
  color: var(--km-white);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(217,4,41,.32);
  z-index: 20;
  transition: transform .22s ease;
}

.floating-wishlist:hover {
  transform: translateY(-3px) scale(1.04);
}

@media (max-width: 1100px) {
  .restaurant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rest-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rest-page {
    padding: 18px 12px;
  }

  .rest-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .card-img {
    height: 135px;
  }
}

@media (max-width: 520px) {
  .search-box {
    border-radius: 12px;
  }

  .search-box button {
    padding: 10px 13px;
  }

  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 180px;
  }

  .floating-wishlist {
    right: 15px;
    bottom: 15px;
  }
}

