:root {
  --ink: #15201d;
  --muted: #5f6f69;
  --line: rgba(21, 32, 29, 0.14);
  --green: #102d28;
  --green-2: #1d5d4f;
  --gold: #c9974a;
  --paper: #f7f4ee;
  --white: #fff;
  --shadow: 0 24px 80px rgba(10, 24, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 2px;
}

button:disabled,
button.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button,
a.primary-link,
a#emailLink,
.import-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 92px;
}

body.admin-mode #home,
body.admin-mode #builder,
body.admin-mode #itinerary {
  display: none;
}

body.admin-mode .admin {
  min-height: calc(100vh - 80px);
}

.topbar nav {
  display: flex;
  gap: 20px;
}

.topbar nav a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.language-toggle {
  display: flex;
  gap: 8px;
}

.language-toggle button {
  background: var(--white);
}

.language-toggle button.is-active,
a.primary-link,
.quote-actions button:first-child,
.admin-buttons button:first-child,
.product-card button,
.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 800;
}

.hero {
  align-items: flex-end;
  background: linear-gradient(90deg, rgba(6, 28, 24, 0.92), rgba(6, 28, 24, 0.28)), url("../images/hero/hero-resort-overview.jpg") center/cover;
  color: var(--white);
  display: flex;
  min-height: 680px;
  padding: clamp(42px, 8vw, 98px);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow,
.section-title p {
  color: var(--gold);
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 22px;
}

.hero-text {
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 790px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ghost-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-stats article {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 24px clamp(18px, 3vw, 40px);
}

.quick-stats strong {
  font-size: 32px;
}

.quick-stats span {
  color: var(--muted);
}

.builder {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 270px minmax(0, 1fr) 360px;
  height: calc(100vh - 78px);
  min-height: 620px;
  overflow: hidden;
  padding: 30px clamp(18px, 4vw, 56px);
}

.builder > * {
  min-height: 0;
  min-width: 0;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.filters,
.quote {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.catalog {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.filters h2,
.quote h2,
.admin h2,
.itinerary h2 {
  font-size: 25px;
  margin: 0 0 18px;
}

.filters h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 20px 0 10px;
  text-transform: uppercase;
}

.base-plan {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 14px 0 16px;
  padding: 14px 0 2px;
}

.city-days-block {
  border-bottom: 1px solid var(--line);
  margin: 10px 0 16px;
  padding: 0 0 14px;
}

.room-planner {
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  padding: 0 0 16px;
}

.base-plan-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.base-plan-head h3 {
  margin: 0;
}

.base-plan-head button {
  background: var(--white);
  font-size: 13px;
  min-height: 32px;
  padding: 5px 10px;
}

.base-plan-summary {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  margin: 10px 0 12px;
}

.base-plan-summary.is-warning {
  color: #9c5a18;
}

.base-round-planner {
  border-top: 1px solid var(--line);
  margin: 0 0 14px;
  padding: 14px 0 2px;
}

.base-round-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.round-row {
  margin-bottom: 0;
}

.city-days-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-list {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.room-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.room-row-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.room-row-head strong {
  font-size: 14px;
}

.room-row-head button {
  background: var(--white);
  min-height: 30px;
  padding: 4px 8px;
}

.room-row-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 0.7fr 1fr 1fr 1fr;
}

.secondary-full {
  background: var(--white);
  width: 100%;
}

.is-hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--white);
  min-height: 34px;
  padding: 7px 10px;
}

.section-title {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 45px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

#visibleCount {
  color: var(--muted);
  font-weight: 750;
}

.product-grid {
  display: grid;
  gap: 24px;
}

.category-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.category-section-head {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  color: var(--ink);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 18px;
  text-align: left;
  width: 100%;
}

.category-section.is-collapsed .category-section-head {
  border-bottom: 0;
}

.category-section-head span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.category-section-head h3 {
  font-size: 21px;
  margin: 0;
}

.category-section-head strong {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 14px;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 11px;
}

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

.section-head-actions em,
.destination-head em,
.transport-seat-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.category-section.is-collapsed .category-grid,
.category-section.is-collapsed .destination-groups,
.category-section.is-collapsed .transport-groups,
.destination-section.is-collapsed .category-grid,
.destination-section.is-collapsed .transport-groups,
.transport-seat-section.is-collapsed .category-grid {
  display: none;
}

.destination-groups,
.transport-groups {
  background: #fff;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.destination-section,
.transport-seat-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.destination-head,
.transport-seat-head {
  align-items: center;
  background: #fbfaf7;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(120px, auto) 1fr auto;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.destination-head span,
.transport-seat-head span {
  font-size: 16px;
  font-weight: 850;
}

.destination-head small,
.transport-seat-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.destination-section .category-grid,
.transport-seat-section .category-grid,
.transport-destination-section .transport-groups {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.destination-section .category-grid {
  gap: 14px;
}

.transport-seat-section .category-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.transport-destination-section .transport-groups {
  padding: 12px;
}

.category-grid {
  background: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  padding: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 205px;
  min-width: 0;
  overflow: hidden;
}

.compact-service-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 12px 14px;
}

.compact-service-main {
  min-width: 0;
}

.compact-service-main span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.compact-service-main strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.compact-service-main p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 5px 0 0;
}

.compact-service-action {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  white-space: nowrap;
}

.compact-service-action > strong {
  font-size: 16px;
}

.compact-service-action button {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 800;
  min-width: 68px;
}

.product-media {
  align-items: flex-end;
  background: linear-gradient(160deg, rgba(16, 45, 40, 0.18), rgba(16, 45, 40, 0.82)), url("../images/hero/hero-resort-overview.jpg");
  background-position: center;
  background-size: cover;
  color: #f4ddb1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 100%;
  padding: 16px;
  text-align: right;
}

.product-media span {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.product-media strong {
  color: #f4ddb1;
  font-size: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.product-media.golf {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.25), rgba(16, 45, 40, 0.7)), url("../images/services/service-golf-course.jpg");
  background-position: center;
  background-size: cover;
}

.product-media.hotel {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.25), rgba(16, 45, 40, 0.7)), url("../images/hero/hero-resort-overview.jpg");
  background-position: center;
  background-size: cover;
}

.product-media.sightseeing {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.25), rgba(16, 45, 40, 0.7)), url("../images/destinations/destination-dali-resort.jpg");
  background-position: center;
  background-size: cover;
}

.product-media.transport,
.product-media.guide {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.24), rgba(16, 45, 40, 0.78)), url("../images/hero/hero-resort-overview.jpg");
  background-position: center;
  background-size: cover;
}

.product-media.dali {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.2), rgba(16, 45, 40, 0.76)), url("../images/destinations/destination-dali-resort.jpg");
}

.product-media.lijiang {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.2), rgba(16, 45, 40, 0.76)), url("../images/destinations/destination-lijiang-mountain.jpg");
}

.product-media.kunming,
.product-media.multi-city {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.2), rgba(16, 45, 40, 0.76)), url("../images/hero/hero-resort-overview.jpg");
}

.product-media.golf.kunming,
.product-media.golf.dali,
.product-media.golf.lijiang {
  background-image: linear-gradient(160deg, rgba(16, 45, 40, 0.2), rgba(16, 45, 40, 0.76)), url("../images/services/service-golf-course.jpg");
}

.product-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.product-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.product-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.product-buttons .detail-button {
  background: var(--white);
  border-color: var(--line);
  font-weight: 750;
}

.product-foot strong {
  white-space: nowrap;
}

.total-box {
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 18px;
}

.total-box strong {
  font-size: 31px;
}

.quote dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin: 0 0 18px;
}

.quote dt,
.quote dd {
  margin: 0;
}

.quote dt {
  color: var(--muted);
}

.quote-warnings {
  background: #fff7e8;
  border: 1px solid rgba(156, 90, 24, 0.32);
  border-radius: 8px;
  color: #7a4411;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px;
}

.quote-warnings strong {
  color: #5f330a;
}

.quote-warnings ul {
  margin: 0;
  padding-left: 18px;
}

.cart-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cart-head h3 {
  margin: 0;
}

.cart-head button {
  background: var(--white);
}

.cart-list {
  display: grid;
  gap: 11px;
  list-style-position: inside;
  margin: 14px 0 0;
  padding: 0;
}

.cart-list li {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
}

.cart-line-title {
  display: block;
  font-weight: 850;
  margin-bottom: 4px;
}

.cart-line-meta {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.cart-line-share {
  color: var(--green-2);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.included-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

.included-list strong {
  font-size: 13px;
}

.included-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-controls {
  display: grid;
  align-items: end;
  gap: 8px;
  grid-template-columns: 74px minmax(76px, 0.8fr) minmax(76px, 0.8fr) minmax(150px, 1.25fr) 44px;
  margin-top: 10px;
}

.cart-controls.has-date-type {
  grid-template-columns: 74px minmax(76px, 0.75fr) minmax(76px, 0.75fr) minmax(150px, 1fr) minmax(132px, 0.95fr) 44px;
}

.cart-control-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-control-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.cart-sort-buttons {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.cart-controls button,
.cart-remove-group button {
  background: var(--white);
  min-height: 34px;
  padding-left: 0;
  padding-right: 0;
}

.cart-controls input,
.cart-controls select {
  min-height: 34px;
  padding: 5px 7px;
}

.cart-schedule-group select {
  min-width: 0;
}

.quote-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quote-actions a,
.quote-actions button,
.admin-buttons button,
.import-button {
  background: var(--white);
  color: var(--ink);
  position: relative;
  width: 100%;
}

.itinerary {
  border-top: 1px solid var(--line);
  padding: 38px clamp(18px, 4vw, 56px);
}

.section-title button {
  background: var(--gold);
  border-color: var(--gold);
}

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

.day-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.day-card > span {
  color: var(--gold);
  font-weight: 850;
}

.day-card h3 {
  font-size: 18px;
  margin: 8px 0 12px;
}

.day-card p {
  color: var(--muted);
  line-height: 1.45;
}

.cost-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--paper);
  font-size: 13px;
  text-transform: uppercase;
}

.admin {
  background: var(--paper);
  padding: 38px clamp(18px, 4vw, 56px);
}

.admin-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.admin-settings,
.product-editor {
  background: var(--white);
}

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

.admin-sync-card {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-sync-card .editor-head {
  margin-bottom: 0;
}

.admin-sync-status {
  border-radius: 8px;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
}

.admin-sync-status.is-checking,
.admin-sync-status.is-empty {
  background: rgba(201, 151, 74, 0.12);
  color: #7f5a22;
}

.admin-sync-status.is-connected {
  background: rgba(29, 93, 79, 0.11);
  color: var(--green-2);
}

.admin-sync-status.is-local {
  background: rgba(95, 111, 105, 0.12);
  color: var(--muted);
}

.admin-sync-meta {
  min-height: 22px;
}

.admin-buttons {
  display: grid;
  gap: 9px;
}

.import-button input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.hint {
  color: var(--muted);
  line-height: 1.5;
}

.editor-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.editor-head h3 {
  margin: 0;
}

.admin-rows {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.admin-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) 120px 120px 90px;
  padding: 10px;
}

.admin-row strong {
  display: block;
}

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

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

.admin-picker-grid {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 12px;
}

.admin-form-grid label:nth-last-child(-n + 2) {
  grid-column: span 1;
}

.admin-price-rules,
.admin-image-editor,
.base-package-grid {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-price-rules,
.admin-image-editor {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.admin-profit-options {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.admin-profit-options .editor-head,
.admin-profit-options .hint {
  grid-column: 1 / -1;
}

.checkbox-line {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
}

.checkbox-line input {
  width: auto;
}

.admin-base-editor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.admin-base-editor h4,
.admin-image-editor h4,
.admin-profit-options h4,
.admin-price-rules h4 {
  margin: 0;
}

.admin-image-preview {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #e9e5dc center/cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  width: min(100%, 520px);
}

.admin-image-preview.is-empty {
  background-image: repeating-linear-gradient(45deg, #f5f2eb 0 10px, #ebe6da 10px 20px);
}

.admin-price-rules .hint,
.price-rule-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.price-rule-list {
  display: grid;
  gap: 10px;
}

.price-rule-row {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  padding: 10px;
}

.price-rule-row label {
  min-width: 0;
}

.danger-lite {
  background: #fff;
  color: #7d2d21;
}

.modal {
  align-items: center;
  background: rgba(7, 18, 15, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.modal-panel {
  background: var(--white);
  border-radius: 8px;
  max-height: 86vh;
  max-width: 760px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 760px);
}

.image-credit {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 16px;
  text-align: right;
}

.image-credit a {
  color: inherit;
}

.wizard-panel {
  max-width: 860px;
}

.wizard-header {
  margin-bottom: 18px;
  padding-right: 70px;
}

.wizard-header h2 {
  font-size: 30px;
  margin: 0 0 6px;
}

.wizard-header p,
.wizard-review p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.wizard-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.wizard-steps span {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 9px;
}

.wizard-steps span.is-active {
  background: var(--green);
  color: var(--white);
}

.wizard-body {
  display: grid;
  gap: 14px;
}

.wizard-hint {
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}

.wizard-warning {
  background: #fff4df;
  border: 1px solid rgba(201, 151, 74, 0.42);
  border-radius: 8px;
  color: #7d4a00;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.wizard-warning span {
  font-size: 14px;
  font-weight: 800;
}

.wizard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-grid label.is-wide {
  grid-column: 1 / -1;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.wizard-actions button {
  background: var(--white);
}

.wizard-actions button:last-child {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 850;
}

.wizard-review {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.wizard-review dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
}

.wizard-review dt {
  color: var(--muted);
  font-weight: 800;
}

.wizard-review dd {
  margin: 0;
}

.modal-close {
  background: var(--white);
  position: absolute;
  right: 16px;
  top: 16px;
}

.detail-media {
  background: linear-gradient(160deg, rgba(16, 45, 40, 0.18), rgba(16, 45, 40, 0.78)), url("../images/destinations/destination-dali-resort.jpg") center/cover;
  border-radius: 8px;
  min-height: 220px;
  margin-bottom: 18px;
}

.detail-content h2 {
  font-size: 30px;
  margin: 0 0 8px;
}

.detail-content p {
  color: var(--muted);
  line-height: 1.65;
}

footer {
  align-items: center;
  background: #091a16;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
}

.print-sheet {
  display: none;
}

@media (max-width: 1280px) {
  .builder,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .builder {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .catalog,
  .filters,
  .quote {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav,
  .section-title,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-stats,
  .category-grid,
  .day-grid {
    grid-template-columns: 1fr;
  }

  .transport-seat-head {
    grid-template-columns: 1fr auto;
  }

  .transport-seat-head small {
    grid-column: 1 / -1;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 180px;
  }

  .cart-controls,
  .admin-row,
  .room-row-grid,
  .admin-picker-grid,
  .admin-form-grid,
  .admin-profit-options,
  .price-rule-row,
  .wizard-grid,
  .wizard-steps {
    grid-template-columns: 1fr 1fr;
  }

  .base-round-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .admin-sync-card .editor-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 7mm;
    size: A4 portrait;
  }

  * {
    box-shadow: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 8.5pt;
    margin: 0 !important;
  }

  .topbar,
  main,
  body > footer {
    display: none !important;
  }

  .print-sheet {
    display: block !important;
  }

  .print-document {
    color: #111;
    display: grid;
    gap: 4px;
    line-height: 1.18;
  }

  .print-brand-band {
    align-items: center;
    background: #174f3e !important;
    color: #fff !important;
    display: flex;
    height: 26mm;
    justify-content: center;
    margin: -1mm 0 5mm;
    text-align: center;
  }

  .print-brand-band strong {
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12pt;
    letter-spacing: 0.02em;
  }

  .print-title-block {
    border-bottom: 1.5px solid #c9974a;
    padding: 0 0 5px;
  }

  .print-title-block h1 {
    color: #174f3e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20pt;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 2px;
  }

  .print-title-block p {
    color: #48534f;
    font-size: 8pt;
    margin: 0 0 1px;
  }

  .print-title-block em {
    color: #69736f;
    display: block;
    font-size: 7pt;
  }

  .print-header {
    align-items: end;
    border-bottom: 2px solid #102d28;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 6px;
  }

  .print-header strong {
    color: #102d28;
    display: block;
    font-size: 11pt;
    letter-spacing: 0;
  }

  .print-header h1 {
    font-size: 18pt;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 2px 0 2px;
  }

  .print-header p,
  .print-total span,
  .print-summary span,
  .print-footer span {
    color: #52645e;
  }

  .print-total {
    background: #102d28;
    color: #fff;
    min-width: 42mm;
    padding: 6px 8px;
    text-align: right;
  }

  .print-total span {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    font-size: 7pt;
    text-transform: uppercase;
  }

  .print-total strong {
    color: #fff;
    font-size: 15pt;
  }

  .print-summary {
    border: 1px solid #d8ddd9;
    display: grid;
    grid-template-columns: 20mm 24mm 24mm minmax(0, 1fr);
  }

  .print-price-summary {
    background: #174f3e !important;
    border: 0;
    color: #fff !important;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 2px 0 5px;
    padding: 6px 10mm;
    position: relative;
  }

  .print-price-summary h2 {
    border-bottom: 0;
    color: #d9aa4f !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10pt;
    grid-column: 1 / -1;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .print-price-summary p {
    color: #fff !important;
    font-size: 7.5pt;
    grid-column: 1 / -1;
    margin: 3px 0 4px;
    text-align: center;
  }

  .print-price-summary div {
    align-items: baseline;
    display: grid;
    gap: 1px;
    padding: 3px 0;
    text-align: center;
  }

  .print-price-summary span {
    color: #fff !important;
    font-size: 7pt;
    font-weight: 700;
  }

  .print-price-summary strong {
    color: #d9aa4f !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15pt;
  }

  .print-summary div {
    border-right: 1px solid #d8ddd9;
    display: grid;
    gap: 2px;
    padding: 5px 6px;
  }

  .print-summary div:last-child {
    border-right: 0;
  }

  .print-summary span {
    font-size: 7pt;
  }

  .print-summary strong {
    font-size: 8.5pt;
  }

  .print-package {
    border: 1px solid #d8ddd9;
    display: grid;
    gap: 6px;
    grid-template-columns: 48mm minmax(0, 1fr);
    padding: 6px;
  }

  .print-package h2,
  .print-document section > h2 {
    color: #102d28;
    font-size: 9pt;
    letter-spacing: 0.04em;
    margin: 0 0 3px;
    text-transform: uppercase;
  }

  .print-package strong {
    display: block;
    font-size: 8.5pt;
  }

  .print-package ul {
    columns: 2;
    margin: 0;
    padding-left: 14px;
  }

  .print-package li {
    break-inside: avoid;
    margin: 0 0 2px;
  }

  .print-accommodation p {
    color: #48534f;
    font-size: 7.3pt;
    margin: 0 0 3px;
  }

  .print-list-section ul,
  .print-terms ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .print-list-section li,
  .print-terms li {
    border-bottom: 1px solid #e5e9e6;
    font-size: 7.3pt;
    padding: 2px 0;
  }

  .print-list-section li span {
    color: #174f3e;
    display: inline-block;
    font-weight: 700;
    width: 12px;
  }

  .print-terms li {
    color: #5f6f69;
    font-style: italic;
  }

  .print-document table {
    border-collapse: collapse;
    font-size: 7pt;
    min-width: 0;
    width: 100%;
  }

  .print-document th,
  .print-document td {
    border: 1px solid #d8ddd9;
    padding: 2.5px 4px;
    text-align: left;
    vertical-align: top;
  }

  .print-document th {
    background: #eef2ef !important;
    color: #102d28;
    font-size: 6.8pt;
    text-transform: uppercase;
  }

  .print-day-table td:nth-child(3) {
    color: #343d3a;
  }

  .print-cost-table {
    font-size: 6.8pt !important;
  }

  .print-day-table th:nth-child(1),
  .print-day-table td:nth-child(1) {
    width: 13mm;
  }

  .print-day-table th:nth-child(2),
  .print-day-table td:nth-child(2) {
    width: 20mm;
  }

  .print-cost-table th:nth-child(2),
  .print-cost-table td:nth-child(2),
  .print-cost-table th:nth-child(3),
  .print-cost-table td:nth-child(3),
  .print-cost-table th:nth-child(4),
  .print-cost-table td:nth-child(4) {
    width: 25mm;
  }

  .print-room-table th:nth-child(1),
  .print-room-table td:nth-child(1),
  .print-room-table th:nth-child(2),
  .print-room-table td:nth-child(2) {
    width: 18mm;
  }

  .print-footer {
    align-items: center;
    background: #fff !important;
    border-top: 1px solid #d8ddd9;
    color: #111 !important;
    display: flex;
    font-size: 7pt;
    justify-content: space-between;
    margin-top: 2px;
    padding: 4px 0 0 !important;
  }
}
