:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #1f2527;
  --muted: #5b676c;
  --teal: #0e7a7b;
  --teal-deep: #0a5b5c;
  --peach: #ffb678;
  --stroke: #d7ddd8;
  --shadow: 0 12px 40px rgba(20, 32, 33, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #ffe9d3 0, transparent 30%),
    radial-gradient(circle at 90% 10%, #daf2f2 0, transparent 35%),
    var(--bg);
}

.page {
  width: min(1180px, 100% - 2rem);
  margin: 1rem auto 2rem;
}

.site-footer {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d7ddd8;
}

.site-footer p {
  margin: 0;
  color: #5b676c;
  font-size: 0.84rem;
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 440px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero__image-wrap {
  grid-area: 1 / 1;
  height: 100%;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  color: #fbfffd;
  padding: 2.2rem 2rem;
  max-width: none;
  background: linear-gradient(90deg, rgba(7, 34, 35, 0.74) 0%, rgba(7, 34, 35, 0.44) 62%, rgba(7, 34, 35, 0) 100%);
  animation: fadeUp 600ms ease both;
}

.hero__content > * {
  max-width: 630px;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fbd8ba;
  font-weight: 700;
}

h1,
h2 {
  font-family: "Fraunces", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.03;
}

.hero__subtitle {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 54ch;
}

.directory {
  margin-top: 2rem;
}

.directory__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}

.directory__header p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.directory__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #3f5457;
  font-size: 0.9rem;
  font-weight: 600;
}

.sort-control select {
  border: 1px solid #bfdadb;
  border-radius: 10px;
  background: #ffffff;
  color: #173b3f;
  padding: 0.36rem 0.55rem;
  font-family: inherit;
  font-size: 0.88rem;
}

.hotel-list {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.loading-indicator {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #cfe4e5;
  background: #eef7f7;
  color: #2b4447;
  font-size: 0.9rem;
}

.loading-indicator[hidden] {
  display: none !important;
}

.loading-indicator__spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid #8fc1c3;
  border-top-color: #0e7a7b;
  animation: spin 700ms linear infinite;
}

.hotel-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 26, 27, 0.05);
}

.hotel-card__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem 1rem 1.25rem;
}

.hotel-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotel-card__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.hotel-card__meta {
  margin: 0.38rem 0 0;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.22rem;
  font-size: 0.93rem;
}

.hotel-card__address-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hotel-card__address-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.hotel-card__phone-text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hotel-card__address-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: inline-flex;
  color: #0b6162;
  margin-top: 0.08rem;
}

.hotel-card__address-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.hotel-card__phone-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: inline-flex;
  color: #0b6162;
}

.hotel-card__phone-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.hotel-card__phone-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(11, 97, 98, 0.45);
}

.hotel-card__phone-text a:hover {
  color: #0b6162;
}

.hotel-card__directions {
  justify-self: start;
  width: fit-content;
  border: 1px solid #9fd0d0;
  background: #e6f6f6;
  color: #0b6162;
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.hotel-card__directions:hover {
  background: #d6f0f0;
}

.hotel-card__directions--mobile {
  display: none;
}

.hotel-card__chip {
  display: inline-block;
  margin: 0.42rem 0 0;
  font-size: 0.77rem;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  border: 1px solid #bfe0e0;
  background: #edf8f7;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
}

.hotel-card__toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.92rem;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hotel-card__toggle:hover {
  filter: brightness(1.08);
}

.hotel-card__details {
  border-top: 1px dashed var(--stroke);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfc 100%);
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 270ms ease, padding 270ms ease;
}

.hotel-card.expanded .hotel-card__details {
  max-height: 560px;
  padding: 1rem 1.25rem 1.2rem;
}

.hotel-card__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  font-size: 0.93rem;
}

.hotel-card__detail {
  margin: 0;
}

.hotel-card__detail-label {
  color: var(--muted);
  font-weight: 600;
}

.hotel-card__comments-title {
  margin: 0.95rem 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2c3a3d;
}

.hotel-card__comments {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hotel-card__comments li {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f1f6f7;
  border: 1px solid #dce8ea;
  color: #273537;
}

.hotel-card__comment {
  display: grid;
  gap: 0.38rem;
}

.hotel-card__comment-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0a5b5c;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.hotel-card__comments li:last-child {
  margin-bottom: 0.45rem;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--muted);
}

.pagination {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pagination[hidden] {
  display: none;
}

.pagination__button {
  border: 1px solid #b8d9d9;
  background: #ffffff;
  color: #12484a;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.pagination__button--minor {
  opacity: 0.78;
  font-weight: 500;
  padding: 0.34rem 0.68rem;
  font-size: 0.83rem;
}

.pagination__button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination__status {
  color: #405356;
  font-size: 0.9rem;
}

.faq {
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.faq h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.faq__list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.faq__item {
  background: #f7fbfb;
  border: 1px solid #d9e7e7;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.faq__item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.faq__item p {
  margin: 0.42rem 0 0;
  color: #465457;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .page {
    width: min(100% - 1.4rem, 980px);
  }

  .hero {
    min-height: 390px;
  }

  .hotel-card__detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    margin-top: 0.75rem;
  }

  .directory__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 470px;
  }

  .hero__content {
    padding: 1.5rem 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(7, 34, 35, 0.68) 0%, rgba(7, 34, 35, 0.42) 64%, rgba(7, 34, 35, 0.08) 100%);
  }

  .hotel-card__meta {
    grid-template-columns: 1fr;
  }

  .hotel-card__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hotel-card__directions--address {
    display: none;
  }

  .hotel-card__directions--mobile {
    display: inline-flex;
    align-items: center;
    order: 2;
  }

  .hotel-card__actions .hotel-card__toggle--details {
    order: 1;
  }

  .hotel-card__summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hotel-card__toggle {
    width: fit-content;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
