@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #25352d;
  background: #f7f8f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #315844;
  --deep: #213a2c;
  --muted: #828a82;
  --line: #e6e9e3;
  --orange: #e58b61;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f7f8f5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar { height: 78px; padding: 0 max(6.2vw, 24px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eaede8; background: rgba(255,255,255,.87); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: #a0a69f; font: 9px "DM Sans", sans-serif; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 8px; background: #315844; color: white; font-weight: 600; }
.main-nav { display: flex; gap: 36px; height: 100%; }
.nav-link { position: relative; padding: 0 2px; border: 0; background: none; color: #8b938b; font-size: 13px; }
.nav-link.active { color: var(--deep); font-weight: 600; }
.nav-link.active::after { position: absolute; content: ""; height: 2px; background: #e58b61; bottom: 0; left: 0; right: 0; }
.top-note { display: flex; align-items: center; gap: 8px; color: #7d887e; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #7ea37b; border-radius: 50%; }

.hero { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 365px; max-width: 1250px; margin: 36px auto 0; padding: 0 44px; }
.hero-copy { padding: 48px 30px 32px 0; }
.eyebrow, .section-kicker { color: #849086; font: 600 10px "DM Sans", sans-serif; letter-spacing: .17em; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; margin: 0 8px 3px 0; background: var(--orange); }
.hero h1 { margin: 21px 0 15px; color: #263d30; font-size: clamp(35px, 4vw, 51px); font-weight: 600; letter-spacing: .035em; line-height: 1.45; }
.hero h1 span { color: #d98961; }
.hero-copy p { color: #7c867d; font-size: 13px; letter-spacing: .025em; }
.hero-foot { margin-top: 38px; color: #899188; font-size: 11px; letter-spacing: .06em; }
.hero-foot span { margin-right: 7px; color: #df9269; font-size: 16px; }
.hero-image { position: relative; min-height: 328px; border-radius: 4px 70px 4px 4px; background: linear-gradient(0deg,rgba(25,43,36,.48),transparent 50%), url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=85") center 53%/cover; }
.image-caption { position: absolute; left: 28px; bottom: 25px; display: flex; flex-direction: column; gap: 7px; color: white; }
.image-caption span { font-size: 10px; letter-spacing: .12em; opacity: .8; }
.image-caption strong { font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.image-index { position: absolute; right: 24px; bottom: 27px; color: white; font: 11px "DM Sans", sans-serif; }
.image-index i { margin: 0 4px; opacity: .55; font-style: normal; }

.planner-section { max-width: 1162px; margin: 57px auto 0; padding: 0 25px 75px; }
.section-heading, .results-heading, .hotel-heading { display: flex; justify-content: space-between; align-items: end; }
.section-heading h2, .results-heading h2, .hotel-heading h2 { margin: 7px 0 0; color: #293b30; font-size: 23px; font-weight: 600; letter-spacing: .025em; }
.section-heading p, .hotel-heading p { margin: 0 0 4px; color: #8d958d; font-size: 11px; }
.trip-form { display: grid; grid-template-columns: 1fr 28px 1fr .82fr .82fr; align-items: end; gap: 14px; margin-top: 21px; padding: 20px 22px; border: 1px solid #e8ebe6; background: white; box-shadow: 0 8px 28px rgba(45,62,48,.035); }
.field { display: flex; flex-direction: column; gap: 9px; color: #828c83; font-size: 10px; }
.field select, .number-control { width: 100%; height: 39px; padding: 0 12px; border: 1px solid #edf0eb; border-radius: 2px; outline-color: #79927f; background: #fbfcfa; color: #36483c; font-size: 12px; }
.route-arrow { align-self: center; margin-top: 18px; color: #d9906c; font-size: 18px; text-align: center; }
.number-control { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.number-control button { width: 29px; height: 29px; border: 0; background: transparent; color: #5a705f; font-size: 16px; }
.number-control input { width: 38px; padding: 0; border: 0; outline: 0; background: transparent; color: #36483c; font-size: 12px; text-align: center; appearance: textfield; }
.number-control input::-webkit-inner-spin-button { appearance: none; }
.results-heading { margin: 47px 0 17px; }
.result-count { color: #949a93; font-size: 11px; }
.route-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.route-card { position: relative; padding: 19px 18px 16px; border: 1px solid #e6eae4; background: #fff; transition: border-color .2s, box-shadow .2s; }
.route-card.selected { border-color: #729079; box-shadow: 0 0 0 1px #729079; }
.route-topline { display: flex; justify-content: space-between; align-items: center; }
.route-tag { padding: 5px 8px; background: #f2f5f0; color: #6a806c; font-size: 9px; letter-spacing: .03em; }
.route-choice { display: inline-flex; align-items: center; gap: 6px; color: #768277; font-size: 10px; }
.route-choice input { accent-color: var(--green); }
.route-dest { margin: 16px 0 4px; color: #2d4034; font-size: 19px; font-weight: 600; }
.route-desc { margin: 0; color: #929990; font-size: 10px; }
.route-price-line { display: flex; justify-content: space-between; gap: 8px; padding: 14px 0 12px; margin-top: 15px; border-top: 1px solid #eef0ed; }
.route-price-line div { display: flex; flex-direction: column; gap: 5px; color: #8b948b; font-size: 9px; }
.route-price-line strong { color: #425548; font-size: 11px; font-weight: 600; }
.route-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; border-top: 1px solid #eef0ed; color: #8c948c; font-size: 10px; }
.route-card-foot strong { color: #d7825e; font-size: 16px; font-weight: 600; }
.route-card-foot strong small { margin-left: 3px; color: #9ba199; font-size: 9px; font-weight: 400; }
.empty-state { grid-column: 1 / -1; padding: 35px; border: 1px dashed #dfe5dd; color: #8a938b; text-align: center; font-size: 12px; }

.hotel-heading { margin: 51px 0 17px; }
.hotel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hotel-card { overflow: hidden; border: 1px solid #e6eae4; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hotel-card.selected { border-color: #729079; box-shadow: 0 0 0 1px #729079; }
.hotel-photo { position: relative; height: 157px; background-color: #e6ebe4; background-position: center; background-size: cover; }
.hotel-rating { position: absolute; top: 11px; right: 11px; padding: 6px 8px; background: rgba(255,255,255,.92); color: #637a61; font: 600 10px "DM Sans", sans-serif; }
.hotel-body { padding: 14px 15px 13px; }
.hotel-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.hotel-title-row h3 { margin: 0; color: #34473a; font-size: 14px; font-weight: 600; }
.hotel-price { color: #d7825e; font: 600 16px "DM Sans", sans-serif; white-space: nowrap; }
.hotel-price small { margin-left: 2px; color: #8b958b; font: 9px "Noto Sans SC",sans-serif; }
.hotel-location { margin: 6px 0 12px; color: #929990; font-size: 10px; }
.hotel-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hotel-tags span { padding: 4px 7px; background: #f4f6f2; color: #718173; font-size: 9px; }
.hotel-select { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 1px solid #eef0ed; color: #819083; font-size: 10px; }
.hotel-check { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #d6ded5; border-radius: 50%; color: white; font-size: 9px; }
.hotel-card.selected .hotel-check { border-color: var(--green); background: var(--green); }
.estimate { display: grid; grid-template-columns: 1.15fr 1.5fr .8fr; align-items: center; gap: 18px; margin-top: 28px; padding: 21px 25px; background: #2e4938; color: white; }
.estimate-intro { display: flex; align-items: center; gap: 12px; }
.estimate-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #e9aa84; }
.estimate-intro strong, .estimate-intro span:not(.estimate-icon) { display: block; }
.estimate-intro strong { font-size: 13px; font-weight: 500; }
.estimate-intro div span { margin-top: 5px; color: #c5d0c6; font-size: 9px; }
.estimate-breakdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 17px; color: #cbd5cc; font-size: 10px; }
.estimate-breakdown span strong { margin-left: 4px; color: white; font-weight: 500; }
.estimate-total { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); text-align: right; }
.estimate-total > span { display: block; color: #d0d8d1; font-size: 10px; }
.estimate-total small { margin-left: 5px; color: #bdcbbf; font-size: 9px; }
.estimate-total > strong { display: block; margin-top: 4px; color: #f1b28e; font: 600 13px "DM Sans",sans-serif; }
.estimate-total b { font-size: 25px; }
.disclaimer { margin: 12px 0 0; color: #9aa199; font-size: 9px; text-align: right; }

.admin-view { max-width: 1162px; margin: 0 auto; padding: 48px 25px 75px; }
.admin-banner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-banner h1 { margin: 8px 0 6px; color: #293b30; font-size: 27px; font-weight: 600; }
.admin-banner p, .admin-card-heading p { margin: 0; color: #899188; font-size: 11px; }
.admin-badge { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e3e9e1; color: #748274; font-size: 10px; }
.storage-note { display: flex; gap: 9px; margin: 18px 0 24px; padding: 12px 14px; background: #f0f3ed; color: #728073; font-size: 10px; line-height: 1.7; }
.storage-note > span:first-child { color: #d98961; font-size: 13px; }
.admin-card { margin-top: 18px; padding: 23px 23px 12px; border: 1px solid #e6eae4; background: #fff; }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; }
.admin-card-heading h2 { margin: 6px 0 5px; color: #34473a; font-size: 18px; font-weight: 600; }
.button { min-height: 37px; padding: 0 13px; border: 0; font-size: 11px; }
.button-dark { background: #315844; color: #fff; }
.button-dark span { margin-right: 4px; font-size: 15px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 11px 10px; border-top: 1px solid #edf0eb; background: #fafbf9; color: #8c958c; font-size: 9px; font-weight: 500; }
td { padding: 12px 10px; border-top: 1px solid #edf0eb; color: #526156; font-size: 10px; }
.table-primary { color: #34473a; font-weight: 600; }
.table-sub { margin-top: 3px; color: #969e96; font-size: 9px; }
.table-thumb { width: 43px; height: 33px; margin-right: 9px; vertical-align: middle; object-fit: cover; background: #e5ebe3; }
.table-actions { display: flex; justify-content: end; gap: 10px; }
.table-actions button { padding: 3px; border: 0; background: none; color: #6f8071; font-size: 10px; }
.table-actions .delete-button { color: #bf7861; }
.reset-link { display: block; margin: 18px 0 0 auto; padding: 7px 0; border: 0; background: none; color: #8c938a; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 23px max(6.2vw, 24px); border-top: 1px solid #e8ebe6; color: #a0a69e; font: 9px "DM Sans", sans-serif; letter-spacing: .12em; }
.footer-brand { color: #526356; font: 600 12px "Noto Sans SC",sans-serif; letter-spacing: .02em; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 12px; }
.footer-brand small { color: #9aa198; font: 9px "Noto Sans SC",sans-serif; letter-spacing: 0; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(26,39,31,.48); }
.modal { width: min(100%, 490px); max-height: min(90vh, 760px); overflow: auto; padding: 24px; background: #fff; box-shadow: 0 18px 70px rgba(0,0,0,.17); }
.modal-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 19px; }
.modal-heading h2 { margin: 5px 0 0; color: #34473a; font-size: 20px; }
.modal-close { width: 30px; height: 30px; border: 0; background: #f4f6f2; color: #718073; font-size: 18px; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.modal-field { display: flex; flex-direction: column; gap: 7px; color: #788478; font-size: 10px; }
.modal-field.full { grid-column: 1 / -1; }
.modal-field input, .modal-field textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e6ebe4; outline-color: #829984; color: #34473a; background: #fcfdfb; font-size: 11px; }
.modal-field textarea { min-height: 64px; resize: vertical; }
.modal-help { color: #929990; font-size: 9px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 19px; }
.button-light { border: 1px solid #e5e9e3; background: white; color: #728073; }
.button-save { padding: 0 18px; }

@media (max-width: 800px) {
  .topbar { height: 66px; padding: 0 22px; }
  .top-note { display: none; }
  .hero { min-height: 300px; margin-top: 22px; padding: 0 23px; grid-template-columns: .9fr 1.1fr; }
  .hero-copy { padding: 37px 16px 20px 0; }
  .hero-image { min-height: 285px; }
  .planner-section { margin-top: 41px; padding-right: 23px; padding-left: 23px; }
  .trip-form { grid-template-columns: 1fr 22px 1fr; gap: 12px; }
  .compact-field { grid-column: span 1; }
  .route-results, .hotel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate { grid-template-columns: 1fr 1.4fr; }
  .estimate-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; text-align: left; }
  .estimate-total > strong { margin-top: 0; }
  .admin-view { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 16px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .main-nav { gap: 17px; }
  .nav-link { font-size: 11px; }
  .hero { display: flex; flex-direction: column; margin-top: 10px; padding: 0 16px; }
  .hero-copy { padding: 28px 0 19px; }
  .hero h1 { margin: 13px 0 9px; font-size: 36px; line-height: 1.3; }
  .hero-copy p { margin: 0; font-size: 11px; }
  .hero-foot { margin-top: 15px; }
  .hero-image { min-height: 190px; border-radius: 3px 42px 3px 3px; }
  .planner-section { margin-top: 36px; padding: 0 16px 44px; }
  .section-heading, .hotel-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading h2, .results-heading h2, .hotel-heading h2 { font-size: 20px; }
  .section-heading p, .hotel-heading p { font-size: 10px; }
  .trip-form { grid-template-columns: 1fr 22px 1fr; gap: 10px 7px; padding: 14px 12px; }
  .field select { padding: 0 7px; font-size: 10px; }
  .compact-field:nth-last-child(2) { grid-column: 1 / 2; }
  .compact-field:last-child { grid-column: 3 / 4; }
  .route-arrow { font-size: 15px; }
  .results-heading { margin: 36px 0 14px; }
  .route-results, .hotel-grid { grid-template-columns: 1fr; gap: 10px; }
  .route-card { padding: 16px; }
  .hotel-heading { margin-top: 38px; }
  .hotel-photo { height: 174px; }
  .estimate { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .estimate-breakdown { justify-content: start; }
  .estimate-total { grid-column: auto; }
  .disclaimer { text-align: left; line-height: 1.6; }
  .admin-view { padding: 31px 15px 50px; }
  .admin-banner { align-items: start; flex-direction: column; gap: 14px; }
  .admin-banner h1 { font-size: 23px; }
  .admin-card { padding: 17px 13px 10px; }
  .admin-card-heading { align-items: start; gap: 10px; }
  .admin-card-heading h2 { font-size: 16px; }
  .admin-card-heading p { max-width: 220px; line-height: 1.6; }
  .admin-card-heading .button { min-width: 82px; padding: 0 8px; font-size: 10px; }
  footer { padding: 18px 16px; }
  footer > span { font-size: 7px; letter-spacing: .04em; }
  .modal { padding: 19px; }
  .modal-fields { grid-template-columns: 1fr; }
  .modal-field.full { grid-column: auto; }
}
