:root {
  --bg: #f3f8f5;
  --surface: #ffffff;
  --ink: #12302f;
  --muted: #5d706d;
  --line: #d9e5df;
  --primary: #065257;
  --accent: #ff8540;
  --blue: #1f7aa6;
  --shadow: 0 18px 45px rgba(11, 46, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select {
  padding: 0 10px;
  font-weight: 800;
}

input {
  width: min(460px, 100%);
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 31, 35, 0.86), rgba(3, 31, 35, 0.42), rgba(3, 31, 35, 0.1)),
    linear-gradient(0deg, rgba(3, 31, 35, 0.54), transparent 45%);
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  padding: 0 clamp(18px, 6vw, 76px) clamp(44px, 10vh, 92px);
  color: #fff;
}

.hero-content p:first-child,
.section-heading p,
.transfer p:first-child {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(46px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.actions,
.chips,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.chip,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary,
.chip.active {
  background: var(--accent);
  color: #1f1309;
}

.wa-button {
  gap: 8px;
}

.wa-button::before {
  content: "☎";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1fae58;
  color: #fff;
  font-size: 13px;
}

.button.secondary,
.chip,
.icon-button {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}

.section {
  padding: clamp(44px, 8vw, 86px) clamp(16px, 5vw, 64px);
}

.section.alt {
  background: #e9f3ef;
}

body.category-mode #home,
body.category-mode #transfer,
body.category-mode #places,
body.category-mode #tours {
  display: none;
}

.category-page {
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(180deg, rgba(235, 246, 241, 0.92), rgba(247, 250, 247, 1) 38%),
    radial-gradient(circle at 15% 15%, rgba(255, 133, 64, 0.12), transparent 28%);
}

.category-page[hidden] {
  display: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 20px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(11, 46, 48, 0.08);
}

.back-link::before {
  content: "<";
  margin-right: 8px;
}

.category-count {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 95, 115, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2,
.transfer h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.category-card,
.item-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(11, 46, 48, 0.08);
}

.clickable-card {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(255, 133, 64, 0.55);
  box-shadow: 0 16px 34px rgba(11, 46, 48, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.category-card {
  position: relative;
  min-height: 150px;
  cursor: pointer;
}

.category-card img,
.item-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.category-card img {
  height: 150px;
}

.category-card span {
  position: absolute;
  inset: auto 10px 10px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.category-card span {
  z-index: 1;
}

.toolbar {
  justify-content: space-between;
  margin: 18px 0;
}

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

.category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.category-list .item-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  min-height: 250px;
}

.category-list .item-card img {
  height: 100%;
}

.item-card img {
  height: 220px;
}

.item-body {
  padding: 16px;
}

.item-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.item-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.transfer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(6, 82, 87, 0.96), rgba(25, 118, 96, 0.94)),
    url("images/drawable/transfer.png") center / cover;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(6, 82, 87, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.transfer p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.transfer p:first-child {
  color: #ffd1b7;
}

.transfer .button.primary {
  min-width: 170px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.transfer .button.primary:hover {
  background: #fff4ec;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, auto);
  gap: 28px;
  align-items: start;
  padding: 34px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.site-footer p {
  max-width: 430px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.site-footer nav a,
.footer-contact a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.legal-page {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 84px) 0;
}

.legal-page h1 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.legal-page a {
  color: var(--primary);
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  box-shadow: 0 10px 22px rgba(11, 46, 48, 0.08);
}

.seo-links {
  background: #f8fbf8;
}

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

.seo-link-grid a {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(11, 46, 48, 0.08);
}

.seo-link-grid.inline {
  margin: 22px 0;
}

.seo-page {
  background: #f7faf7;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 7vw, 76px) clamp(16px, 5vw, 64px);
}

.seo-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-hero h1 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.seo-hero p:not(.meta),
.seo-content p,
.seo-content li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.seo-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(48px, 8vw, 88px);
}

.seo-content h2 {
  margin: 32px 0 12px;
  color: var(--primary);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

.seo-content ul {
  padding-left: 22px;
}

dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(7, 26, 28, 0.62);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 900;
}

.detail-gallery-stage {
  position: relative;
  background: #071a1c;
}

.detail-hero {
  width: 100%;
  height: min(46vh, 390px);
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.gallery-nav.prev {
  left: 14px;
}

.gallery-nav.next {
  right: 14px;
}

.detail-body {
  padding: 24px;
}

.detail-body h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0;
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-thumb {
  display: block;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.gallery-thumb img {
  height: 100%;
}

.subhead {
  margin: 18px 0 10px;
  color: var(--primary);
  font-size: 18px;
  letter-spacing: 0;
}

.included {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.included span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.photo-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050707;
  overflow: hidden;
}

.photo-dialog::backdrop {
  background: #050707;
}

.photo-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.photo-close,
.photo-nav,
.photo-counter {
  position: absolute;
  z-index: 3;
}

.photo-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  font-weight: 900;
}

.photo-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  cursor: pointer;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.photo-nav.prev {
  left: 18px;
}

.photo-nav.next {
  right: 18px;
}

.photo-counter {
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

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

  .seo-hero {
    grid-template-columns: 1fr;
  }

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

  .category-list .item-card {
    grid-template-columns: 1fr;
  }

  .category-list .item-card img {
    height: 220px;
  }

  .transfer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .category-grid,
  .card-grid,
  .gallery,
  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .item-card img {
    height: 190px;
  }

  .category-list .item-card img {
    height: 190px;
  }
}
