:root {
  --ink: #172026;
  --muted: #5c6972;
  --line: rgba(23, 32, 38, 0.13);
  --paper: #fbfaf6;
  --blue: #145f7c;
  --teal: #167164;
  --coral: #c95649;
  --night: #10212c;
  --shadow: 0 14px 34px rgba(18, 38, 48, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}
body.checkout-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 17px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
}
.brand-copy,
.brand span:last-child { display: flex; flex-direction: column; line-height: 1.04; }
.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .cart-button, .primary-button, .dark-button, .link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}
.danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 86, 73, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: #a83e35;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.nav a {
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.cart-button, .dark-button {
  gap: 8px;
  padding: 0 13px;
  border: 0;
  color: #fff;
  background: var(--night);
}
.cart-button span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
}
.primary-button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
}
.link-button {
  padding: 0 14px;
  color: var(--night);
  background: #fff;
  border: 1px solid var(--line);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 19, 28, 0.84), rgba(7, 19, 28, 0.36)),
    url("/assets/citypass/viber_image_2026-05-19_12-07-08-080.jpg") center / cover no-repeat;
}
.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 44px 0;
}
.hero-copy { width: min(640px, 100%); }
.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #d9b96a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
}
.hero p {
  max-width: 580px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.86);
  font-size: 16px;
}
.search-panel {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.55fr) auto;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
label { display: grid; gap: 6px; color: var(--ink); font-weight: 500; }
label span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
textarea { min-height: 92px; padding-top: 10px; resize: vertical; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 18px;
}
.metrics article {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.11);
}
.metrics strong { display: block; font-size: 22px; }
.metrics span { color: rgba(255,255,255,0.76); font-size: 12px; font-weight: 700; }

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 52px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-kicker { color: var(--teal); }
h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; }
.section-head p { max-width: 380px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.category-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.category-tabs a.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.offer-card, .panel, .steps article, .voucher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.offer-image { height: 158px; background: #eee center / cover no-repeat; }
.offer-body { display: grid; gap: 10px; padding: 16px; }
.offer-meta, .partner-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.offer-card h3 { margin-bottom: 0; font-size: 18px; line-height: 1.15; }
.offer-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.offer-footer, .total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { display: grid; }
.price small { color: var(--muted); font-size: 12px; text-decoration: line-through; font-weight: 800; }
.price strong { color: var(--coral); font-size: 19px; }
.workflow { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; }
.steps { display: grid; gap: 10px; }
.steps article { padding: 16px; box-shadow: none; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span, .note, .empty-state { color: var(--muted); font-size: 13px; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(8, 17, 23, 0.5);
}
.drawer.open { display: block; }
.drawer-panel {
  width: min(460px, calc(100% - 24px));
  height: calc(100% - 24px);
  margin: 12px 12px 12px auto;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border-radius: 10px;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 24px; }
.drawer-head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 22px;
}
.drawer-body { overflow: auto; display: grid; align-content: start; gap: 12px; padding: 18px; }
.cart-item { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item strong { display: block; }
.cart-item span { color: var(--muted); font-size: 12px; font-weight: 700; }
.cart-item button { border: 0; color: var(--coral); background: transparent; font-weight: 800; cursor: pointer; }

.page-shell { width: min(calc(100% - 32px), 900px); margin: 0 auto; padding: 38px 0; }
.panel { padding: 20px; margin-top: 16px; }
.form-grid { display: grid; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; align-items: start; }
.table-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-actions form { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.voucher-list { display: grid; gap: 12px; }
.voucher-card { padding: 16px; box-shadow: none; }
.voucher-code { font-size: 24px; font-weight: 900; letter-spacing: 0.06em; }
.status-unused { color: var(--teal); font-weight: 900; }
.status-used { color: var(--coral); font-weight: 900; }

@media (max-width: 880px) {
  .search-panel, .offers-grid, .workflow, .admin-grid { grid-template-columns: 1fr; }
  .section-head, .metrics { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar-inner { display: grid; padding: 14px 0; }
  .nav { flex-wrap: wrap; }
  .cart-button { width: 100%; }
  .hero { min-height: auto; }
  .section { padding: 40px 0; }
}

/* Marketplace home: cleaner travel-platform treatment inspired by search-first tour marketplaces. */
.marketplace-home {
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: rgba(31, 41, 51, 0.12);
  --blue: #0b6e69;
  --teal: #0b6e69;
  --coral: #ff5a1f;
  --night: #14213d;
  background: #fff;
}

.marketplace-home .topbar {
  background: #fff;
  border-bottom: 1px solid #edf0f2;
  backdrop-filter: none;
}

.marketplace-home .topbar-inner {
  min-height: 72px;
}

.marketplace-home .brand-mark {
  width: 34px;
  height: 34px;
  background: #0b6e69;
  border-radius: 7px;
  box-shadow: none;
}

.marketplace-home .brand-logo {
  width: 46px;
  height: 46px;
}

.marketplace-home .brand {
  font-size: 18px;
  font-weight: 650;
}

.marketplace-home .brand small {
  color: #697784;
}

.marketplace-home .nav a {
  color: #344450;
  font-size: 14px;
  font-weight: 800;
}

.marketplace-home .cart-button {
  color: var(--night);
  background: #fff;
  border: 1px solid #dfe5ea;
  box-shadow: none;
}

.marketplace-home .cart-button span {
  color: #fff;
  background: var(--coral);
}

.marketplace-home .marketplace-hero {
  min-height: 440px;
  color: var(--ink);
  background: linear-gradient(180deg, #f5fbfa 0%, #fff 78%);
  background-image: linear-gradient(180deg, #f5fbfa 0%, #fff 78%);
}

.marketplace-home .hero-inner {
  display: grid;
  justify-items: center;
  padding: 58px 0 38px;
  text-align: center;
}

.marketplace-home .hero-copy {
  width: min(820px, 100%);
}

.marketplace-home .eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
}

.marketplace-home h1 {
  max-width: 860px;
  margin: 0 auto 14px;
  color: #1f2933;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.marketplace-home .hero p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #52606d;
  font-size: 17px;
}

.marketplace-home .search-panel {
  width: min(860px, 100%);
  grid-template-columns: minmax(260px, 1fr) 220px 132px;
  gap: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.13);
}

.marketplace-home .search-panel label {
  gap: 2px;
  padding: 8px 18px;
  border-right: 1px solid #edf0f2;
  text-align: left;
}

.marketplace-home .search-panel label:nth-child(2) {
  border-right: 0;
}

.marketplace-home .search-panel input,
.marketplace-home .search-panel select {
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
}

.marketplace-home .search-panel .primary-button {
  min-height: 52px;
  border-radius: 999px;
  background: var(--coral);
  font-size: 15px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.quick-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #344450;
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.admin-page {
  --paper: #f6f7f9;
  --ink: #202830;
  --muted: #66717c;
  --line: rgba(32, 40, 48, 0.11);
  background: var(--paper);
  font-weight: 400;
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page strong,
.admin-page .brand {
  font-weight: 550;
}

.admin-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0;
}

.admin-page .topbar {
  background: #fff;
  border-bottom: 1px solid #e7ebef;
  backdrop-filter: none;
}

.admin-page .topbar-inner {
  max-width: none;
  width: min(calc(100% - 32px), 1380px);
}

.admin-page .brand-logo {
  width: 40px;
  height: 40px;
}

.admin-shell {
  width: min(calc(100% - 32px), 1380px);
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
}

.admin-sidebar-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 22px;
  padding: 18px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fff;
}

.admin-sidebar-panel h1,
.admin-titlebar h1 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.12;
}

.admin-side-nav {
  display: grid;
  gap: 4px;
}

.admin-side-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #34424f;
  font-size: 14px;
  font-weight: 500;
}

.admin-side-nav a:hover {
  background: #f1f4f7;
}

.admin-main {
  display: grid;
  gap: 16px;
}

.admin-titlebar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-titlebar {
  padding: 2px 0 8px;
}

.admin-titlebar .link-button {
  background: #fff;
}

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

.stat-grid article {
  padding: 16px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fff;
}

.stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-grid strong {
  font-size: 24px;
}

.admin-page .panel {
  margin-top: 0;
  border-color: #e2e8ee;
  border-radius: 12px;
  box-shadow: none;
}

.admin-page .section-kicker {
  color: #0b6e69;
  font-weight: 600;
}

.admin-page h2 {
  font-size: 22px;
}

.admin-form-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

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

.admin-page input,
.admin-page select,
.admin-page textarea {
  border-color: #d7dee5;
}

.admin-page input[type="file"] {
  padding: 9px 11px;
}

.admin-thumb {
  width: 58px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f4;
}

.admin-preview {
  width: 180px;
  height: 128px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8ee;
  background: #eef1f4;
}

.image-edit-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
}

.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #eef1f4;
  color: #50606f;
}

.status-pill.active {
  color: #0b6e69;
  background: #e5f3ef;
}

.status-pill.paused {
  color: #8a5a00;
  background: #fff3d6;
}

.admin-page table {
  font-size: 13px;
}

.admin-page td {
  color: #27333d;
}

.admin-page .primary-button {
  background: #0b6e69;
}

.admin-page .danger-button,
.admin-page .link-button,
.admin-page .dark-button {
  font-weight: 500;
}

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

  .admin-sidebar-panel {
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .admin-form-columns,
  .image-edit-row {
    grid-template-columns: 1fr;
  }
}

.marketplace-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 28px;
}

.marketplace-strip article {
  padding: 18px;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
}

.marketplace-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

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

.marketplace-home .section {
  padding: 42px 0;
}

.marketplace-home .section-head {
  align-items: start;
}

.marketplace-home .section-kicker {
  color: var(--coral);
}

.marketplace-home h2 {
  font-size: clamp(24px, 2.7vw, 34px);
}

.marketplace-home .category-tabs {
  gap: 10px;
}

.marketplace-home .category-tabs a {
  min-height: 40px;
  padding: 0 16px;
  color: #344450;
  border-color: #dfe5ea;
  background: #fff;
}

.marketplace-home .category-tabs a.active {
  color: #fff;
  border-color: #14213d;
  background: #14213d;
}

.marketplace-home .offers-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.marketplace-home .offer-card {
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  box-shadow: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.marketplace-home .offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 33, 61, 0.12);
}

.marketplace-home .offer-image {
  height: 176px;
}

.marketplace-home .offer-body {
  gap: 9px;
  padding: 14px;
}

.marketplace-home .offer-meta,
.marketplace-home .partner-line {
  font-size: 12px;
}

.marketplace-home .offer-card h3 {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.28;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #5f6b76;
  font-size: 12px;
}

.rating-line strong {
  color: #0b6e69;
}

.marketplace-home .offer-card p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.marketplace-home .offer-footer {
  align-items: end;
  margin-top: 4px;
}

.marketplace-home .price span {
  color: #5f6b76;
  font-size: 11px;
  font-weight: 800;
}

.marketplace-home .price strong {
  color: #1f2933;
  font-size: 18px;
}

.marketplace-home .dark-button {
  min-height: 36px;
  color: #fff;
  background: #14213d;
}

.marketplace-home .workflow {
  display: none;
}

@media (max-width: 1080px) {
  .marketplace-home .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .marketplace-home .search-panel,
  .marketplace-strip {
    grid-template-columns: 1fr;
  }

  .marketplace-home .search-panel {
    border-radius: 18px;
  }

  .marketplace-home .search-panel label {
    border-right: 0;
    border-bottom: 1px solid #edf0f2;
  }

  .marketplace-home .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .marketplace-home .topbar-inner {
    gap: 12px;
  }

  .marketplace-home .nav {
    gap: 6px;
  }

  .marketplace-home .nav a {
    font-size: 13px;
  }

  .marketplace-home .cart-button {
    width: auto;
  }

  .marketplace-home .hero-inner {
    padding: 42px 0 26px;
  }

  .marketplace-home h1 {
    font-size: 34px;
  }

  .marketplace-home .offers-grid {
    grid-template-columns: 1fr;
  }
}
