:root {
  color-scheme:light;
  --ink:#17171b;
  --muted:#53535d;
  --soft:#f5f5f7;
  --line:#e5e5ea;
  --paper:#fff;
  --accent:#0059bd;
  --accent-dark:#004a9e;
  --accent-bg:#edf5ff;
  --radius:1.4rem;
  --shell:1184px;
  font:16px/1.55 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}

*,*::before,*::after {
  box-sizing:border-box;
}

html {
  scroll-padding-top:70px;
}

body {
  margin:0;
  background:var(--soft);
  color:var(--ink);
}

a {
  color:inherit;
  text-decoration:none;
}

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

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

:focus-visible {
  outline:3px solid #2b80df;
  outline-offset:3px;
}

h1,h2,h3,p,dl,dd {
  margin:0;
}

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

.shell {
  width:min(calc(100% - 64px),var(--shell));
  margin-inline:auto;
}

.visually-hidden,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.skip:focus {
  position:fixed;
  inset:12px auto auto 12px;
  z-index:10;
  padding:12px;
  background:white;
  border-radius:8px;
}

.site-header {
  position:sticky;
  top:0;
  z-index:3;
  background:rgb(250 250 252 / .94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px);
}

.header-inner {
  height:57px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:26px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:9px;
  justify-self:start;
  font-size:20px;
  font-weight:850;
  letter-spacing:-.07em;
}

.brand img {
  border-radius:9px;
}

nav {
  display:flex;
  gap:31px;
  font-size:.9rem;
  font-weight:750;
  color:var(--muted);
}

nav a:hover {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:4px;
}

.snapshot {
  justify-self:end;
  white-space:nowrap;
  font-size:.8rem;
  color:var(--muted);
  letter-spacing:-.01em;
}

.hero {
  margin-top:24px;
  min-height:clamp(14rem,22vw,17rem);
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  gap:8px 24px;
  padding:clamp(22px,3.5vw,44px);
  border-radius:var(--radius);
  background:#15283b url("/tripdogam-world-travel.jpg") center 47%/cover no-repeat;
  color:#fff;
}

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgb(8 22 35 / .93),rgb(8 22 35 / .74) 32%,rgb(8 22 35 / .12) 68%,transparent 85%);
}

.hero h1 {
  grid-column:1;
  font-size:clamp(2.25rem,4.15vw,3.45rem);
  line-height:1.08;
  letter-spacing:-.075em;
  font-weight:820;
  text-shadow:0 2px 14px #08162380;
  word-break:keep-all;
}

.hero p {
  font-size:1rem;
  line-height:1.65;
  color:#eef3fa;
  letter-spacing:-.035em;
  word-break:keep-all;
}

.hero-button {
  display:inline-flex;
  margin-top:14px;
  min-height:43px;
  align-items:center;
  border-radius:99px;
  padding:0 16px;
  background:var(--paper);
  color:#172c44;
  font-size:.9rem;
  font-weight:800;
}

.hero-button:hover {
  background:#eaf3ff;
  color:var(--accent-dark);
}

.hero-stats {
  grid-column:2;
  grid-row:1 / span 2;
  display:flex;
  align-self:end;
  gap:17px;
  padding:12px 15px;
  border-radius:13px;
  border:1px solid #ffffff64;
  background:#15283bb8;
  backdrop-filter:blur(9px);
  white-space:nowrap;
}

.hero-stats div {
  display:grid;
  gap:1px;
  min-width:68px;
  padding-inline:4px;
}

.hero-stats div+div {
  border-left:1px solid #ffffff5b;
  padding-left:16px;
}

.hero-stats strong {
  font-size:1.3rem;
  line-height:1.15;
  font-variant-numeric:tabular-nums;
}

.hero-stats span {
  font-size:.75rem;
  color:#eef3fa;
}

.section {
  margin-top:32px;
}

.markets {
  margin-top:33px;
}

.search-field {
  position:relative;
  display:block;
  min-width:0;
}

.search-field input {
  display:block;
  width:100%;
  height:37px;
  border:1px solid var(--line);
  border-radius:11px;
  background:white;
  padding:0 12px 0 38px;
  font-size:.88rem;
}

.search-icon {
  position:absolute;
  left:15px;
  top:10px;
  width:13px;
  height:13px;
  border:1.6px solid var(--muted);
  border-radius:50%;
  pointer-events:none;
}

.search-icon::after {
  content:"";
  width:7px;
  height:1.6px;
  position:absolute;
  transform:rotate(45deg);
  top:10px;
  left:9px;
  background:var(--muted);
  border-radius:2px;
}

.filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  align-items:center;
  justify-content:space-between;
}

.market-tools {
  display:flex;
  gap:8px;
  max-width:100%;
}

.chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.chip {
  min-height:37px;
  border:1px solid var(--line);
  background:white;
  border-radius:99px;
  padding:5px 13px;
  font-size:.85rem;
  font-weight:750;
  white-space:nowrap;
}

.chip[aria-pressed="true"] {
  background:var(--accent-bg);
  border-color:#bbd4ef;
  color:var(--accent-dark);
}

.chip[aria-pressed="false"]:hover {
  border-color:#a7c3e4;
}

.order {
  position:relative;
  flex:none;
}

.order::after {
  content:"";
  position:absolute;
  right:15px;
  top:14px;
  width:7px;
  height:7px;
  border:solid var(--muted);
  border-width:0 1.6px 1.6px 0;
  transform:rotate(45deg);
  pointer-events:none;
}

.order select {
  height:37px;
  border:1px solid var(--line);
  border-radius:9px;
  appearance:none;
  background:white;
  padding:4px 32px 4px 11px;
  font-size:.85rem;
}

.result-count {
  font-size:.82rem;
  color:var(--muted);
  margin:13px 0 9px;
}

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

.market-card {
  display:grid;
  grid-template-rows:1fr auto;
  gap:10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  box-shadow:0 2px 6px #17171b06;
  padding:15px 15px 13px;
  min-width:0;
}

.market-detail {
  display:grid;
  align-content:start;
  gap:8px;
  min-width:0;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  text-align:left;
}

.market-top,.market-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.market-top h3 {
  font-weight:850;
  font-size:1.19rem;
  letter-spacing:-.06em;
}

.market-top span,.market-foot {
  font-size:.77rem;
  color:var(--muted);
  white-space:nowrap;
}

.market-cities {
  font-size:.8rem;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}

.market-price {
  display:flex;
  justify-content:space-between;
  gap:6px;
  align-items:end;
  margin-top:2px;
}

.market-price p {
  color:var(--muted);
  font-size:.74rem;
  margin-bottom:2px;
  white-space:nowrap;
}

.market-trend {
  display:grid;
  justify-items:end;
  gap:3px;
  min-width:0;
  flex:0 0 38%;
  font-size:.68rem;
  line-height:1.1;
  color:var(--muted);
}

.market-trend span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}

.market-foot {
  border-top:1px solid var(--line);
  padding-top:8px;
}

.market-open {
  color:var(--accent-dark);
  font-weight:750;
}

.empty {
  grid-column:1/-1;
  padding:28px 14px;
  text-align:center;
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
}

.empty .chip {
  margin-top:12px;
}

.method {
  margin:40px 0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  padding:22px;
}

.method h2 {
  font-size:1.35rem;
  letter-spacing:-.05em;
  line-height:1.3;
}

.method p {
  max-width:68ch;
  margin-top:8px;
}

.method h3 {
  margin:20px 0 8px;
  font-size:1rem;
}

.method dl {
  display:grid;
  gap:10px;
}

.method dl div {
  display:grid;
  grid-template-columns:126px 1fr;
  gap:6px 12px;
}

.method dt {
  font-size:.87rem;
  font-weight:800;
}

.method p,.method dd,.disclosure {
  font-size:.85rem;
  color:var(--muted);
}

.disclosure {
  margin-top:13px;
}

.site-footer {
  background:#fafafc;
  border-top:1px solid var(--line);
  padding:18px 0;
}

.footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.83rem;
}

dialog {
  border:1px solid var(--line);
  padding:0;
  width:min(940px,calc(100% - 28px));
  max-height:88vh;
  max-height:88dvh;
  color:var(--ink);
  border-radius:20px;
  background:white;
  box-shadow:0 18px 80px #172c443d;
}

dialog::backdrop {
  background:#121b34a0;
}

.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:12px;
  padding:19px 23px;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.dialog-top h2 {
  font-size:1.55rem;
  letter-spacing:-.075em;
}

.dialog-top p {
  font-size:.85rem;
  color:var(--muted);
}

.close-button {
  width:39px;
  height:39px;
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:9px;
  font-size:1.45rem;
  line-height:1;
}

.dialog-body {
  padding:18px 23px 22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(235px,34%);
  gap:17px;
}

.product-detail {
  min-width:0;
}

.product-description {
  color:var(--muted);
  font-size:.85rem;
  margin-bottom:5px;
}

.product-detail h3 {
  font-size:1.15rem;
  line-height:1.4;
  overflow-wrap:anywhere;
  letter-spacing:-.045em;
}

.product-prices {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:baseline;
  margin-top:8px;
}

.product-prices strong {
  color:var(--accent-dark);
  font-size:1.55rem;
  letter-spacing:-.065em;
}

.product-prices span {
  color:var(--muted);
  font-size:.81rem;
}

.chart-box {
  border:1px solid var(--line);
  border-radius:13px;
  margin:13px 0;
  padding:12px;
}

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

.chart-head h4 {
  margin:0;
  font-size:.94rem;
  letter-spacing:-.038em;
}

.chart-subtitle {
  font-size:.77rem;
  color:var(--muted);
}

.chart-windows {
  gap:4px;
}

.chart-windows .chip {
  min-height:30px;
  padding:3px 7px;
  font-size:.76rem;
}

.chart-canvas {
  width:100%;
  height:151px;
  display:block;
  touch-action:pan-y;
}

.chart-inspect {
  display:grid;
  gap:3px;
  margin-top:3px;
  font-size:.78rem;
  color:var(--muted);
}

.chart-inspect input {
  width:100%;
  margin:0;
  accent-color:var(--accent);
}

.chart-inspect output {
  font-weight:750;
  color:var(--ink);
  min-height:1.4em;
}

.chart-empty {
  padding:12px 0;
  color:var(--muted);
  font-size:.88rem;
}

.links {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.links a {
  display:inline-flex;
  min-height:38px;
  align-items:center;
  border:1px solid var(--line);
  background:#f6f7fa;
  border-radius:8px;
  padding:5px 11px;
  font-size:.85rem;
  font-weight:740;
  color:var(--accent-dark);
}

.links a:hover {
  background:var(--accent-bg);
}

.dialog-disclosure {
  font-size:.78rem;
  color:var(--muted);
  margin-top:7px;
}

.product-list-wrap {
  border-left:1px solid var(--line);
  padding-left:14px;
  min-width:0;
}

.product-list-wrap h3 {
  font-size:.95rem;
  margin-bottom:8px;
}

.city-select {
  margin-bottom:8px;
}

.city-select .chip {
  font-size:.77rem;
  min-height:31px;
  padding:4px 8px;
}

.product-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
  max-height:325px;
  overflow:auto;
  overscroll-behavior:contain;
}

.product-list button {
  display:grid;
  gap:2px;
  text-align:left;
  width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  padding:7px 9px;
}

.product-list button[aria-pressed="true"] {
  border-color:#adc9e9;
  background:var(--accent-bg);
}

.product-list .item-title {
  font-size:.8rem;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.product-list small {
  color:var(--muted);
  font-size:.74rem;
}

@media(max-width:1000px) {
  .market-grid {
      grid-template-columns:repeat(3,minmax(0,1fr));
    }

  .shell {
      width:calc(100% - 42px);
    }
}

@media(max-width:750px) {
  .market-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }

  .header-inner {
      grid-template-columns:auto 1fr;
      gap:10px;
    }

  nav {
      justify-content:end;
      gap:14px;
    }

  .snapshot {
      display:none;
    }

  .hero {
      padding:24px;
    }

  .hero-stats {
      gap:9px;
    }

  .hero-stats div {
      min-width:52px;
    }

  .hero-stats div+div {
      padding-left:9px;
    }
}

@media(max-width:535px) {
  .shell {
      width:calc(100% - 28px);
    }

  .header-inner {
      height:57px;
    }

  .brand {
      font-size:17px;
      gap:6px;
    }

  .brand img {
      height:28px;
      width:28px;
    }

  nav {
      gap:12px;
      font-size:.77rem;
    }

  .hero {
      margin-top:14px;
      min-height:0;
      grid-template-columns:minmax(0,1fr);
      gap:0;
      padding:0;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:var(--paper);
    }

  .hero::before {
      display:none;
    }

  .hero h1 {
      display:flex;
      align-items:end;
      min-height:clamp(84px,23vw,120px);
      padding:10px 16px;
      font-size:clamp(1.55rem,6.4vw,2.08rem);
      background:linear-gradient(0deg,rgb(8 22 35 / .82),transparent 96%),
        #15283b url("/tripdogam-world-travel.jpg") center 47%/cover no-repeat;
    }

  .hero-copy {
      padding:12px 16px;
    }

  .hero p {
      font-size:.87rem;
      color:var(--muted);
    }

  .hero-button {
      min-height:34px;
      margin-top:8px;
      padding-inline:12px;
      background:var(--accent-bg);
      color:var(--accent-dark);
      font-size:.8rem;
    }

  .hero-stats {
      display:none;
    }

  .section,.markets {
      margin-top:26px;
    }

  .filter-row {
      gap:7px;
    }

  .market-tools {
      width:100%;
    }

  .search-field {
      flex:1;
    }

  .chips {
      gap:5px;
    }

  .chip {
      font-size:.78rem;
      padding-inline:8px;
    }

  .market-grid {
      gap:7px;
    }

  .market-card {
      padding:10px 9px;
      gap:8px;
    }

  .market-detail {
      gap:6px;
    }

  .market-card > .booking {
      padding-inline:5px;
      font-size:.79rem;
    }

  .market-top h3 {
      font-size:1.02rem;
    }

  .market-top span,.market-foot {
      font-size:.7rem;
    }

  .market-cities {
      font-size:.73rem;
    }

  .method {
      margin:28px 0;
      padding:14px;
    }

  .method dl div {
      grid-template-columns:1fr;
      gap:2px;
    }

  .dialog-top {
      padding:12px;
    }

  .dialog-body {
      grid-template-columns:1fr;
      padding:12px;
      gap:10px;
    }

  .product-list-wrap {
      border-left:0;
      border-top:1px solid var(--line);
      padding:9px 0 0;
    }

  .product-list {
      max-height:205px;
    }

  .chart-box {
      padding:8px;
    }

  .chart-canvas {
      height:133px;
    }
}

@media(prefers-reduced-motion:no-preference) {
  button,a {
      transition:background-color .15s,border-color .15s,box-shadow .15s;
    }
}

.mobile-date {
  display:none;
}

@media(max-width:750px) {
  .mobile-date {
      display:block;
      font-size:.75rem;
      color:#eef3fa;
      margin-top:5px;
    }
}

@media(max-width:535px) {
  .mobile-date {
      display:inline-block;
      margin:0 0 0 6px;
      color:var(--muted);
    }

  .market-trend {
      font-size:.61rem;
      flex-basis:35%;
    }
}

.page-disclosure {
  display: block;
  margin: 11px 0 0;
  padding-inline: 2px;
  font-size: .8rem;
}

.market-trend span {
  white-space: normal;
  overflow: visible;
}

.card-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 7px;
}

.detail-button, .booking, .links .booking {
  display: inline-flex;
  min-height: 39px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent-dark);
  padding: 5px 10px;
  font-size: .86rem;
  font-weight: 780;
}

.booking, .links .booking {
  border-color: #cbdff5;
  background: var(--accent-bg);
  color: var(--accent-dark);
}

.booking:hover, .links .booking:hover {
  border-color: #a7c3e4;
  background: #deedff;
}

.market-image {
  display: block;
  overflow: hidden;
  background: #e4edf7 url("/tripdogam-world-travel.jpg") center / cover no-repeat;
  width: 100%;
  height: 91px;
  border-radius: 10px;
  margin-bottom: 2px;
}

.market-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.product-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 4px;
}

.product-list .booking {
  font-size: .73rem;
  padding-inline: 6px;
  min-height: 0;
}

@media (max-width: 620px) {
  .market-image {
      height: 76px;
    }

  .market-trend {
      grid-template-columns: minmax(0, 1fr) minmax(42px, 36%);
    }
}

@media (max-width: 360px) {
  .market-grid { grid-template-columns: minmax(0, 1fr); }
}
