:root {
  --bg: #ffffff;
  --card: #ffffff;
  --accent: #ff6a00;
  --muted: #5a5a5a;
  --shadow: 0 3px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --pill-bg: #fff;
  --fire-gradient: linear-gradient(90deg, #ff6a00, #ff3b00);
  --map-bg: #ff6a00;
  --orange-btn: #ff6a00;
  --navbar-height: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  padding-top: 100px; 
  padding-bottom: 60px;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px 30px; 
}

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  background: white;
  display: flex;
  justify-content: flex-end; 
  gap: 8px;
  padding: 10px 30px; 
}

.navbar-container {
  position: fixed;
  top: 70px; 
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: 8px 30px 0; 
}

.navbar-container.visible {
  transform: translateY(0);
}

.categories-navbar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 10px 0;
}

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

.category-item {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 8px;
}

.category-item.active {
  background: var(--accent);
  color: white;
}

.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bottom-navbar.visible {
  transform: translateY(0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  flex: 1;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item.fire {
  background: var(--orange-btn);
  color: white;
  padding: 8px 18px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.fire {
  background: var(--orange-btn);
  color: white;
  padding: 8px 18px;
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
}

.underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  margin: 12px auto 0;
  border-radius: 3px;
}

.hero p {
  margin: 12px auto 18px;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  line-height: 1.4;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
}

.card .media {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(180deg, #eee, #ddd);
}

.card .media-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.card .media-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.card .media-slide.active {
  opacity: 1;
}

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

.card:hover img { 
  transform: scale(1.06); 
}



.fav {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(255,255,255,0.94);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  z-index: 2;
}

.fav svg {
  width: 16px;
  height: 16px;
  fill: #c7c7c7;
}

.fav.active svg {
  fill: #ff3b3b;
  transform: scale(1.1);
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

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

.title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
}

.rating {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

.stars {
  color: #ffb400;
  font-weight: 800;
  font-size: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}



.details-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: transform .12s;
}

.details-btn.fire {
  background: var(--fire-gradient);
}

.details-btn:active {
  transform: translateY(1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  border-radius: 10px;
  max-width: 900px; 
  width: 100%;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

.modal .left {
  min-height: 280px;
  max-height: 400px; 
  overflow: hidden; 
}

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

.modal .right {
  padding: 20px;
}

.close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  color: #333;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.chip {
  padding: 6px 10px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.03);
  font-weight: 700;
  font-size: 13px;
}

.empty {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 16px;
}

.header-container {
  width: 100%;
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-top: 0; 
}

.header-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.header-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.header-slide.active {
  opacity: 1;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-container {
  width: 100%;
  padding: 15px 30px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: none;
  font-size: 15px;
  outline: none;
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s;
  color: #333;
}

.search-bar:focus {
  background: white;
  box-shadow: 0 2px 15px rgba(255,106,0,0.15);
}

.search-bar::placeholder {
  color: #999;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: none;
}

.login-overlay.show {
  display: block;
}

.login-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 101;
  text-align: center;
  max-width: 300px;
  width: 90%;
}

.login-message h3 {
  margin: 0 0 15px;
}

.login-message p {
  margin: 0 0 20px;
}

.login-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-btn {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.login-accept {
  background: var(--accent);
  color: white;
  border: none;
}

.login-login {
  background: white;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.location-btn {
  position: absolute;
  right: 10px;
  bottom: 100px;
  background: var(--map-bg);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.1s;
  z-index: 2;
}

.location-btn:active {
  transform: translateY(1px);
}

.location-btn svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
}

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

@media (max-width: 768px) {
  .main-navbar {
    display: none;
  }
  
  .bottom-navbar {
    display: flex;
  }
  
  body {
    padding-top: 50px; 
    padding-bottom: 60px; 
  }
  
  .navbar-container {
    height: 50px;
    padding: 0 15px;
    top: 0;
  }
  
  .categories-navbar {
    padding: 10px 0;
    height: 50px;
  }
  
  .container {
    margin-top: 0;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }
  
  .header-container {
    height: 170px;
    margin-top: 0;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .search-bar {
    padding: 12px 16px;
  }
  
  .search-container {
    padding: 15px;
  }
}

@media (min-width: 769px) {
  .bottom-navbar {
    display: none;
  }
  
  .main-navbar {
    display: flex;
  }
  
  body {
    padding-top: 100px;
    padding-bottom: 0;
  }
}