/* Tourism page styles. Shared header, typography tokens, and accessibility
   controls come from the existing ONECAINTA stylesheets. */
.tourism-page {
  background: var(--rice);
}

.tourism-page main {
  display: block;
}

.tourism-page figure,
.tourism-page p {
  margin-top: 0;
}

.tourism-wide {
  max-width: 1200px;
  margin: 0 auto;
}

.tourism-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.tourism-btn:hover {
  transform: translateY(-2px);
}

.tourism-btn-primary {
  color: var(--ink);
  background: var(--gold);
}

.tourism-btn-primary:hover {
  background: #f2c35d;
}

.tourism-btn-outline {
  border-color: rgba(247, 239, 221, 0.55);
  color: var(--rice);
  background: transparent;
}

.tourism-btn-outline:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

/* Hero */
.tourism-hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 6vw 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 26, 38, 0.62), rgba(15, 26, 38, 0.9)),
    url("/images/tourism/diocesan-shrine-parish.jpg") center 38% / cover no-repeat;
}

.tourism-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.tourism-hero .eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--gold);
  opacity: 1;
}

.tourism-hero h1 {
  color: var(--rice);
  font-size: clamp(2.7rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.tourism-hero h1 em {
  color: var(--gold);
}

.tourism-hero p {
  max-width: 52ch;
  margin: 1.4rem auto 0;
  color: rgba(247, 239, 221, 0.92);
  font-size: 1.15rem;
}

.tourism-hero .tourism-btn {
  margin-top: 2.4rem;
}

.tourism-hero-float {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 172, 61, 0.34), transparent 70%);
  pointer-events: none;
}

.tourism-hero-float.f1 { width: 220px; height: 220px; top: 8%; left: 6%; }
.tourism-hero-float.f2 { width: 160px; height: 160px; right: 8%; bottom: 10%; }

/* Welcome */
.tourism-welcome { background: var(--rice); }

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.welcome-text .eyebrow {
  display: block;
  margin-bottom: 0.9rem;
}

.welcome-text h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.welcome-text p {
  max-width: 58ch;
  color: rgba(22, 35, 47, 0.82);
}

.welcome-text p + p { margin-top: 1rem; }

.welcome-media {
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(59, 36, 24, 0.22);
}

.welcome-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 480px;
  object-fit: cover;
}

/* Destinations */
.tourism-explore { background: #fbfaf4; }

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.dest-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(59, 36, 24, 0.06);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(59, 36, 24, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(59, 36, 24, 0.18);
}

.dest-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.dest-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dest-card:hover .dest-media img { transform: scale(1.06); }

.dest-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 1.7rem;
}

.dest-cat {
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dest-cat--history { color: var(--blue-dark); background: rgba(27, 79, 145, 0.1); }
.dest-cat--religious { color: var(--devotion); background: rgba(140, 28, 36, 0.1); }
.dest-cat--monument { color: var(--clay-dark); background: rgba(181, 80, 45, 0.12); }
.dest-cat--recreation { color: var(--leaf-dark); background: rgba(35, 74, 66, 0.12); }

.dest-card h3 { font-size: 1.25rem; }
.dest-card p { flex: 1; color: rgba(22, 35, 47, 0.75); font-size: 0.95rem; }

.dest-loc {
  color: #52677d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.dest-link {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--blue-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.dest-link:hover { color: var(--gold-dark); }

.dest-card.is-placeholder .dest-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
}

.dest-card.is-placeholder .dest-media svg {
  width: 46px;
  height: 46px;
  color: rgba(246, 244, 236, 0.76);
}

.dest-card.is-placeholder .dest-media span {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  color: rgba(246, 244, 236, 0.88);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* Culture and featured festival */
.tourism-culture { background: var(--rice); }
.tourism-culture .timeline { max-width: 760px; margin: 0 auto; }
.tourism-culture .tl-item a { color: var(--blue-dark); text-decoration-thickness: 1px; }
.tourism-culture .tl-item a:hover { color: var(--gold-dark); }

.tourism-sumbingtik {
  color: var(--rice);
  background: linear-gradient(180deg, var(--molasses), #2a1710);
}

.sumbingtik-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.tourism-sumbingtik .eyebrow,
.tourism-taste .eyebrow,
.tourism-gallery .eyebrow {
  color: var(--gold);
  opacity: 1;
}

.tourism-sumbingtik h2 {
  margin: 0.8rem 0 1.2rem;
  color: var(--rice);
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.tourism-sumbingtik p {
  max-width: 54ch;
  color: rgba(247, 239, 221, 0.85);
}

.tourism-sumbingtik .banner-rotator { max-width: 100%; margin: 0; }

.tourism-sumbingtik .banner-dots .dot {
  min-height: 8px;
  padding: 0;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.delicacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.8rem;
}

.delicacy-tags span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(227, 172, 61, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Food */
.tourism-taste { color: var(--rice); background: var(--ink); }
.tourism-taste .section-head h2 { color: var(--rice); }

.taste-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.biz-card {
  overflow: hidden;
  border: 1px solid rgba(247, 239, 221, 0.12);
  border-radius: 14px;
  background: rgba(247, 239, 221, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.biz-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32); }
.biz-media { height: 180px; overflow: hidden; }
.biz-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.biz-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
}

.biz-media.is-placeholder svg { width: 40px; height: 40px; color: rgba(246, 244, 236, 0.76); }
.biz-body { padding: 1.4rem 1.5rem 1.7rem; }
.biz-cat { color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.biz-card h3 { margin: 0.5rem 0; color: var(--rice); font-size: 1.15rem; }
.biz-card p { margin-bottom: 0; color: rgba(247, 239, 221, 0.75); font-size: 0.92rem; }

/* Activities */
.tourism-todo { background: #fbfaf4; }

.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.todo-card {
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(59, 36, 24, 0.06);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 20px rgba(59, 36, 24, 0.08);
  text-align: left;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.todo-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(59, 36, 24, 0.15); }

.todo-icon,
.visit-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--clay-dark);
  background: rgba(227, 172, 61, 0.15);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.todo-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.todo-card p { margin: 0; color: rgba(22, 35, 47, 0.7); font-size: 0.88rem; }

/* Gallery and lightbox */
.tourism-gallery { color: var(--rice); background: var(--deep-navy); }
.tourism-gallery .section-head h2 { color: var(--rice); }

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible { background: transparent; box-shadow: none; transform: none; }
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); filter: brightness(0.84); }

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem 0.9rem 0.7rem;
  color: var(--rice);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  opacity: 0;
  text-align: left;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; }

.lightbox {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(10, 16, 22, 0.93);
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-content { position: relative; width: 100%; max-width: 900px; max-height: 88vh; }
.lightbox-content img { display: block; width: 100%; height: 100%; max-height: 78vh; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox-caption { margin: 0.9rem 0 0; color: rgba(246, 244, 236, 0.85); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; text-align: center; }

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(247, 239, 221, 0.25);
  border-radius: 50%;
  color: var(--rice);
  background: rgba(247, 239, 221, 0.1);
  box-shadow: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close:hover { color: var(--ink); background: var(--gold); transform: none; }

/* Visitor information and CTA */
.tourism-visit { background: var(--rice); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.visit-card {
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(59, 36, 24, 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(59, 36, 24, 0.08);
}

.visit-icon { color: var(--blue-dark); background: rgba(27, 79, 145, 0.1); }
.visit-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.visit-card p,
.visit-card ul { color: rgba(22, 35, 47, 0.72); font-size: 0.9rem; }
.visit-card p { margin-bottom: 0; }
.visit-card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.visit-card li { margin-bottom: 0.3rem; }

.tourism-cta {
  position: relative;
  padding: 7rem 6vw;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 26, 38, 0.68), rgba(15, 26, 38, 0.92)),
    url("/images/tourism/sumbingtik-festival.jpg") center / cover no-repeat;
}

.tourism-cta h2 { color: var(--rice); font-size: clamp(2rem, 4.4vw, 3rem); }
.tourism-cta p { max-width: 52ch; margin: 1.1rem auto 2rem; color: rgba(247, 239, 221, 0.9); font-size: 1.08rem; }

/* Keep the shared modern UI from recoloring the tourism art direction. */
body.oc-ui.tourism-page .tourism-hero h1,
body.oc-ui.tourism-page .tourism-sumbingtik h2,
body.oc-ui.tourism-page .tourism-taste h2,
body.oc-ui.tourism-page .tourism-taste h3,
body.oc-ui.tourism-page .tourism-gallery h2,
body.oc-ui.tourism-page .tourism-cta h2 { color: var(--rice); }

body.oc-ui.tourism-page .resident-site-footer { margin-top: 0; }

/* Align Tourism with the blue, white, and teal ONECAINTA resident portal. */
.tourism-page {
  color: var(--oc-text, #34475c);
  background: var(--oc-page, #eef4fa);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tourism-page h1,
.tourism-page h2,
.tourism-page h3,
.tourism-page .tourism-btn,
.tourism-page .dest-cat,
.tourism-page .dest-loc,
.tourism-page .dest-link,
.tourism-page .biz-cat,
.tourism-page .gallery-caption,
.tourism-page .lightbox-caption {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tourism-btn {
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(9, 55, 101, 0.18);
}

.tourism-btn-primary {
  color: #fff;
  background: var(--oc-primary-600, #1971c2);
}

.tourism-btn-primary:hover {
  color: #fff;
  background: var(--oc-primary-700, #155b9d);
  box-shadow: 0 12px 24px rgba(9, 55, 101, 0.25);
}

.tourism-btn-outline {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
}

.tourism-btn-outline:hover {
  border-color: #79ddd2;
  color: #0b315f;
  background: #79ddd2;
}

.tourism-hero {
  background:
    linear-gradient(115deg, rgba(7, 38, 74, 0.95), rgba(16, 71, 127, 0.86) 60%, rgba(21, 91, 157, 0.72)),
    url("/images/tourism/diocesan-shrine-parish.jpg") center 38% / cover no-repeat;
}

.tourism-hero h1 em { color: #79ddd2; font-style: normal; }
.tourism-hero .eyebrow { color: #9ce8e0; }
.tourism-hero-float { background: radial-gradient(circle, rgba(121, 221, 210, 0.3), transparent 70%); }

.tourism-welcome,
.tourism-visit { background: #fff; }
.tourism-explore,
.tourism-todo { background: var(--oc-primary-50, #f3f8ff); }
.tourism-culture { background: var(--oc-page, #eef4fa); }

.welcome-media {
  border: 5px solid #fff;
  box-shadow: var(--oc-shadow-lg, 0 28px 70px rgba(9, 37, 68, 0.2));
}

.dest-card,
.todo-card,
.visit-card {
  border-color: var(--oc-line, #dce5ef);
  background: #fff;
  box-shadow: var(--oc-shadow-sm, 0 5px 18px rgba(15, 47, 82, 0.08));
}

.dest-card:hover,
.todo-card:hover {
  box-shadow: var(--oc-shadow-md, 0 16px 42px rgba(15, 47, 82, 0.13));
}

.dest-cat { border-radius: 999px; font-weight: 800; }
.dest-cat--history,
.dest-cat--religious,
.dest-cat--monument {
  color: var(--oc-primary-800, #10477f);
  background: var(--oc-primary-100, #e7f2ff);
}
.dest-cat--recreation {
  color: #08776d;
  background: var(--oc-accent-soft, #e1f7f3);
}
.dest-link { color: var(--oc-primary-700, #155b9d); font-weight: 800; }
.dest-link:hover { color: #08776d; }
.dest-card.is-placeholder .dest-media,
.biz-media.is-placeholder { background: linear-gradient(135deg, #155b9d, #0f9f8f); }

.tourism-culture .timeline {
  max-width: 860px;
  padding: clamp(1.7rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem) clamp(1.7rem, 4vw, 3rem) clamp(3.8rem, 7vw, 5rem);
  border: 1px solid var(--oc-line, #dce5ef);
  border-radius: var(--oc-radius-lg, 24px);
  background: #fff;
  box-shadow: var(--oc-shadow-md, 0 16px 42px rgba(15, 47, 82, 0.13));
}
.tourism-culture .tl-item a { color: var(--oc-primary-700, #155b9d); font-weight: 750; }
.tourism-culture .tl-item a:hover { color: #08776d; }

.tourism-sumbingtik {
  background:
    radial-gradient(circle at 90% 10%, rgba(121, 221, 210, 0.16), transparent 34%),
    linear-gradient(135deg, #0b315f, #10477f);
}
.tourism-sumbingtik .eyebrow,
.tourism-taste .eyebrow,
.tourism-gallery .eyebrow { color: #79ddd2; }
.tourism-sumbingtik .banner-rotator {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 54px rgba(2, 21, 43, 0.34);
}
.delicacy-tags span { border-color: rgba(121, 221, 210, 0.55); color: #9ce8e0; }

.tourism-taste {
  color: #fff;
  background: linear-gradient(135deg, #0b315f, #155b9d);
}
.biz-card {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}
.biz-cat { color: #79ddd2; font-weight: 800; }
.biz-card h3 { color: #fff; }
.biz-card p { color: rgba(255, 255, 255, 0.78); }

.todo-icon,
.visit-icon {
  color: var(--oc-primary-800, #10477f);
  background: var(--oc-primary-100, #e7f2ff);
}

.tourism-gallery { color: #fff; background: #10477f; }
.gallery-item { border: 3px solid rgba(255, 255, 255, 0.14); border-radius: 14px; }
.gallery-caption { color: #fff; }
.lightbox-close:hover { color: #0b315f; background: #79ddd2; }

.tourism-cta {
  background:
    linear-gradient(115deg, rgba(7, 38, 74, 0.93), rgba(21, 91, 157, 0.78)),
    url("/images/tourism/sumbingtik-festival.jpg") center / cover no-repeat;
}
.tourism-cta h2 { color: #fff; }
.tourism-cta p { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 900px) {
  .welcome-grid,
  .sumbingtik-grid { grid-template-columns: 1fr; }
  .taste-grid,
  .todo-grid,
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 640px) {
  .tourism-page section { padding: 4.5rem 5vw; }
  .tourism-hero { min-height: 76vh; padding-top: 6rem; }
  .dest-grid,
  .taste-grid,
  .todo-grid,
  .visit-grid { grid-template-columns: 1fr; }
  .dest-media { height: 200px; }
  .gallery-grid { column-count: 1; }
  .welcome-media,
  .welcome-media img { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .tourism-page *,
  .tourism-page *::before,
  .tourism-page *::after {
    scroll-behavior: auto !important;
  }
  .dest-card,
  .biz-card,
  .todo-card,
  .gallery-item img,
  .tourism-btn { transition: none !important; }
}
