/* =========================================================
   AFRIQUE EXPLORER — PREMIUM SITE STYLES
   "Premium Forest" theme — Afrique Explorer green palette
========================================================= */

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

:root {
  --paper: #f4f1e8;
  --paper-soft: #faf8f2;

  --card: #fffdfa;
  --card-muted: #f7f5ef;

  --ink: #273126;
  --ink-soft: #6e7168;
  --ink-faint: #97978e;

  --line: #d8d6ca;
  --line-strong: #c2c1b6;

  --green: #40583a;
  --green-deep: #293d25;
  --green-soft: #e9efe6;

  --accent: #9a8f58;
  --accent-deep: #746c3f;
  --accent-soft: #efecdc;

  --rust: #8b4737;
  --rust-soft: #f3e3df;

  --shadow-soft: 0 2px 14px rgba(43, 52, 38, 0.05);
  --shadow-card: 0 14px 36px rgba(39, 58, 34, 0.08);
  --shadow-lift: 0 6px 18px rgba(39, 58, 34, 0.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}


/* =========================================================
   RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* single orchestrated entrance — the whole page settles in once,
   nothing re-fades on every scroll or hover */
@keyframes page-settle {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;

  background:
    radial-gradient(circle at 12% 0%, rgba(154, 143, 88, 0.06), transparent 42%),
    radial-gradient(circle at 100% 30%, rgba(64, 88, 58, 0.05), transparent 45%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);

  color: var(--ink);

  font-family: "Inter", sans-serif;
  letter-spacing: -0.005em;

  -webkit-font-smoothing: antialiased;

  animation: page-settle 0.5s ease both;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* keep it civil for people who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* a quiet, on-brand scrollbar instead of the OS default */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* visible, on-brand focus ring for keyboard users everywhere,
   not just on inputs */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select {
  min-width: 0;
}

.wrap {
  width: 100%;
  max-width: 1500px;

  margin: 0 auto;

  padding:
    18px
    34px
    70px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 94px;

  margin-bottom: 28px;

  padding:
    14px
    0
    20px;

  border-bottom:
    1px solid
    var(--line);

  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;

  gap: 18px;
}

.brand-logo {
  display: block;

  width: 94px;
  height: 58px;

  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  display: flex;
  flex-direction: column;

  justify-content: center;
}

.brand-name {
  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 21px;
  font-weight: 600;

  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  margin-top: 4px;

  color: var(--accent-deep);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.header-badge {
  padding: 0;

  border: none;
  border-radius: 0;

  background: transparent;

  color: var(--ink-faint);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-badge::before {
  content: "•";

  margin-right: 6px;

  color: var(--accent);
}


/* =========================================================
   MAIN PAGE LAYOUT
========================================================= */

.app-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    370px;

  gap: 32px;

  align-items: start;
}

.main-content {
  min-width: 0;
}

.quote-sidebar {
  min-width: 0;
}


/* =========================================================
   CARDS — one radius, one shadow language, a single hairline
   accent bar so every section reads as part of one system
========================================================= */

.card {
  width: 100%;

  margin-bottom: 18px;

  padding:
    22px
    24px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-md);

  background: var(--card);

  box-shadow: var(--shadow-soft);

  position: relative;
  overflow: hidden;

  transition: box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-deep), var(--accent) 140%);
  opacity: 0.9;
}

.card h2 {
  margin:
    0
    0
    18px;

  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 18px;
  font-weight: 600;

  line-height: 1.15;

  letter-spacing: -0.01em;
}


/* =========================================================
   FORMS
========================================================= */

.field {
  min-width: 0;
}

label {
  display: block;

  margin:
    0
    0
    6px;

  color: var(--ink-soft);

  font-size: 10.5px;
  font-weight: 600;

  line-height: 1.2;
}

input,
select {
  width: 100%;
  max-width: 100%;

  height: 40px;

  padding:
    0
    11px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: var(--paper-soft);

  color: var(--ink);

  font-size: 12.5px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input::placeholder {
  color: var(--ink-faint);
}

input:hover,
select:hover {
  border-color: var(--line-strong);
  background: #fff;
}

input:focus,
select:focus {
  outline: none;

  background: #fff;

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px
    rgba(64, 88, 58, 0.09);
}

input:disabled,
select:disabled {
  background: #f1eee6;

  color: #8d8b82;

  cursor: not-allowed;
}


/* =========================================================
   TRIP & PRICING DETAILS
========================================================= */

.details-grid {
  display: grid;

  grid-template-columns:
    minmax(170px, 1.55fr)
    minmax(105px, 0.9fr)
    minmax(105px, 0.9fr)
    minmax(115px, 1fr)
    minmax(60px, 0.55fr)
    minmax(60px, 0.55fr)
    minmax(65px, 0.55fr);

  gap: 10px;

  align-items: end;

  width: 100%;
}

.details-grid > * {
  min-width: 0;
}

.client-field {
  min-width: 0;
}


/* =========================================================
   ITINERARY — JOURNEY STYLE
========================================================= */

.leg {
  position: relative;

  margin: 0;

  padding:
    0
    0
    28px
    54px;

  border: 0;

  background: transparent;
}


/* route line */

.leg::before {
  content: "";

  position: absolute;

  left: 17px;
  top: 30px;
  bottom: -2px;

  width: 1px;

  background: var(--line-strong);
}

.leg:last-child::before {
  display: none;
}


/* route marker */

.leg::after {
  content: "";

  position: absolute;

  left: 10px;
  top: 5px;

  width: 14px;
  height: 14px;

  border:
    3px solid
    var(--card);

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 0 1px var(--accent-deep);
}


/* stop heading */

.leg-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  min-height: 25px;

  margin-bottom: 10px;
}

.leg-num {
  margin: 0;

  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 15px;
  font-weight: 500;
}

.leg-remove {
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--ink-faint);

  font-size: 9.5px;
  font-weight: 500;

  transition: color 0.15s ease;
}

.leg-remove:hover:not(:disabled) {
  color: var(--rust);
}

.leg-remove:disabled {
  color: #b7c3b7;

  cursor: not-allowed;
}


/* stop card */

.leg-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 12px;

  padding: 16px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: var(--paper-soft);

  box-shadow: 0 2px 8px rgba(43, 52, 38, 0.025);
}

.leg-grid > * {
  min-width: 0;
}

.leg-grid > div:nth-child(1) {
  grid-column: span 2;
}

.leg-grid > div:nth-child(2) {
  grid-column: span 2;
}

.leg-grid > div:nth-child(1) select,
.leg-grid > div:nth-child(2) select {
  font-weight: 500;
}


/* night count */

.checkout-note {
  margin-top: 7px;

  color: var(--ink-faint);

  font-size: 10px;
}


/* Add stop */

button.ghost {
  width: auto;

  margin-left: 54px;

  padding:
    7px
    10px;

  border: 0;

  background: transparent;

  color: var(--green);

  font-size: 11px;
  font-weight: 600;

  text-align: left;
}

button.ghost::before {
  content: "+";

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  margin-right: 7px;

  border:
    1px solid
    var(--green);

  border-radius: 50%;

  font-size: 12px;

  transition: border-color 0.15s ease;
}

button.ghost:hover {
  color: var(--accent-deep);

  background: transparent;
}

button.ghost:hover::before {
  border-color: var(--accent-deep);
}


/* overlap */

.overlap-error {
  margin:
    8px
    0
    0
    54px;

  color: var(--rust);

  font-size: 10.5px;
  font-weight: 600;

  line-height: 1.45;
}


/* =========================================================
   EXTRAS
========================================================= */

.extra-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    90px;

  gap: 18px;

  align-items: center;

  padding:
    13px
    0;

  border-bottom:
    1px solid
    var(--line);
}

.extra-row:last-child {
  border-bottom: 0;
}

.extra-row > div:first-child {
  min-width: 0;
}

.extra-name {
  color: var(--ink);

  font-size: 12.5px;
  font-weight: 600;
}

.extra-unit {
  margin-top: 3px;

  color: var(--ink-soft);

  font-size: 10px;

  line-height: 1.45;
}

.extra-rate-missing {
  color: var(--rust);

  font-style: italic;
}

.extra-row input {
  height: 36px;

  text-align: center;
}


/* =========================================================
   PRIMARY BUTTON — brass-lit, with a real lift on hover
========================================================= */

button.primary {
  width: 100%;

  padding:
    13px
    14px;

  border: 1px solid var(--green-deep);

  border-radius: var(--radius-sm);

  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);

  color: #fffdfa;

  font-size: 12.5px;
  font-weight: 600;

  box-shadow: var(--shadow-lift);

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

button.primary:hover {
  background: linear-gradient(180deg, var(--green-deep) 0%, #21331f 100%);

  box-shadow: 0 10px 22px rgba(39, 58, 34, 0.18);

  transform: translateY(-1px);
}

button.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

button.primary:disabled {
  cursor: not-allowed;

  opacity: 0.6;

  box-shadow: none;
  transform: none;
}


/* =========================================================
   QUOTE SUMMARY — the hero: a deep ink panel with a brass
   total, not another white card
========================================================= */

.quote-summary-card {
  position: sticky;

  top: 20px;

  overflow: hidden;

  width: 100%;

  border: 1px solid var(--green-deep);

  border-radius: var(--radius-lg);

  background: var(--card);

  box-shadow: var(--shadow-card);
}


/* deep ink header */

.summary-title {
  margin: 0;

  padding:
    22px
    22px
    18px;

  background:
    radial-gradient(circle at 100% 0%, rgba(154, 143, 88, 0.20), transparent 55%),
    linear-gradient(160deg, var(--green-deep) 0%, #223620 100%);

  color: #fffdfa;

  font-family: "Fraunces", serif;

  font-size: 21px;
  font-weight: 500;

  line-height: 1.1;
}

.summary-title::after {
  content: "Internal pricing overview";

  display: block;

  margin-top: 6px;

  color: rgba(253, 249, 239, 0.62);

  font-family: "Inter", sans-serif;

  font-size: 8.5px;
  font-weight: 500;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* sidebar content widths */

.summary-meta,
.summary-divider,
.summary-row,
.summary-total-label,
.summary-total,
.summary-note,
.summary-actions {
  margin-left: 22px;
  margin-right: 22px;
}


/* pills */

.summary-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 17px;
}

.summary-meta span {
  padding:
    5px
    9px;

  border:
    1px solid
    rgba(154, 143, 88, 0.20);

  border-radius: 999px;

  background: rgba(154, 143, 88, 0.10);

  color: var(--green-deep);

  font-size: 9px;
  font-weight: 600;

  line-height: 1;
}


/* divider */

.summary-divider {
  height: 1px;

  margin-top: 18px;
  margin-bottom: 18px;

  background: var(--line);
}


/* price rows */

.summary-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 14px;
}

.summary-row span {
  color: var(--ink-soft);

  font-size: 11.5px;
}

.summary-row strong {
  color: var(--ink);

  font-size: 12px;
  font-weight: 600;

  text-align: right;

  white-space: nowrap;
}


/* total */

.summary-total-label {
  margin-bottom: 4px;

  color: var(--ink-faint);

  font-size: 8.5px;
  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.summary-total {
  min-height: 43px;

  color: var(--accent-deep);

  font-family: "Fraunces", serif;

  font-size: 37px;
  font-weight: 500;

  line-height: 1.05;

  letter-spacing: -0.02em;
}

.summary-note {
  margin-top: 8px;

  color: var(--ink-soft);

  font-size: 9.5px;

  line-height: 1.5;
}


/* buttons */

.summary-actions {
  margin-top: 20px;
  margin-bottom: 22px;
}

.quote-summary-card .primary {
  margin: 0;
}

.summary-secondary {
  width: 100%;

  margin-top: 9px;

  padding:
    11px
    13px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: #fff;

  color: var(--green-deep);

  font-size: 11.5px;
  font-weight: 600;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.summary-secondary:hover {
  border-color: var(--accent);

  background: var(--accent-soft);

  color: var(--accent-deep);
}

.summary-secondary:disabled {
  opacity: 0.6;

  cursor: not-allowed;
}


/* bottom accent */

.quote-summary-card::after {
  content: "";

  display: block;

  height: 4px;

  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}


/* =========================================================
   COMPARISON OPTIONS — a brass rail marks the active card,
   not a generic lift-and-shadow hover
========================================================= */

.compare-card {
  margin-bottom: 18px;

  padding:
    22px
    24px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-md);

  background: var(--card);

  box-shadow: var(--shadow-soft);

  position: relative;
  overflow: hidden;
}

.compare-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-deep), var(--accent) 140%);
  opacity: 0.9;
}

.compare-header {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 16px;
}

.compare-eyebrow {
  margin-bottom: 4px;

  color: var(--accent-deep);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.compare-card h2 {
  margin: 0;

  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 19px;
  font-weight: 600;
}

.compare-helper {
  max-width: 280px;

  color: var(--ink-soft);

  font-size: 10px;

  line-height: 1.4;

  text-align: right;
}

.compare-row {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 12px;
}

.compare-item {
  display: block;

  width: 100%;
  min-width: 0;

  padding: 16px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: var(--card-muted);

  color: var(--ink);

  text-align: left;

  appearance: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.compare-item:hover {
  border-color: var(--line-strong);

  background: #fff;

  box-shadow: var(--shadow-soft);
}

.compare-item.active {
  border-color: var(--accent);

  background: #fff;

  box-shadow:
    inset 3px 0 0 var(--accent),
    var(--shadow-lift);
}

.compare-card-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 8px;
}

.compare-item .cname {
  color: var(--green-deep);

  font-size: 11.5px;
  font-weight: 700;
}

.compare-active-badge {
  padding:
    3px
    6px;

  border-radius: 4px;

  background: var(--accent-soft);

  color: var(--accent-deep);

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.compare-item .cprice {
  margin-bottom: 6px;

  color: var(--accent-deep);

  font-family: "Fraunces", serif;

  font-size: 26px;
  font-weight: 600;
}

.compare-trip-meta {
  margin-top: 7px;

  color: var(--ink);

  font-size: 10px;
  font-weight: 600;
}

.compare-destinations {
  margin-top: 2px;

  color: var(--ink-soft);

  font-size: 9.5px;

  line-height: 1.4;
}

.compare-stays {
  margin-top: 12px;

  padding-top: 10px;

  border-top:
    1px solid
    var(--line);
}

.compare-stay {
  margin-bottom: 8px;
}

.compare-stay:last-child {
  margin-bottom: 0;
}

.compare-stay-name {
  color: var(--ink);

  font-size: 10px;
  font-weight: 600;

  line-height: 1.35;
}

.compare-stay-detail {
  margin-top: 2px;

  color: var(--ink-soft);

  font-size: 9px;

  line-height: 1.35;
}

.compare-more {
  margin-top: 6px;

  color: var(--ink-soft);

  font-size: 9px;

  font-style: italic;
}

.compare-item .csaving {
  margin-top: 10px;

  color: var(--green);

  font-size: 9.5px;
  font-weight: 700;
}

.compare-item .csaving.neutral {
  color: var(--ink-soft);

  font-weight: 500;
}


/* =========================================================
   RESULTS
========================================================= */

.grand-row {
  display: flex;

  align-items: baseline;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 18px;

  padding-bottom: 18px;

  border-bottom:
    1px solid
    var(--line);
}

.grand-label {
  color: var(--ink-soft);

  font-size: 11px;
}

.grand-value {
  color: var(--accent-deep);

  font-family: "Fraunces", serif;

  font-size: 35px;
  font-weight: 600;

  white-space: nowrap;
}

.leg-result {
  margin-top: 22px;
}

.leg-result-head {
  margin-bottom: 4px;

  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 15px;
  font-weight: 500;
}

.leg-result-sub {
  margin-bottom: 10px;

  color: var(--ink-soft);

  font-size: 11px;
}


/* =========================================================
   TABLES
========================================================= */

table {
  width: 100%;

  border-collapse: collapse;

  font-size: 11.5px;
}

th {
  padding:
    7px
    8px;

  border-bottom:
    1px solid
    var(--line);

  color: var(--ink-soft);

  font-size: 9.5px;
  font-weight: 700;

  text-align: left;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

td {
  padding: 8px;

  border-bottom:
    1px solid
    var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--paper-soft);
}

td.num,
th.num {
  text-align: right;

  font-variant-numeric: tabular-nums;
}

.season-tag {
  display: inline-block;

  padding:
    2px
    7px;

  border-radius: 4px;

  background: var(--accent-soft);

  color: var(--accent-deep);

  font-size: 9.5px;
  font-weight: 700;
}

.edit-input {
  width: 88px;
  height: 30px;

  padding:
    0
    6px;

  border:
    1px solid
    var(--line);

  border-radius: 4px;

  background: var(--paper-soft);

  font-size: 11.5px;

  text-align: right;
}


/* =========================================================
   EXPORT PANEL
========================================================= */

.export-panel {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 16px;

  padding:
    14px
    16px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: var(--card);

  box-shadow: var(--shadow-soft);
}

.export-panel-title {
  color: var(--green-deep);

  font-size: 11.5px;
  font-weight: 700;
}

.export-row {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

button.export {
  min-width: 78px;

  padding:
    8px
    12px;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-sm);

  background: #fff;

  color: var(--green-deep);

  font-size: 10.5px;
  font-weight: 600;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

button.export:hover {
  border-color: var(--accent);

  background: var(--accent-soft);

  color: var(--accent-deep);
}


/* =========================================================
   STATUS / ERROR
========================================================= */

.errorbox {
  margin-top: 14px;

  padding:
    11px
    13px;

  border:
    1px solid
    #e6c4bb;

  border-radius: var(--radius-sm);

  background: var(--rust-soft);

  color: var(--rust);

  font-size: 11.5px;

  line-height: 1.5;
}

.infobox {
  margin-top: 14px;

  padding:
    11px
    13px;

  border:
    1px solid
    #ded9bd;

  border-radius: var(--radius-sm);

  background: var(--accent-soft);

  color: #6d673f;

  font-size: 11.5px;

  line-height: 1.5;
}

.empty {
  display: flex;

  min-height: 160px;

  align-items: center;
  justify-content: center;

  padding: 28px;

  color: var(--ink-soft);

  font-size: 12px;

  text-align: center;
}

.loading {
  padding:
    8px
    0;

  color: var(--ink-soft);

  font-size: 11.5px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  margin-top: 54px;

  padding:
    28px
    0
    16px;

  border-top:
    1px solid
    var(--line);
}

.footer-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.footer-brand {
  display: flex;

  align-items: center;

  gap: 14px;
}

.footer-logo {
  width: 58px;
  height: 38px;

  object-fit: contain;
}

.footer-name {
  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 14px;
  font-weight: 600;
}

.footer-tagline {
  margin-top: 2px;

  color: var(--ink-soft);

  font-size: 10px;
}

.footer-meta {
  color: var(--ink-soft);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.footer-divider {
  height: 1px;

  margin:
    18px
    0
    12px;

  background: var(--line);
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  color: var(--ink-faint);

  font-size: 9px;
}


/* =========================================================
   RESPONSIVE — LARGE
========================================================= */

@media (max-width: 1250px) {

  .app-layout {
    grid-template-columns:
      minmax(0, 1fr)
      340px;

    gap: 24px;
  }

  .details-grid {
    grid-template-columns:
      minmax(170px, 1.5fr)
      repeat(
        3,
        minmax(90px, 1fr)
      )
      repeat(
        3,
        minmax(56px, 0.55fr)
      );

    gap: 8px;
  }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

  .details-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

  .client-field {
    grid-column: span 2;
  }
}


@media (max-width: 950px) {

  .app-layout {
    grid-template-columns: 1fr;
  }

  .quote-summary-card {
    position: static;
  }

  .quote-sidebar {
    order: -1;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 750px) {

  .wrap {
    padding:
      14px
      16px
      48px;
  }


  /* header */

  .site-header {
    min-height: auto;

    margin-bottom: 20px;

    padding:
      10px
      0
      16px;
  }

  .brand-logo {
    width: 76px;
    height: 48px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 8.5px;
  }

  .header-badge {
    display: none;
  }


  /* cards */

  .card {
    padding:
      18px
      17px;
  }


  /* trip details */

  .details-grid {
    grid-template-columns:
      1fr
      1fr;

    gap: 12px;
  }

  .client-field {
    grid-column: span 2;
  }


  /* itinerary */

  .leg {
    padding-left: 42px;
  }

  .leg::before {
    left: 13px;
  }

  .leg::after {
    left: 6px;
  }

  .leg-grid {
    grid-template-columns:
      1fr
      1fr;
  }

  .leg-grid > div:nth-child(1),
  .leg-grid > div:nth-child(2) {
    grid-column: span 2;
  }

  button.ghost {
    margin-left: 42px;
  }

  .overlap-error {
    margin-left: 42px;
  }


  /* comparison */

  .compare-header {
    flex-direction: column;

    align-items: flex-start;

    gap: 6px;
  }

  .compare-helper {
    text-align: left;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }


  /* exports */

  .export-panel {
    flex-direction: column;

    align-items: stretch;
  }

  .export-row {
    width: 100%;
  }

  button.export {
    flex: 1;
  }


  /* totals */

  .grand-row {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
  }

  .grand-value {
    font-size: 30px;
  }


  /* footer */

  .footer-top,
  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }

  .footer-bottom {
    gap: 4px;
  }
}


@media (max-width: 480px) {

  .details-grid,
  .leg-grid {
    grid-template-columns: 1fr;
  }

  .client-field,
  .leg-grid > div:nth-child(1),
  .leg-grid > div:nth-child(2) {
    grid-column: auto;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-logo {
    width: 66px;
  }

  .summary-total {
    font-size: 30px;
  }

  .extra-row {
    grid-template-columns:
      minmax(0, 1fr)
      70px;

    gap: 10px;
  }
}


/* =========================================================
   PRINT — the exported quote stays on-brand too
========================================================= */

#printView {
  display: none;
}


@media print {

  @page {
    size: A4;
    margin: 11mm 12mm 13mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;

    color: #263024;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    -webkit-print-color-adjust: exact !important;

    print-color-adjust: exact !important;

    animation: none !important;
  }

  .wrap {
    display: none !important;
  }

  #printView {
    display: block !important;
  }

  .pv-page {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #fff;

    color: #2d312b;

    font-size: 8.7pt;
    line-height: 1.4;

    -webkit-print-color-adjust: exact;

    print-color-adjust: exact;
  }

  .pv-content {
    width: 100%;
  }


  /* PDF HEADER */

  .pv-band {
    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    width: 100%;

    margin:
      0
      0
      5px;

    padding:
      0
      0
      10px;

    border-bottom: 3px solid #293d25;

    break-inside: avoid;
  }

  .pv-logo {
    display: block !important;

    width: auto !important;

    height: 46px !important;

    max-width: 150px !important;

    object-fit: contain;
  }

  .pv-title-block {
    margin-left: auto;

    text-align: right;
  }

  .pv-company {
    margin: 0;

    color: #293d25;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 14pt;

    font-weight: 700;

    line-height: 1.1;
  }

  .pv-title {
    margin-top: 3px;

    color: #40583a;

    font-size: 7.5pt;

    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;
  }


  /* PDF CONTACT */

  .pv-contact-block {
    margin:
      0
      0
      12px;

    padding:
      5px
      8px;

    border-bottom: 1px solid #d7dfd5;

    color: #6e7168;

    font-size: 6.4pt;

    line-height: 1.45;

    text-align: center;
  }


  /* CLIENT DETAILS */

  .pv-intro {
    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 20px;

    margin:
      0
      0
      13px;

    padding:
      11px
      13px;

    border: 1px solid #d7dfd5;

    border-radius: 4px;

    background: #f3f6f2 !important;

    break-inside: avoid;
  }

  .pv-small-label {
    margin-bottom: 2px;

    color: #6e7168;

    font-size: 6.5pt;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
  }

  .pv-client-name {
    color: #293d25;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 15pt;

    font-weight: 700;
  }

  .pv-meta-grid {
    display: flex !important;

    align-items: center;

    justify-content: flex-end;

    gap: 22px;
  }

  .pv-meta-grid > div {
    min-width: 66px;
  }

  .pv-meta-grid span {
    display: block;

    margin-bottom: 2px;

    color: #6e7168;

    font-size: 6.3pt;

    text-transform: uppercase;
  }

  .pv-meta-grid strong {
    display: block;

    color: #273126;

    font-size: 8pt;

    font-weight: 700;

    white-space: nowrap;
  }


  /* QUOTE OPTIONS */

  .pv-opening {
    margin:
      0
      2px
      14px;

    color: #6e7168;

    font-size: 8pt;

    line-height: 1.5;
  }

  .pv-option {
    margin:
      0
      0
      15px;

    overflow: hidden;

    border: 1px solid #d7dfd5;

    border-radius: 4px;

    background: #fff;

    break-inside: avoid;
  }

  .pv-option-header {
    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 15px;

    padding:
      9px
      11px;

    border-bottom: 1px solid #d7dfd5;

    background: #e9efe6 !important;
  }

  .pv-option-kicker {
    margin-bottom: 2px;

    color: #40583a;

    font-size: 6.3pt;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
  }

  .pv-option-title {
    color: #293d25;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 12.5pt;

    font-weight: 700;
  }

  .pv-option-subtitle {
    margin-top: 3px;

    color: #6e7168;

    font-size: 6.8pt;
  }

  .pv-option-price {
    min-width: 130px;

    text-align: right;

    white-space: nowrap;
  }

  .pv-price-big {
    color: #40583a;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 18pt;

    font-weight: 700;
  }


  /* PDF TABLE */

  .pv-table {
    width: calc(100% - 20px);

    margin:
      9px
      10px
      7px;

    border-collapse: collapse;

    font-size: 6.9pt;
  }

  .pv-table th {
    padding: 5px;

    border: 1px solid #d7dfd5;

    background: #e9efe6 !important;

    color: #6e7168;

    font-size: 5.9pt;

    font-weight: 700;
  }

  .pv-table td {
    padding:
      6px
      5px;

    border: 1px solid #d7dfd5;

    background: #fff !important;

    color: #273126;
  }

  .pv-right {
    text-align: right !important;
  }

  .pv-center {
    text-align: center !important;
  }


  /* PDF SUMMARY */

  .pv-price-summary {
    display: flex !important;

    align-items: center;

    justify-content: flex-end;

    gap: 24px;

    padding:
      7px
      11px
      9px;

    border-top: 1px solid #d7dfd5;

    background: #f7faf6 !important;
  }

  .pv-price-summary-item strong {
    color: #293d25;

    font-weight: 700;
  }

  .pv-price-summary-item.total strong {
    color: #40583a;
  }


  /* PDF INFO */

  .pv-note-box {
    margin:
      4px
      0
      15px;

    padding:
      8px
      10px;

    border-left: 3px solid #293d25;

    background: #f3f6f2 !important;

    color: #6e7168;

    font-size: 7pt;
  }

  .pv-info-section {
    margin:
      0
      0
      13px;

    break-inside: avoid;
  }

  .pv-section-title {
    margin:
      0
      0
      6px;

    padding-bottom: 4px;

    border-bottom: 1px solid #d7dfd5;

    color: #293d25;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 10.5pt;

    font-weight: 700;
  }

  .pv-list {
    margin: 0;

    padding-left: 16px;

    color: #6e7168;

    font-size: 7pt;

    line-height: 1.45;
  }


  /* PDF FOOTER */

  .pv-footer {
    margin-top: 17px;

    padding-top: 9px;

    border-top: 2px solid #293d25;

    color: #6e7168;

    font-size: 6.3pt;

    text-align: center;

    break-inside: avoid;
  }

  .pv-footer-company {
    margin-bottom: 2px;

    color: #293d25;

    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size: 8.5pt;

    font-weight: 700;
  }

  .pv-footer-message {
    margin-top: 4px;

    color: #40583a;

    font-size: 6.8pt;

    font-style: italic;
  }
}

/* =========================================================
   EMAIL QUOTE
========================================================= */

.email-panel {
  margin-top: 14px;

  padding: 18px;

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  background: var(--card);

  box-shadow: var(--shadow-soft);
}

.email-panel-copy {
  margin-bottom: 13px;
}

.email-panel-title {
  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 15px;
  font-weight: 600;
}

.email-panel-subtitle {
  margin-top: 3px;

  color: var(--ink-soft);

  font-size: 10px;

  line-height: 1.4;
}

.email-panel-form {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 8px;
}

.email-panel-form input {
  height: 40px;
}

.email-quote-btn {
  min-width: 110px;

  padding: 0 15px;

  border: 1px solid var(--green-deep);

  border-radius: var(--radius-sm);

  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);

  color: #fffdfa;

  font-size: 11px;
  font-weight: 600;

  transition: background 0.15s ease;
}

.email-quote-btn:hover {
  background: linear-gradient(180deg, var(--green-deep) 0%, #21331f 100%);
}

.email-quote-btn:disabled {
  opacity: 0.6;

  cursor: not-allowed;
}

.email-status {
  min-height: 16px;

  margin-top: 8px;

  color: var(--ink-soft);

  font-size: 9.5px;
}

.email-status.success {
  color: var(--green);
}

.email-status.error {
  color: var(--rust);
}

@media (max-width: 600px) {

  .email-panel-form {
    grid-template-columns: 1fr;
  }

  .email-quote-btn {
    height: 40px;
  }
}

.reset-quote-btn {
  padding: 7px 11px;

  border: 1px solid var(--line);

  border-radius: 999px;

  background: #fff;

  color: var(--ink-soft);

  font-size: 9.5px;
  font-weight: 600;

  letter-spacing: 0.04em;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.reset-quote-btn:hover {
  border-color: var(--accent);

  background: var(--accent-soft);

  color: var(--accent-deep);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reset-dialog {
  width: min(410px, calc(100% - 40px));

  padding: 32px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  background: var(--card);
  color: var(--ink);

  text-align: center;

  box-shadow: 0 24px 70px rgba(39, 58, 34, 0.18);
}

.reset-dialog::backdrop {
  background: rgba(22, 30, 24, 0.5);
  backdrop-filter: blur(4px);
}

.reset-dialog-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 18px;

  border-radius: 50%;

  background: var(--accent-soft);

  color: var(--accent-deep);

  font-size: 23px;
}

.reset-dialog h3 {
  margin: 0 0 9px;

  font-family: "Fraunces", serif;

  font-size: 24px;
  font-weight: 500;

  color: var(--green-deep);
}

.reset-dialog p {
  margin: 0 auto 24px;

  max-width: 300px;

  color: var(--ink-soft);

  font-size: 13px;
  line-height: 1.6;
}

.reset-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.reset-dialog-actions button {
  padding: 11px 18px;

  border-radius: var(--radius-sm);

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.reset-dialog-cancel {
  border: 1px solid var(--line);

  background: var(--card);

  color: var(--ink);
}

.reset-dialog-confirm {
  border: 1px solid var(--rust);

  background: var(--rust);

  color: white;
}

/* =========================================================
   POLISHED DROPDOWNS
========================================================= */

select {
  width: 100%;

  height: 40px;

  padding: 0 36px 0 12px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--ink-soft) 50%
    )
    calc(100% - 16px) 17px / 5px 5px no-repeat,

    linear-gradient(
      135deg,
      var(--ink-soft) 50%,
      transparent 50%
    )
    calc(100% - 12px) 17px / 5px 5px no-repeat,

    var(--paper-soft);

  color: var(--ink);

  font-family: inherit;
  font-size: 12px;
  font-weight: 500;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

select:hover {
  border-color: var(--line-strong);
  background-color: #fff;
}

select:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 3px rgba(64, 88, 58, 0.09);
}

/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px;

  background:
    radial-gradient(
      circle at top left,
      rgba(169, 122, 60, 0.10),
      transparent 40%
    ),
    var(--paper);
}

.login-card {
  width: min(100%, 420px);

  padding: 40px 38px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  background: var(--card);

  box-shadow: var(--shadow-card);

  text-align: center;
}

.login-logo {
  width: 76px;
  height: auto;

  margin-bottom: 18px;
}

.login-eyebrow {
  margin-bottom: 10px;

  color: var(--accent-deep);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 8px;

  font-family: "Fraunces", serif;

  font-size: 34px;
  font-weight: 500;

  color: var(--green-deep);
}

.login-subtitle {
  max-width: 300px;

  margin: 0 auto 28px;

  color: var(--ink-soft);

  font-size: 13px;
  line-height: 1.6;
}

.login-field {
  margin-bottom: 16px;

  text-align: left;
}

.login-field label {
  display: block;

  margin-bottom: 7px;

  color: var(--ink-soft);

  font-size: 11px;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 44px;

  padding: 0 13px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--paper-soft);

  color: var(--ink);

  font-family: inherit;
  font-size: 13px;

  box-sizing: border-box;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.login-field input:focus {
  outline: none;

  border-color: var(--accent);

  background: #fff;

  box-shadow: 0 0 0 3px rgba(64, 88, 58, 0.09);
}

.login-button {
  width: 100%;

  margin-top: 6px;

  padding: 12px 18px;

  border: 1px solid var(--green-deep);
  border-radius: 10px;

  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);

  color: #fffdfa;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.login-button:hover {
  background: linear-gradient(180deg, var(--green-deep) 0%, #21331f 100%);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-status {
  min-height: 20px;

  margin-top: 14px;

  font-size: 12px;
  line-height: 1.5;

  color: var(--ink-soft);
}

.login-status.error {
  color: var(--rust);
}

.login-status.success {
  color: var(--green);
}

.logout-btn {
  padding: 7px 11px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #fff;

  color: var(--ink-soft);

  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;

  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.logout-btn:hover {
 border-color: var(--rust);

 background: var(--rust-soft);

 color: var(--rust);
}

.logout-btn:active {
  transform: translateY(1px);
}

.current-user {
  padding-right: 4px;

  color: var(--ink-soft);

  font-size: 10px;
  font-weight: 500;

  white-space: nowrap;
}

/* =========================================================
   ITINERARY — MULTI ROOM LAYOUT
========================================================= */

.leg-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 12px;

  margin-bottom: 18px;
}

.leg-main-grid > * {
  min-width: 0;
}

.leg-hotel-field {
  grid-column: span 1;
}


/* =========================================================
   ROOM AREA
========================================================= */

.leg-rooms {
  margin-top: 6px;
  padding-top: 14px;

  border-top: 1px solid var(--line);
}

.leg-rooms-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 10px;
}

.leg-rooms-title {
  color: var(--green-deep);

  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 500;
}

.leg-rooms-helper {
  color: var(--ink-faint);

  font-size: 10px;
}


/* =========================================================
   INDIVIDUAL ROOM ROW
========================================================= */

.room-selection-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.room-selection-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.7fr)
    minmax(130px, 0.9fr)
    minmax(90px, 0.55fr)
    34px;

  gap: 10px;

  align-items: end;
}

.room-selection-field {
  min-width: 0;
}

.room-selection-field label {
  display: block;

  margin-bottom: 5px;

  color: var(--ink-soft);

  font-size: 10px;
  font-weight: 500;
}

.room-selection-row select,
.room-selection-row input {
  width: 100%;
}


/* =========================================================
   REMOVE ROOM
========================================================= */

.room-selection-remove-wrap {
  display: flex;
  align-items: flex-end;

  height: 100%;
}

.room-selection-remove {
  width: 34px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: transparent;

  color: var(--rust);

  font-size: 16px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.room-selection-remove:hover:not(:disabled) {
  border-color: var(--rust);

  background: var(--rust-soft);
}

.room-selection-remove:disabled {
  opacity: 0.25;
  cursor: default;
}


/* =========================================================
   ADD ROOM
========================================================= */

.add-room-btn {
  margin-top: 10px;

  padding: 7px 11px;

  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);

  background: transparent;

  color: var(--green-deep);

  font-family: inherit;
  font-size: 10px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.add-room-btn:hover {
  border-color: var(--accent);

  background: var(--accent-soft);
}


/* =========================================================
   NIGHT COUNT
========================================================= */

.checkout-note {
  margin-top: 12px;

  color: var(--ink-faint);

  font-size: 10px;
}


/* =========================================================
   RESPONSIVE — MULTI ROOM
========================================================= */

@media (max-width: 900px) {

  .leg-main-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leg-hotel-field {
    grid-column: 1 / -1;
  }

  .room-selection-row {
    grid-template-columns:
      1fr
      1fr
      90px
      34px;
  }
}


@media (max-width: 650px) {

  .leg-main-grid {
    grid-template-columns: 1fr;
  }

  .leg-hotel-field {
    grid-column: auto;
  }

  .leg-rooms-header {
    display: block;
  }

  .leg-rooms-helper {
    margin-top: 4px;
  }

  .room-selection-row {
    grid-template-columns: 1fr;
  }

  .room-selection-remove-wrap {
    justify-content: flex-end;
  }
}

/* =========================================================
   RESULT ROOM BREAKDOWN
========================================================= */

.result-room-summary {
  margin: 12px 0 14px;

  padding: 10px 0 0;

  border: none;

  background: transparent;
}

.result-room-summary-title {
  margin-bottom: 8px;

  color: var(--ink-soft);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-room-list {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.result-room-item {
  display: grid;
  grid-template-columns: 100px auto;
  align-items: center;
  justify-content: start;
  gap: 18px;
}

.result-room-name {
  color: var(--ink);

  font-size: 13px;
  font-weight: 600;
}

.result-room-meta {
  color: var(--ink-soft);

  font-size: 12px;

  white-space: nowrap;
}

.export-card {
  margin-top: 16px;
}

.export-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.export-card-head h2 {
  margin-bottom: 4px;
}

.export-card-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}


/* =========================================================
   NICE-TO-HAVE EXTRAS — small premium touches that don't
   require any HTML changes to benefit from
========================================================= */

/* number cells that update (totals, prices) get a quiet
   highlight flash instead of just popping to a new value —
   wire this up by toggling the class on data change in JS:
   el.classList.add('value-flash'); then remove after ~600ms */
@keyframes value-flash {
  0%   { background: rgba(169, 122, 60, 0.18); }
  100% { background: transparent; }
}
.value-flash {
  animation: value-flash 0.6s ease;
  border-radius: 4px;
}

/* subtle skeleton loading state for async pricing calls —
   swap .loading text content for a div.skeleton-line while
   fetching, if you want something more premium than "Loading…" */
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--line) 25%,
    var(--paper-soft) 50%,
    var(--line) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
}
@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* a resting/idle "Calculate Quote" button gets one slow,
   barely-there glow so the primary action stays noticeable
   without shouting — remove if you'd rather it stay static */
.quote-summary-card button.primary {
  animation: quiet-glow 3.5s ease-in-out infinite;
}
@keyframes quiet-glow {
  0%, 100% { box-shadow: var(--shadow-lift); }
  50%      { box-shadow: 0 8px 20px rgba(169, 122, 60, 0.28); }
}

/* =========================================================
   SAVED QUOTES PAGE
========================================================= */


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo {
  display: block;

  width: 94px;
  height: 58px;

  object-fit: contain;
  object-position: left center;
}

.header-brand h1 {
  margin: 2px 0 0;

  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 21px;
  font-weight: 600;

  line-height: 1.1;
}

.header-eyebrow {
  color: var(--accent-deep);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* New Quote link */

.header-actions a.ghost {
  display: inline-flex;
  align-items: center;

  padding: 8px 13px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #fff;

  color: var(--green-deep);

  font-size: 10.5px;
  font-weight: 600;

  text-decoration: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.header-actions a.ghost:hover {
  border-color: var(--accent);

  background: var(--accent-soft);

  color: var(--accent-deep);
}


/* Logout */

.header-actions button.ghost {
  width: auto;

  margin: 0;

  padding: 8px 13px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: transparent;

  color: var(--ink-soft);

  font-size: 10.5px;
  font-weight: 600;
}

.header-actions button.ghost::before {
  display: none;
}

.header-actions button.ghost:hover {
  border-color: var(--accent);

  background: var(--accent-soft);

  color: var(--accent-deep);
}


/* ---------------------------------------------------------
   SECTION HEADER
--------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;
}

.section-head h2 {
  margin: 3px 0 6px;
}

.section-head p {
  margin: 0;

  color: var(--ink-soft);

  font-size: 11.5px;

  line-height: 1.5;
}

.section-eyebrow {
  color: var(--accent-deep);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.saved-quotes-toolbar {
  margin-bottom: 20px;
}

.saved-quotes-toolbar input {
  height: 44px;

  padding-left: 14px;

  background: #fff;
}


/* ---------------------------------------------------------
   LOAD STATUS
--------------------------------------------------------- */

#quotesStatus {
  margin-bottom: 12px;

  color: var(--ink-soft);

  font-size: 10.5px;
}


/* ---------------------------------------------------------
   QUOTE LIST
--------------------------------------------------------- */

.saved-quotes-list {
  display: flex;
  flex-direction: column;

  gap: 10px;
}


/* ---------------------------------------------------------
   QUOTE CARD
--------------------------------------------------------- */

.saved-quote-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 17px 18px;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: var(--paper-soft);

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.saved-quote-card:hover {
  border-color: var(--line-strong);

  background: #fff;

  box-shadow: var(--shadow-soft);
}

.saved-quote-main {
  min-width: 0;

  flex: 1;
}


/* Quote reference */

.saved-quote-ref {
  margin-bottom: 4px;

  color: var(--accent-deep);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Client */

.saved-quote-client {
  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 18px;
  font-weight: 600;

  line-height: 1.2;
}


/* Metadata */

.saved-quote-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 10px;
}

.saved-quote-meta span {
  padding: 5px 8px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #fff;

  color: var(--ink-soft);

  font-size: 9px;
  font-weight: 500;

  white-space: nowrap;
}


/* ---------------------------------------------------------
   OPEN BUTTON
--------------------------------------------------------- */

.saved-quote-actions {
  flex: 0 0 auto;
}

.saved-quote-actions .summary-secondary {
  width: auto;

  min-width: 105px;

  margin: 0;

  padding: 9px 14px;

  border-color: var(--green-deep);

  background: var(--green-deep);

  color: #fffdfa;
}

.saved-quote-actions .summary-secondary:hover {
  border-color: var(--green);

  background: var(--green);

  color: #fffdfa;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

  .header-brand {
    gap: 12px;
  }

  .header-logo {
    width: 74px;
    height: 48px;
  }

  .header-brand h1 {
    font-size: 17px;
  }

  .header-actions {
    gap: 6px;
  }

  .saved-quote-card {
    flex-direction: column;

    align-items: stretch;

    gap: 14px;
  }

  .saved-quote-actions {
    width: 100%;
  }

  .saved-quote-actions .summary-secondary {
    width: 100%;
  }

  .saved-quote-meta {
    gap: 5px;
  }

}

/* =========================================================
   DELETE / RESET MODAL BUTTON HOVER
========================================================= */

.reset-dialog-cancel,
.reset-dialog-confirm {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.reset-dialog-cancel:hover {
  transform: translateY(-2px);

  border-color: var(--accent);

  background: var(--accent-soft);

  box-shadow: 0 6px 14px rgba(39, 58, 34, 0.08);
}

.reset-dialog-confirm:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(139, 71, 55, 0.22);
}

.reset-dialog-cancel:active,
.reset-dialog-confirm:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   SAVE QUOTE STATUS
========================================================= */

#saveQuoteStatus {
  min-height: 20px;

  margin-top: 10px;

  padding: 8px 10px;

  border: 1px solid transparent;
  border-radius: var(--radius-sm);

  color: var(--green-deep);

  font-size: 10.5px;
  font-weight: 600;

  line-height: 1.4;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

#saveQuoteStatus:not(:empty) {
  border-color: rgba(64, 88, 58, 0.18);

  background: var(--green-soft);

  box-shadow:
    inset 3px 0 0 var(--green);
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.extra-row:last-child {
  border-bottom: 0;
}

.extra-copy {
  min-width: 0;
}

.extra-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.extra-unit {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.extra-controls {
  display: grid;
  grid-template-columns: 130px 76px;
  align-items: end;
  gap: 10px;
}

.extra-control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.extra-input-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.extra-input-wrap {
  position: relative;
}

.extra-input-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  pointer-events: none;
}

.extra-rate,
.extra-qty {
  box-sizing: border-box;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.extra-rate {
  width: 130px;
  padding: 0 10px 0 38px;
}

.extra-qty {
  width: 76px;
  padding: 0 10px;
  text-align: center;
}

.extra-rate:focus,
.extra-qty:focus {
  border-color: var(--green);
  box-shadow:
    0 0 0 3px rgba(64, 88, 58, 0.08);
  background: #fff;
}

@media (max-width: 720px) {
  .extra-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .extra-controls {
    grid-template-columns: 1fr 90px;
    width: 100%;
  }

  .extra-rate {
    width: 100%;
  }

  .extra-qty {
    width: 100%;
  }
}

/* =========================================================
   RATE MANAGEMENT PAGE
========================================================= */

.rate-management-page {
  max-width: 1120px;
  margin: 0 auto;
}

.rate-page-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 71, 55, 0.25);
  border-radius: var(--radius-sm);
  background: var(--rust-soft);
  color: var(--rust);
  font-size: 11.5px;
  line-height: 1.5;
}

.rate-subsection {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rate-subsection:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.rate-subsection-head {
  margin-bottom: 14px;
  color: var(--green-deep);
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 600;
}

.rate-form-grid,
.rate-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.rate-span-2 {
  grid-column: span 2;
}

.rate-inline-note {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.rate-optional {
  margin-left: 4px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 500;
}

.rate-management-page textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.45;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.rate-management-page textarea:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.rate-management-page textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(64, 88, 58, 0.09);
}

.rate-review {
  margin-top: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 100% 0%, rgba(154, 143, 88, 0.08), transparent 45%),
    var(--paper-soft);
}

.rate-review-eyebrow {
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rate-review-title {
  color: var(--green-deep);
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 600;
}

.rate-review-meta {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.rate-review-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rate-review-price {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
}

.rate-review-price span,
.rate-review-price strong {
  display: block;
}

.rate-review-price span {
  color: var(--ink-faint);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-review-price strong {
  margin-top: 4px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 600;
}

.rate-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.rate-status {
  min-height: 20px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.rate-status.success {
  color: var(--green);
  font-weight: 600;
}

.rate-status.error {
  color: var(--rust);
  font-weight: 600;
}

button.primary.rate-save-btn {
  width: auto;
  min-width: 150px;
  margin-left: auto;
  padding-left: 22px;
  padding-right: 22px;
}


@media (max-width: 900px) {
  .rate-form-grid,
  .rate-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rate-review-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 620px) {
  .rate-form-grid,
  .rate-price-grid,
  .rate-review-prices {
    grid-template-columns: 1fr;
  }

  .rate-span-2 {
    grid-column: span 1;
  }

  .rate-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  button.primary.rate-save-btn {
    width: 100%;
    margin-left: 0;
  }
}


/* =========================================================
   LPO MANAGEMENT
========================================================= */

.lpo-panel .section-head {
  align-items: center;
}

.lpo-prepare-btn {
  width: auto;
  min-width: 130px;
  margin: 0;
}

.lpo-status {
  margin-bottom: 14px;

  color: var(--ink-soft);

  font-size: 10.5px;
  line-height: 1.5;
}

.lpo-hotel-list {
  display: grid;
  gap: 10px;
}

.lpo-hotel-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 16px;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: var(--paper-soft);
}

.lpo-hotel-info {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 3px;
}

.lpo-hotel-info strong {
  color: var(--green-deep);

  font-family: "Fraunces", serif;

  font-size: 14px;
  font-weight: 600;
}

.lpo-hotel-info span {
  color: var(--ink);

  font-size: 10.5px;
}

.lpo-hotel-info small {
  overflow: hidden;

  color: var(--ink-soft);

  font-size: 9.5px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.lpo-hotel-actions {
  display: flex;

  flex-shrink: 0;

  gap: 8px;
}

.lpo-hotel-actions .summary-secondary {
  width: auto;

  margin: 0;
}


/* =========================================================
   HOTEL LPO PRINT VIEW
========================================================= */

.hotel-lpo {
  width: 100%;

  color: #111;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 9pt;
  line-height: 1.35;
}

.lpo-top {
  display: grid;

  grid-template-columns:
    210px
    1fr;

  gap: 30px;

  align-items: end;
}

.lpo-logo {
  display: block;

  width: 175px;
  height: 90px;

  object-fit: contain;
  object-position: left center;
}

.lpo-web {
  margin-top: 3px;

  font-size: 8pt;
  font-weight: 600;
}

.lpo-company {
  line-height: 1.5;
}

.lpo-company strong {
  display: block;

  margin-bottom: 4px;

  font-size: 11pt;
}

.lpo-rule {
  height: 1px;

  margin: 10px 0 12px;

  background: #333;
}

.lpo-meta {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;
}

.lpo-meta > div {
  display: grid;

  grid-template-columns:
    105px
    1fr;

  gap: 8px;
}

.lpo-meta span,
.lpo-detail-row span {
  font-weight: 700;
}

.lpo-status-row {
  display: flex;

  justify-content: flex-end;

  gap: 30px;

  margin:
    8px
    0
    20px;

  font-size: 8pt;
}

.lpo-details {
  margin-bottom: 16px;
}

.lpo-detail-row {
  display: grid;

  grid-template-columns:
    140px
    1fr;

  gap: 12px;

  margin-bottom: 8px;
}

.lpo-table {
  width: 100%;

  border-collapse: collapse;

  margin-top: 12px;

  font-size: 8pt;
}

.lpo-table th,
.lpo-table td {
  padding: 7px 6px;

  border:
    1px solid
    #666;

  vertical-align: top;
}

.lpo-table th {
  font-size: 7pt;

  text-align: center;
}

.lpo-num {
  text-align: right;

  font-variant-numeric:
    tabular-nums;
}

.lpo-basis {
  padding:
    10px
    0;

  border-bottom:
    1px solid
    #999;

  font-size: 8pt;
}

.lpo-basis span {
  margin:
    0
    8px;
}

.lpo-totals {
  width: 55%;

  margin:
    18px
    0
    0
    auto;
}

.lpo-totals > div {
  display: flex;

  justify-content: space-between;

  gap: 30px;

  padding:
    5px
    0;
}

.lpo-payable {
  margin-top: 5px;

  border-top:
    1px solid
    #222;

  border-bottom:
    3px double
    #222;

  font-size: 10pt;
}

.lpo-words {
  display: grid;

  grid-template-columns:
    100px
    1fr;

  gap: 12px;

  margin-top: 22px;
}

.lpo-payment-note {
  max-width: 500px;

  margin:
    28px
    auto;

  font-weight: 700;

  line-height: 1.6;

  text-align: center;
}

.lpo-signature {
  margin-top: 40px;
}

.lpo-signature-line {
  width: 180px;
  height: 30px;

  margin-bottom: 4px;

  border-bottom:
    1px solid
    #222;
}


@media (max-width: 700px) {

  .lpo-hotel-card {
    align-items: stretch;

    flex-direction: column;
  }

  .lpo-hotel-actions {
    width: 100%;
  }

  .lpo-hotel-actions .summary-secondary {
    flex: 1;
  }

}


@media print {

  .hotel-lpo {
    display: block !important;
  }

  .hotel-lpo table {
    page-break-inside: avoid;
  }

  .hotel-lpo tr {
    page-break-inside: avoid;
  }

}

/* =========================================================
   EXISTING SEASONS
========================================================= */

.existing-seasons {
  margin-top: 18px;

  padding: 14px;

  border:
    1px solid
    var(--line);

  border-radius:
    var(--radius-sm);

  background:
    var(--paper-soft);
}

.existing-seasons-title {
  margin-bottom: 9px;

  color:
    var(--green-deep);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.existing-seasons-list {
  color:
    var(--ink-soft);

  font-size: 10.5px;
}

.existing-season-row {
  display: grid;

  grid-template-columns:
    minmax(100px, 0.7fr)
    minmax(200px, 1fr)
    auto;

  align-items: center;

  width: 100%;

  gap: 14px;

  padding:
    10px
    11px;

  border: 0;
  border-top:
    1px solid
    var(--line);

  background:
    transparent;

  color:
    var(--ink);

  text-align: left;
}

.existing-season-row:first-child {
  border-top: 0;
}

.existing-season-row:hover {
  background:
    var(--green-soft);
}

.existing-season-name {
  color:
    var(--green-deep);

  font-weight: 600;
}

.existing-season-dates {
  color:
    var(--ink-soft);
}

.existing-season-action {
  color:
    var(--accent-deep);

  font-size: 9.5px;
  font-weight: 700;

  text-transform: uppercase;
}

.loaded-rate-date {
  margin:
    -6px
    0
    16px;

  color:
    var(--accent-deep);

  font-size: 10.5px;
  font-weight: 600;

  line-height: 1.5;
}

.existing-season-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.existing-season-use,
.existing-season-delete {
  padding: 0;

  border: 0;

  background: transparent;

  font-size: 9.5px;
  font-weight: 700;

  text-transform: uppercase;
}

.existing-season-use {
  color: var(--accent-deep);
}

.existing-season-use:hover {
  color: var(--green-deep);
}

.existing-season-delete {
  color: var(--rust);
}

.existing-season-delete:hover {
  text-decoration: underline;
}

.compare-name-input {
  width: 100%;
  min-width: 0;

  padding: 2px 4px;

  border: 1px solid transparent;
  border-radius: 4px;

  background: transparent;

  font: inherit;
  font-weight: inherit;
  color: inherit;
}

.compare-name-input:hover {
  border-color: var(--line);
  background: var(--paper-soft);
}

.compare-name-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}