@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --sand-0: #f7f1e8;
  --sand-1: #efe3d2;
  --sand-2: #e2cfb8;
  --sand-3: #ccb398;
  --walnut-0: #7f5c42;
  --walnut-1: #5b3e2c;
  --walnut-2: #342117;
  --walnut-3: #1d120b;
  --cream: rgba(255, 251, 245, 0.84);
  --panel: rgba(255, 249, 242, 0.78);
  --panel-strong: rgba(255, 248, 238, 0.92);
  --line: rgba(91, 62, 44, 0.12);
  --line-strong: rgba(91, 62, 44, 0.2);
  --text: #321f14;
  --muted: #7a6150;
  --accent: #7c583e;
  --accent-soft: #a5795a;
  --ok: #3e7e4d;
  --warn: #b77429;
  --danger: #aa4f41;
  --shadow: 0 28px 70px rgba(62, 35, 20, 0.12);
  --radius: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 161, 126, 0.24), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(139, 101, 73, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f3ed 0%, #f5ecdf 42%, #efdfcf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(91, 62, 44, 0.16);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.95;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
}

.nav a.active,
.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.card,
.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.hero .card,
.section-card {
  padding: 28px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px auto;
  width: 140px;
  height: 84px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
  opacity: 0.22;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.74), transparent 26%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(223, 197, 167, 0.7));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
  opacity: 0.14;
}

.hero-globe {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: min(78%, 420px);
  filter: drop-shadow(0 28px 50px rgba(61, 36, 22, 0.18));
}

.hero-floating-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(76%, 300px);
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.78);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 88, 62, 0.14);
  background: rgba(255, 255, 255, 0.46);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h2,
.section-title {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
}

.lead,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 0;
  font-size: 16px;
}

.hero-actions,
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button,
button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(91, 62, 44, 0.14);
  text-decoration: none;
}

.button.primary,
.button.secondary,
.button.ghost,
.button.apple,
button.button.primary,
button.button.secondary,
button.button.ghost,
button.button.apple {
  overflow: hidden;
}

.button.primary::before,
.button.secondary::before,
.button.ghost::before,
.button.apple::before,
button.button.primary::before,
button.button.secondary::before,
button.button.ghost::before,
button.button.apple::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.button.primary,
button.button.primary {
  color: #fffaf5;
  background: linear-gradient(135deg, #8b6347, #614130);
}

.button.secondary,
button.button.secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
}

.button.ghost,
button.button.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.button.apple,
button.button.apple {
  width: 100%;
  color: #20150f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 88, 62, 0.12);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.status-badge.ok {
  color: var(--ok);
}

.status-badge.warn {
  color: var(--warn);
}

.status-badge.error {
  color: var(--danger);
}

.message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.message.show {
  display: block;
}

.message.success {
  color: #255733;
  background: rgba(111, 183, 123, 0.12);
  border-color: rgba(111, 183, 123, 0.22);
}

.message.error {
  color: #813c31;
  background: rgba(207, 109, 93, 0.12);
  border-color: rgba(207, 109, 93, 0.22);
}

.message.info {
  color: #65472e;
  background: rgba(155, 121, 92, 0.11);
  border-color: rgba(155, 121, 92, 0.22);
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 16px 18px;
  border: 1px solid rgba(124, 88, 62, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
}

.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-value {
  font-weight: 700;
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.top-flights-list {
  display: grid;
  gap: 16px;
}

.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 246, 236, 0.84)),
    rgba(255, 252, 247, 0.88);
  overflow: hidden;
}

.offer-card::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 14px;
  width: 9px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
}

.offer-card__main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.offer-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.offer-card__airline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.flight-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 88, 62, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.flight-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.flight-logo span {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.offer-card__carrier {
  min-width: 0;
}

.offer-card__carrier strong {
  display: block;
  font-size: 18px;
}

.offer-card__carrier span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.offer-card__route {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.85fr) 1fr;
  gap: 18px;
  align-items: center;
}

.route-node {
  display: grid;
  gap: 4px;
}

.route-node--right {
  justify-items: end;
  text-align: right;
}

.route-node__code {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.92;
}

.route-node__name {
  font-size: 15px;
  font-weight: 700;
}

.route-node__meta {
  color: var(--muted);
  font-size: 13px;
}

.route-link {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.route-link__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-link__line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 88, 62, 0.1), rgba(124, 88, 62, 0.75), rgba(124, 88, 62, 0.1));
}

.route-link__line::before,
.route-link__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid rgba(124, 88, 62, 0.74);
}

.route-link__line::before {
  left: -1px;
  border-left: 1.5px solid rgba(124, 88, 62, 0.74);
  transform: translateY(-50%) rotate(-45deg);
}

.route-link__line::after {
  right: -1px;
  border-right: 1.5px solid rgba(124, 88, 62, 0.74);
  transform: translateY(-50%) rotate(45deg);
}

.route-link__dates {
  font-size: 14px;
  font-weight: 700;
}

.offer-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 88, 62, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.offer-card__price {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 12px;
  padding-right: 14px;
  text-align: right;
}

.offer-card__price strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.92;
}

.offer-card__price span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.offer-card__actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(124, 88, 62, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.admin-heading {
  font-size: clamp(28px, 3.2vw, 40px) !important;
}

.admin-subtitle {
  margin: 0 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
}

.admin-metric-card.tone-brand {
  border-color: rgba(124, 88, 62, 0.24);
}

.admin-metric-card.tone-soft {
  border-color: rgba(91, 62, 44, 0.18);
}

.admin-metric-card.tone-ok {
  border-color: rgba(62, 126, 77, 0.24);
}

.admin-metric-card.tone-warn {
  border-color: rgba(183, 116, 41, 0.24);
}

.admin-metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.92;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.admin-kv-grid {
  display: grid;
  gap: 12px;
}

.admin-kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(124, 88, 62, 0.12);
}

.admin-kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-kv-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-kv-value {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.admin-missing-grid {
  display: grid;
  gap: 14px;
}

.admin-missing-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 88, 62, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
}

.admin-missing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-missing-head strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.admin-missing-meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-missing-context {
  font-size: 13px;
  font-weight: 700;
}

.center-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-body .page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-window {
  position: relative;
  width: min(470px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 249, 242, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-window::before {
  content: "";
  position: absolute;
  inset: auto -18px -36px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.86), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    url("../img/walnussholz.jpeg") center / cover no-repeat;
  opacity: 0.18;
}

.login-window__content {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-brand h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 0.96;
}

.login-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.login-globe {
  width: 120px;
  margin: 20px auto 10px;
  filter: drop-shadow(0 16px 26px rgba(91, 62, 44, 0.14));
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.trust-item {
  padding: 14px 16px;
  border: 1px solid rgba(124, 88, 62, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  line-height: 1.55;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

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

  .hero-visual {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(var(--max), calc(100% - 18px));
    padding-top: 18px;
  }

  .topbar {
    padding: 12px 14px;
    border-radius: 20px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 0;
  }

  .hero .card,
  .section-card {
    padding: 22px;
  }

  .offer-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .admin-metric-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .offer-card__route {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-node,
  .route-node--right {
    justify-items: start;
    text-align: left;
  }

  .offer-card__price {
    justify-items: start;
    padding-right: 0;
    text-align: left;
  }

  .hero-globe {
    width: min(88%, 340px);
    right: -12%;
  }

  .hero-floating-card {
    width: min(100%, 300px);
  }

  .login-window {
    padding: 24px;
    border-radius: 28px;
  }
}
