/* Final cascade layer for production consistency and responsive safeguards. */
:root {
  --tnc-content: 78rem;
  --tnc-gutter: clamp(1rem, 3vw, 2rem);
  --tnc-radius: 1rem;
  --tnc-focus: #f59e0b;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { overflow-x: clip; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; font: inherit; }

.container,
.header-inner,
.footer-top,
.hero-inner {
  width: min(100% - (2 * var(--tnc-gutter)), var(--tnc-content));
  margin-inline: auto;
}

.page-content { min-height: 55vh; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-title, .hero-headline, h1, h2, h3 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
p, li { overflow-wrap: break-word; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--tnc-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 10000;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.category-grid, .cards-grid, .stats-grid, .services-grid {
  align-items: stretch;
}
.category-card, .card, .service-card, .stat-card {
  min-width: 0;
  height: 100%;
}

@media (max-width: 1024px) {
  .main-nav {
    width: min(88vw, 25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dropdown-menu, .dropdown-mega { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero { margin-inline: 0; border-radius: 0; }
  .hero-search, .search-fields, .search-buttons { width: 100%; }
  .search-buttons { display: grid; grid-template-columns: 1fr; }
  .search-buttons > * { width: 100%; min-height: 3rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
  .header-inner { min-height: 4.25rem; }
  .logo img { max-width: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .weather-slider-root, .hero-search { display: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

.service-hero { padding-block: clamp(3rem, 8vw, 6rem); background: linear-gradient(135deg, #071c36, #0e4b78); color: #fff; }
.service-hero .eyebrow { color: #fbbf24; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 6vw, 4.5rem); }
.service-hero > .container > p { max-width: 48rem; }
.travel-search-panel { margin-top: 2rem; padding: clamp(1rem, 3vw, 2rem); border-radius: var(--tnc-radius); background: #fff; color: #0f172a; box-shadow: 0 1.25rem 3rem rgba(0,0,0,.22); }
.travel-search-form .search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.travel-search-form label { display: block; margin-bottom: .4rem; font-weight: 700; }
.travel-search-form :is(input, select) { width: 100%; min-height: 3rem; border: 1px solid #94a3b8; border-radius: .6rem; padding: .7rem .8rem; }
.travel-search-form .search-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.search-results { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #dbe3ec; }
.search-results-grid, .route-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.search-card, .route-list article { padding: 1.25rem; border: 1px solid #dbe3ec; border-radius: .75rem; background: #fff; }
.results-disclosure { font-size: .9rem; color: #475569; }
.faq-section details { margin-block: .75rem; padding: 1rem 1.25rem; border: 1px solid #dbe3ec; border-radius: .75rem; background: #fff; }
.faq-section summary { cursor: pointer; font-weight: 750; }
.adsense-slot-container { width: min(100% - 2rem, var(--tnc-content)); min-height: 7.5rem; margin: 2rem auto; overflow: hidden; text-align: center; }
.ad-label { display: block; margin-bottom: .35rem; color: #64748b; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* Shared public-page structure, including third-party Drive/widget injections. */
.page-content > :where(section, .container, main) { min-width: 0; }
.page-content > .container, main.container { padding-block: clamp(1.5rem, 4vw, 3rem); }
.widget-section, .widget-block, [data-travelpayouts-widget] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: clip;
  border-radius: var(--tnc-radius);
}
.widget-section iframe, .widget-block iframe, [data-travelpayouts-widget] iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}
.cards-grid, .route-list, .hotels-grid, .tips-grid, .amenities-grid { container-type: inline-size; }
.btn-primary, .btn-secondary, .btn, button { line-height: 1.25; text-align: center; }
.travel-search-panel :where(.btn-primary, .btn-secondary) { justify-content: center; min-height: 3.1rem; }

@media (max-width: 720px) {
  .main-nav { right: -100%; }
  .main-nav.nav-open { right: 0; }
  .travel-search-panel { margin-inline: calc(-1 * var(--tnc-gutter) / 2); border-radius: .75rem; }
  .travel-search-form .search-fields { grid-template-columns: 1fr; }
  .travel-search-form .search-buttons { display: grid; grid-template-columns: 1fr; }
  .service-hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
}

/* Unified content system for PHP hubs, country guides and destinations. */
:root {
  --page-ink: #10243e;
  --page-muted: #526579;
  --page-line: #d9e3ec;
  --page-surface: #fff;
  --page-tint: #f3f7fa;
  --page-accent: #0878a4;
}
body { color: var(--page-ink); background: var(--page-tint); }
main { overflow: clip; }
main :where(h1, h2, h3) { color: var(--page-ink); line-height: 1.12; text-wrap: balance; }
main h1 { margin: 0 0 1rem; font-size: clamp(2.15rem, 6vw, 4.75rem); letter-spacing: -.035em; }
main h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3.5vw, 2.6rem); letter-spacing: -.02em; }
main h3 { margin: 0 0 .65rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
main p { max-width: 72ch; }
.page-hero { padding-block: clamp(3.5rem, 9vw, 7rem); color: #fff; background: radial-gradient(circle at 85% 10%, rgba(33,183,214,.38), transparent 35%), linear-gradient(135deg, #071c36, #0c527c); }
.page-hero-compact { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero :where(h1, h2) { color: #fff; }
.page-hero .lead { max-width: 54rem; margin: 0; color: #e7f5fa; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.eyebrow { margin: 0 0 .7rem; color: #f9c74f; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-block: 1rem; color: var(--page-muted); font-size: .9rem; }
.breadcrumb a { color: #08668d; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.content-section { padding-block: clamp(2.75rem, 7vw, 5.25rem); background: var(--page-surface); }
.content-section.section-alt, .content-section:nth-of-type(even) { background: var(--page-tint); }
.content-section .container > :last-child { margin-bottom: 0; }
.content-card-grid, .dest-grid, .country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.content-card { min-width: 0; padding: clamp(1.15rem, 3vw, 1.7rem); border: 1px solid var(--page-line); border-radius: 1rem; background: var(--page-surface); box-shadow: 0 .45rem 1.5rem rgba(15,41,65,.06); }
.content-card p { margin: .55rem 0; color: var(--page-muted); overflow-wrap: anywhere; }
.content-card strong { color: var(--page-ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.button-row > a, main :where(.btn, .btn-primary, .btn-secondary) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1rem; border-radius: .65rem; }
.planning-cta { color: #fff; background: linear-gradient(125deg, #083d5d, #0878a4); }
.planning-cta :where(h2, p) { color: #fff; }
.planning-cta .btn-secondary { border-color: rgba(255,255,255,.72); color: #fff; background: transparent; }
.dest-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.dest-sidebar { position: sticky; top: 6rem; min-width: 0; }
main :where(table) { width: 100%; border-collapse: collapse; background: #fff; }
main :where(th, td) { padding: .8rem; border: 1px solid var(--page-line); text-align: left; vertical-align: top; }
main th { background: #eaf2f7; }
main :where(input, select, textarea) { max-width: 100%; min-height: 44px; border: 1px solid #8093a6; border-radius: .55rem; padding: .7rem .8rem; background: #fff; color: var(--page-ink); }
main textarea { min-height: 8rem; resize: vertical; }
main :where(img, video, svg) { max-width: 100%; height: auto; }
.notice, .alert, .status-message { padding: 1rem 1.15rem; border-left: .3rem solid var(--page-accent); border-radius: .5rem; background: #eaf6fa; }

@media (max-width: 880px) {
  .dest-layout { grid-template-columns: 1fr; }
  .dest-sidebar { position: static; }
}
@media (max-width: 720px) {
  .page-hero { padding-block: 3.25rem; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row > * { width: 100%; }
  main :where(input, select, textarea) { width: 100%; font-size: 16px; }
}
