:root {
  --bg: #f6f8fb;
  --card: #fff;
  --muted: #6b7280;
  --accent: #06b6d4;
  --green: #10b981;
  --pill: #eef2f7;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: #111827;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.brand {
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 18px;
}
.nav-link {
  color: var(--muted);
  cursor: pointer;
}
.nav-link.active {
  color: #0f172a;
  font-weight: 600;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
}
.page {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}
.search {
  background: transparent;
  margin-bottom: 18px;
}
.search-inner {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}
.search-fields.grid {
  display: grid;
  grid-template-columns: 1fr 240px 240px;
  gap: 16px;
  width: 100%;
  align-items: center;
}
.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.input-with-icon input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  background: #fbfdff;
}
.pill-input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  background: #fbfdff;
}
.search-btn {
  background: linear-gradient(90deg, #13b5db, #08a6d1);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  margin-top: 10px;
}

.content {
  display: flex;
  gap: 24px;
  margin-top: 18px;
}
.filters {
  width: 260px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: fit-content;
}
.filters h3 {
  margin: 0 0 12px 0;
}
.filter-block {
  margin-bottom: 18px;
}
.filter-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.star {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e6eef6;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.star.active {
  background: #fff;
  border: 1px solid #d1eaf6;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.06);
}

.budget {
  display: flex;
  align-items: center;
  gap: 8px;
}
.budget .budget-values {
  font-size: 13px;
  color: var(--muted);
  width: 44px;
  text-align: center;
}
.range {
  flex: 1;
}
.check {
  display: block;
  padding: 8px 6px;
  border-radius: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}
.check input {
  margin-right: 8px;
}

.results {
  flex: 1;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.count {
  color: var(--muted);
}
.pill {
  background: var(--pill);
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  margin-left: 8px;
}
.pill.active {
  background: #0f172a;
  color: #fff;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sort {
  display: flex;
  align-items: center;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card {
  display: flex;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: stretch;
}
.card-media {
  position: relative;
  flex: 0 0 320px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hotel-title {
  margin: 0;
  font-size: 18px;
}
.price {
  font-weight: 700;
  color: var(--green);
}
.price.green {
  color: var(--green);
}
.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0;
}
.icons {
  color: var(--muted);
}
.icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.95;
}
.icon-star {
  vertical-align: middle;
  margin-right: 8px;
}
.scores {
  display: flex;
  gap: 8px;
}
.score-pill {
  background: #f3f7fb;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
}
.ecs {
  background: #2d473c;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.ecs--91 {
  color: #f3a745;
}
.ecs--6 {
  color: #ffffff;
}
.ecs--4 {
  color: #7d7d7d;
}

.hotel-title {
  font-size: 18px;
  margin: 0 0 4px 0;
}
.card-top .price {
  font-size: 18px;
}

/* small visual tweaks to match screenshot spacing */
.card-body {
  padding: 20px;
}

.reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.review-count {
  color: var(--muted);
  font-size: 13px;
  margin-left: 8px;
}
.stars-small {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.stars-small {
  color: #f59e0b;
}
.ecs {
  background: #0f172a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-footer {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .page {
    padding: 0 16px;
  }
  .content {
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .card-media {
    flex: 0 0 100%;
    height: 220px;
  }
  .card {
    flex-direction: column;
  }
  .card-media img {
    height: 100%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
  }
}

/* e-Score modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 20, 0.45);
  backdrop-filter: blur(2px);
  z-index: 60;
  padding: 28px;
}
.modal-overlay[hidden] {
  display: none;
}
.modal {
  background: #fff;
  border-radius: 20px;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  padding: 26px 28px;
  color: #0f172a;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0;
  font-size: 22px;
}
.modal-close {
  background: transparent;
  border: 2px solid #e6f0ea;
  color: #234;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.modal-close:focus {
  outline: 3px solid rgba(45, 71, 60, 0.14);
}

.escore-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 6px;
}
.escore-item {
  background: #f7f8f9;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
}
.escore-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.escore-item .label {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.escore-item .value {
  font-weight: 700;
  color: #0f172a;
}
.escore-item .value.small {
  font-size: 13px;
}
.escore-item.wide {
  grid-column: span 2;
}
.escore-item .unit {
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.escore-item .arrow {
  font-size: 12px;
  color: #10b981;
  margin-right: 6px;
}

@media (max-width: 1100px) {
  .escore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 720px) {
  .modal {
    padding: 18px;
  }
  .escore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .modal {
    border-radius: 14px;
  }
}
