:root {
  --aegean: #0b5fa5;
  --aegean-dark: #073b5c;
  --sea: #2aa6b8;
  --sand: #e4c47b;
  --limestone: #f8f2e8;
  --paper: #fffefa;
  --ink: #12344a;
  --muted: #687982;
  --line: rgba(11, 95, 165, .14);
  --shadow: 0 20px 55px rgba(7, 59, 92, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--limestone); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(42, 166, 184, .13) 0 140px, transparent 141px),
    radial-gradient(circle at 92% 2%, rgba(228, 196, 123, .30) 0 110px, transparent 111px),
    linear-gradient(180deg, #edf9fc 0, var(--limestone) 620px);
  border-top: 7px solid var(--aegean);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: absolute;
  inset: 7px 0 auto;
  z-index: 20;
  height: 5px;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--sand) 0 18px, transparent 18px 25px, var(--sea) 25px 43px, transparent 43px 50px);
}

a { color: inherit; }
.directory-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.directory-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 4px 22px; }
.directory-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.directory-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--aegean);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--sand), 0 7px 18px rgba(7, 59, 92, .18);
  font-weight: 900;
}
.directory-brand strong, .directory-brand small { display: block; }
.directory-brand strong { font-size: 16px; }
.directory-brand small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.admin-link { padding: 10px 13px; color: var(--aegean-dark); border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .65); font-size: 14px; font-weight: 750; text-decoration: none; }
.admin-link:hover { background: white; }

.directory-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.directory-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 7vw, 72px); }
.directory-kicker { color: var(--aegean); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.directory-hero h1 { max-width: 650px; margin: 13px 0 20px; font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.055em; }
.directory-hero p { max-width: 570px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.62; }
.directory-scroll { align-self: flex-start; margin-top: 27px; color: var(--aegean); font-size: 15px; font-weight: 800; text-decoration: none; }
.directory-scroll span { margin-left: 7px; }
.directory-hero-photo { position: relative; min-height: 420px; margin: 0; overflow: hidden; background: var(--aegean); }
.directory-hero-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(18,52,74,.18), transparent 36%), linear-gradient(0deg, rgba(7,59,92,.55), transparent 36%); pointer-events: none; }
.directory-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.directory-hero-photo figcaption { position: absolute; z-index: 2; right: 16px; bottom: 13px; font-size: 11px; }
.directory-hero-photo figcaption a { color: white; text-decoration: none; text-shadow: 0 1px 5px rgba(0,0,0,.55); }

.hotel-directory { padding: 70px 0 54px; }
.directory-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.directory-section-head h2 { margin: 7px 0 0; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.04em; }
.hotel-count { padding: 8px 11px; color: var(--aegean-dark); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; }
.directory-status { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; background: rgba(255,255,255,.65); }
.directory-status.error { color: #8e3030; border-color: rgba(142,48,48,.25); background: #faeeee; }
.hidden { display: none !important; }
.hotel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hotel-card { --hotel-accent: var(--aegean); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 12px 34px rgba(7,59,92,.08); transition: transform .2s ease, box-shadow .2s ease; }
.hotel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hotel-card-main { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; min-height: 164px; padding: 24px; text-decoration: none; }
.hotel-card-logo { display: grid; width: 58px; height: 58px; place-items: center; color: white; background: var(--hotel-accent); border-radius: 18px; box-shadow: 0 8px 20px rgba(7,59,92,.18); font-size: 17px; font-weight: 900; }
.hotel-card-copy { display: block; min-width: 0; }
.hotel-card-location, .hotel-card-name, .hotel-card-tagline { display: block; }
.hotel-card-location { margin-bottom: 7px; color: var(--hotel-accent); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hotel-card-name { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.hotel-card-tagline { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hotel-card-arrow { color: var(--hotel-accent); font-size: 27px; font-weight: 600; }
.hotel-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 15px 15px; }
.hotel-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.hotel-action-primary { color: white; background: var(--hotel-accent); }
.hotel-action-qr { color: var(--aegean-dark); background: #eaf7fb; }
.hotel-action:hover { filter: brightness(.96); }
.directory-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 4px 34px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

a:focus-visible { outline: 3px solid rgba(200,95,69,.45); outline-offset: 3px; }

@media (max-width: 820px) {
  .directory-hero { grid-template-columns: 1fr; }
  .directory-hero-photo { min-height: 310px; order: -1; }
  .hotel-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .directory-shell { width: min(100% - 24px, 1120px); }
  .directory-nav { padding-top: 23px; }
  .admin-link { font-size: 12px; }
  .directory-hero { border-radius: 24px; }
  .directory-hero-copy { padding: 31px 22px 35px; }
  .directory-hero h1 { font-size: 41px; }
  .directory-hero p { font-size: 16px; }
  .directory-hero-photo { min-height: 235px; }
  .hotel-directory { padding-top: 52px; }
  .hotel-card-main { grid-template-columns: 50px 1fr; min-height: 150px; padding: 20px; }
  .hotel-card-logo { width: 50px; height: 50px; border-radius: 15px; }
  .hotel-card-arrow { display: none; }
  .hotel-card-actions { grid-template-columns: 1fr; }
  .directory-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hotel-card { transition: none; }
}
