:root {
  --sea: #0b6e6e;
  --sea-deep: #084848;
  --ink: #12212b;
  --sand: #f3efe6;
  --sand-2: #e7e0d2;
  --foam: #faf8f4;
  --coral: #c45c3a;
  --mist: rgba(18, 33, 43, 0.08);
  --shadow: 0 18px 50px rgba(8, 40, 48, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(11, 110, 110, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 58, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f4ee 0%, #efeae0 40%, #f7f4ee 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.82);
  border-bottom: 1px solid rgba(18, 33, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 45% 55%;
  background:
    radial-gradient(circle at 35% 35%, #fff8, transparent 45%),
    linear-gradient(145deg, #1aa0a0, var(--sea-deep));
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:not(.nav-cta) {
  opacity: 0.8;
}

.nav a:not(.nav-cta):hover {
  opacity: 1;
  color: var(--sea-deep);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--sea);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(11, 110, 110, 0.25);
}

.nav-cta:hover,
.btn:hover {
  background: var(--sea-deep);
  transform: translateY(-1px);
}

.btn-coral {
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(196, 92, 58, 0.28);
}

.btn-coral:hover {
  background: #a84a2e;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(18, 33, 43, 0.15);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 40, 48, 0.25) 0%, rgba(8, 40, 48, 0.72) 100%),
    url("https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  max-width: 36ch;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-panel {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.search-form {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
}

.search-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(18, 33, 43, 0.6);
}

.search-form input,
.search-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 33, 43, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2,
.page-title,
.hotel-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.muted {
  color: rgba(18, 33, 43, 0.62);
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hotel-card {
  display: grid;
  gap: 0.85rem;
  transition: transform 0.25s ease;
}

.hotel-card:hover {
  transform: translateY(-4px);
}

.hotel-card-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-2);
  position: relative;
}

.hotel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-card-media img {
  transform: scale(1.05);
}

.hotel-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.92rem;
  color: rgba(18, 33, 43, 0.7);
}

.stars {
  letter-spacing: 0.05em;
}

.star.full {
  color: #d4a017;
}

.star.half {
  color: #d4a017;
  opacity: 0.55;
}

.star.empty {
  color: rgba(18, 33, 43, 0.2);
}

.destinations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.destination {
  position: relative;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: end;
  padding: 1.1rem;
  background: center/cover no-repeat;
  isolation: isolate;
}

.destination::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 40, 48, 0.75));
}

.destination strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 33, 43, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
}

.chip.active,
.chip:hover {
  background: var(--sea);
  color: #fff;
  border-color: transparent;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 33, 43, 0.08);
  font-weight: 600;
}

.pagination .current {
  background: var(--sea);
  color: #fff;
}

.hotel-hero {
  position: relative;
  min-height: 62vh;
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hotel-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hotel-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 48, 0.15), rgba(8, 40, 48, 0.78));
}

.hotel-hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  animation: riseIn 0.8s ease both;
}

.hotel-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 16ch;
}

.hotel-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 33, 43, 0.06);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem;
}

.book-panel {
  position: sticky;
  top: 90px;
  align-self: start;
}

.book-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 110, 110, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}

.review {
  padding: 1rem 0;
  border-top: 1px solid rgba(18, 33, 43, 0.08);
}

.review:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: #0e242c;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.footer-grid a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.flash.success {
  background: rgba(11, 110, 110, 0.12);
  color: var(--sea-deep);
}

.flash.error {
  background: rgba(196, 92, 58, 0.12);
  color: #8a3a24;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #f4f1ea;
}

.admin-nav {
  background: #0e242c;
  color: #fff;
  padding: 1.5rem 1rem;
}

.admin-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.admin-main {
  padding: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(18, 33, 43, 0.06);
  vertical-align: top;
  font-size: 0.92rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-display);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(18, 33, 43, 0.65);
}

.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(11, 110, 110, 0.08), transparent 55%),
    #f4f1ea;
}

.account-nav {
  background: #123038;
  color: #fff;
  padding: 1.5rem 1rem;
}

.account-brand {
  color: #fff;
  margin-bottom: 1.25rem;
}

.account-hello {
  margin: 0 0 1rem;
  opacity: 0.8;
  font-size: 0.92rem;
}

.account-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  opacity: 0.88;
}

.account-nav a:hover,
.account-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.account-main {
  padding: 1.5rem;
}

.account-title {
  font-family: var(--font-display);
  margin-top: 0;
  letter-spacing: -0.03em;
}

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 960px) {
  .search-form,
  .hotel-grid,
  .destinations,
  .hotel-layout,
  .footer-grid,
  .admin-shell,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hotel-layout,
  .admin-shell,
  .account-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 70px;
    background: #fff;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    min-width: 200px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .book-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .search-form,
  .hotel-grid,
  .destinations,
  .gallery,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}
