:root {
    --teal: #19aaa6;
    --teal-dark: #087d7c;
    --navy: #075477;
    --navy-deep: #063d58;
    --orange: #f36a21;
    --gold: #f1b313;
    --ink: #111a22;
    --muted: #52616d;
    --line: #d8e0e5;
    --surface: #ffffff;
    --soft: #edf2f4;
    --shadow: 0 6px 15px rgba(17, 42, 57, 0.16);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #eff5f7;
    font-family: "Nunito Sans", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

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

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

svg {
    width: 1em;
    height: 1em;
    stroke-width: 2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    left: 12px;
    top: -48px;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    border-radius: 0 0 6px 6px;
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #e1e8eb;
}

.header-inner {
    width: min(1010px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr) 176px;
    align-items: center;
    gap: 18px;
}

.brand {
    height: 72px;
    display: flex;
    align-items: center;
}

.brand img {
    width: 214px;
    height: 68px;
    object-fit: contain;
    object-position: left center;
}

.primary-nav {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 3px;
}

.primary-nav a {
    position: relative;
    min-width: 56px;
    padding: 14px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #101820;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
}

.primary-nav a svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 0;
    height: 3px;
    background: transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
    color: var(--teal);
    background: #f8fbfb;
}

.primary-nav a.active::after {
    background: var(--teal);
}

.header-search,
.sidebar-search {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #edf0f2;
    border-radius: 18px;
}

.header-search input,
.sidebar-search input {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.header-search:focus-within,
.sidebar-search:focus-within {
    box-shadow: 0 0 0 2px rgba(25, 170, 166, 0.28);
}

.header-search button,
.sidebar-search button {
    width: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: var(--navy-deep);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.icon-button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: rgba(7, 84, 119, 0.09);
}

.mobile-menu-button {
    display: none;
}

.tourism-stage {
    min-height: calc(100vh - 158px);
    padding: 36px 0 18px;
    background-color: #eff6f8;
    background-image: url("../images/bananal-illustrated-background-1200.webp");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.content-grid {
    width: min(1010px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 302px 410px 230px;
    align-items: start;
    gap: 16px;
}

.panel,
.side-card,
.sidebar-search {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    border: 1px solid rgba(205, 216, 222, 0.82);
    border-radius: var(--radius);
}

.panel {
    overflow: hidden;
}

.panel-title,
.side-card h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-title {
    min-height: 34px;
    padding: 7px 14px;
}

.panel-title.teal {
    background: var(--teal);
}

.panel-title.navy {
    background: var(--navy);
}

.guide-card {
    min-height: 520px;
}

.guide-content {
    padding: 12px 13px 11px;
}

.section-kicker {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 650;
}

.guide-content h2 {
    margin: 0 0 7px;
    max-width: 260px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.14;
}

.feature-image {
    position: relative;
    width: 100%;
    height: 144px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: #dce8ea;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

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

.feature-image span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 23px 9px 7px;
    color: #fff;
    background: linear-gradient(transparent, rgba(4, 20, 26, 0.86));
    font-size: 12px;
    font-weight: 500;
}

.rating-row {
    min-height: 31px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
}

.stars {
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 0;
}

.rating-row small {
    color: var(--muted);
    font-size: 11px;
}

.text-action {
    padding: 3px 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.text-action:hover,
.text-action:focus-visible {
    color: var(--teal-dark);
    text-decoration: underline;
}

.lodging-block {
    margin: 4px 0 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.lodging-heading {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lodging-heading h3 {
    margin: 0;
    font-size: 16px;
}

.lodging-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.lodging-controls button {
    width: 24px;
    height: 24px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #f4f7f8;
    border: 1px solid #d7e2e6;
    border-radius: 50%;
    cursor: pointer;
}

.lodging-controls button:hover,
.lodging-controls button:focus-visible {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.lodging-controls svg {
    width: 13px;
    height: 13px;
}

.lodging-card {
    min-height: 82px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.lodging-block.is-changing .lodging-card {
    opacity: 0;
    transform: translateX(4px);
}

.lodging-photo {
    width: 108px;
    height: 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--teal-dark);
    background: linear-gradient(145deg, #dff3f1, #edf5f7);
    border-radius: 7px;
}

.lodging-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lodging-photo.has-photo > :not(img) {
    display: none;
}

.lodging-photo svg {
    width: 30px;
    height: 30px;
}

.lodging-card small {
    display: block;
    margin-bottom: 2px;
    color: var(--orange);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.lodging-card strong {
    display: block;
    color: var(--navy-deep);
    font-size: 13px;
    line-height: 1.15;
}

.lodging-card p {
    margin: 3px 0 4px;
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lodging-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--teal-dark);
    font-size: 8px;
    font-weight: 750;
}

.lodging-status svg {
    width: 11px;
    height: 11px;
}

.food-block h3 {
    margin: 2px 0 7px;
    font-size: 16px;
}

.food-card {
    display: grid;
    grid-template-columns: 119px 1fr;
    gap: 10px;
    align-items: start;
}

.food-card img {
    width: 119px;
    height: 86px;
    object-fit: cover;
    border-radius: 7px;
}

.food-card strong {
    display: block;
    margin: 1px 0 4px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
}

.food-card p {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.35;
}

.mini-map {
    position: relative;
    width: 100%;
    height: 119px;
    margin-top: 9px;
    overflow: hidden;
    background-color: #e6ede6;
    background-image:
        linear-gradient(26deg, transparent 46%, #fff 47%, #fff 51%, transparent 52%),
        linear-gradient(112deg, transparent 46%, #d7e6d3 47%, #d7e6d3 51%, transparent 52%);
    background-size: 58px 58px, 74px 74px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.map-road {
    position: absolute;
    height: 6px;
    background: #fff;
    box-shadow: 0 0 0 1px #c9d2d6;
    transform-origin: left center;
}

.road-one {
    width: 310px;
    left: -20px;
    top: 60px;
    transform: rotate(-12deg);
}

.road-two {
    width: 180px;
    left: 82px;
    top: 22px;
    transform: rotate(65deg);
}

.road-three {
    width: 170px;
    left: 20px;
    top: 98px;
    transform: rotate(-52deg);
}

.map-pin {
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
}

.map-pin svg {
    width: 15px;
    height: 15px;
}

.pin-one {
    left: 132px;
    top: 44px;
}

.pin-two {
    right: 39px;
    top: 24px;
    color: #fff;
    background: var(--teal);
}

.map-label {
    position: absolute;
    left: 105px;
    top: 77px;
    padding: 2px 4px;
    color: var(--navy-deep);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 650;
}

.map-caption {
    position: absolute;
    left: 8px;
    bottom: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    color: #fff;
    background: var(--navy);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 650;
}

.routes-panel {
    min-height: 535px;
}

.routes-heading {
    position: relative;
    display: flex;
    align-items: center;
}

.routes-heading h2 {
    margin: 0;
    font: inherit;
}

.route-medallion {
    position: absolute;
    z-index: 2;
    top: 3px;
    right: 27px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--teal);
    border: 5px solid #eaf4f7;
    border-radius: 50%;
    box-shadow: 0 4px 9px rgba(7, 84, 119, 0.22);
}

.route-medallion svg {
    width: 39px;
    height: 39px;
    stroke-width: 1.8;
}

.today-row {
    min-height: 52px;
    padding: 28px 108px 6px 16px;
    display: grid;
    grid-template-columns: auto 1fr 34px;
    align-items: center;
    gap: 9px;
}

.today-row > span {
    padding: 4px 12px;
    background: #e4e7e9;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
}

.today-row strong {
    font-size: 15px;
    font-weight: 650;
}

.today-row .icon-button {
    width: 32px;
    height: 32px;
}

.timeline {
    padding: 0 13px;
}

.timeline-item {
    display: block;
}

.route-summary {
    width: 100%;
    min-height: 124px;
    margin-bottom: 9px;
    padding: 9px 12px 8px;
    display: block;
    text-align: left;
    background: #e5eaed;
    border: 1px solid #ced8dd;
    border-radius: 9px;
    box-shadow: 0 2px 5px rgba(31, 55, 68, 0.08);
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.route-summary:hover,
.route-summary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 13px rgba(31, 55, 68, 0.16);
}

.route-topline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 6px;
}

.route-topline strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.18;
}

.route-topline svg {
    color: #7a8790;
}

.route-stops {
    position: relative;
    margin: 8px 1px 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.route-stops::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 18%;
    right: 18%;
    top: 18px;
    height: 3px;
    background: currentColor;
}

.route-stops > span {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.route-stops b {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 3px solid #e5eaed;
    border-radius: 50%;
}

.route-stops b svg {
    width: 21px;
    height: 21px;
    color: #fff;
}

.route-stops em {
    color: var(--ink);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.14;
}

.teal-stops {
    color: var(--teal);
}

.teal-stops b {
    background: var(--teal);
}

.navy-stops {
    color: var(--navy);
}

.navy-stops b {
    background: var(--navy);
}

.orange-stops {
    color: var(--orange);
}

.orange-stops b {
    background: var(--orange);
}

.route-summary small {
    display: block;
    color: var(--ink);
    font-size: 11px;
    font-weight: 450;
}

.all-routes-button {
    height: 36px;
    margin: 0 15px 13px auto;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.all-routes-button:hover,
.all-routes-button:focus-visible {
    background: var(--teal-dark);
}

.side-column {
    display: grid;
    gap: 14px;
}

.sidebar-search {
    border-radius: 8px;
}

.sidebar-search input {
    height: 34px;
    background: #fff;
}

.sidebar-search button {
    color: #fff;
    background: var(--navy);
}

.side-card {
    overflow: hidden;
}

.side-card h2 {
    padding: 7px 12px;
    font-size: 16px;
}

.tips-card h2 {
    background: var(--orange);
}

.tips-card > button {
    width: 100%;
    padding: 8px 12px 3px;
    display: block;
    text-align: left;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.tips-card > button:last-child {
    padding-bottom: 10px;
}

.tips-card > button:hover,
.tips-card > button:focus-visible {
    background: #fff7f1;
}

.tips-card strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 650;
}

.tips-card span {
    display: block;
    font-size: 10.5px;
    line-height: 1.3;
}

.audio-card h2,
.social-card h2 {
    background: var(--navy);
}

.audio-item {
    width: 100%;
    min-height: 52px;
    padding: 6px 9px;
    display: grid;
    grid-template-columns: 45px 1fr 19px;
    align-items: center;
    gap: 8px;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e4eaed;
    cursor: pointer;
}

.audio-item:last-child {
    border-bottom: 0;
}

.audio-item:hover,
.audio-item:focus-visible,
.audio-item.playing {
    background: #eefafa;
}

.audio-cover {
    width: 45px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 7px;
}

.audio-cover svg {
    width: 24px;
    height: 24px;
}

.audio-cover.orange {
    background: var(--orange);
}

.audio-cover.teal {
    background: var(--teal);
}

.audio-cover.navy {
    background: var(--navy);
}

.audio-item strong,
.audio-item small {
    display: block;
}

.audio-item strong {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 650;
}

.audio-item small {
    color: #26343d;
    font-size: 9.5px;
    line-height: 1.25;
}

.social-card > div {
    padding: 9px 10px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 8px;
}

.social-card a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 550;
}

.social-card a svg {
    color: var(--teal-dark);
    width: 15px;
    height: 15px;
}

.site-footer {
    min-height: 78px;
    color: #fff;
    background: var(--navy-deep);
}

.footer-inner {
    width: min(1010px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 190px 1fr 210px;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: transform 150ms ease, background 150ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: var(--teal);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.partners > span {
    margin-right: 5px;
    font-size: 12px;
}

.partners b {
    min-height: 38px;
    padding: 7px 8px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--navy-deep);
    background: #fff;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.footer-contact a svg {
    width: 15px;
    height: 15px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #78e0dc;
}

.footer-contact small {
    font-size: 10px;
}

.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.footer-legal a, .footer-legal button { padding: 0; color: rgba(255,255,255,.8); font: inherit; font-size: 10px; line-height: 1.2; background: transparent; border: 0; cursor: pointer; }
.footer-legal a:hover, .footer-legal a:focus-visible, .footer-legal button:hover, .footer-legal button:focus-visible { color: #78e0dc; text-decoration: underline; }

.cookie-banner { position: fixed; z-index: 200; right: 18px; bottom: 18px; width: min(475px, calc(100% - 36px)); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 17px 18px; color: #eef9fb; background: #082f42; border: 1px solid rgba(120,224,220,.35); border-radius: 9px; box-shadow: 0 16px 38px rgba(3,20,30,.3); }
.cookie-banner strong { display: block; font-size: 14px; }.cookie-banner p { margin: 5px 0 6px; font-size: 12px; line-height: 1.4; }.cookie-banner a { color: #8eece7; font-size: 11px; font-weight: 750; text-decoration: underline; }
.cookie-actions { display: grid; gap: 7px; }.cookie-actions button { min-width: 157px; min-height: 34px; padding: 7px 10px; border-radius: 5px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }.cookie-primary { color: #042e3d; background: #76ded9; border: 1px solid #76ded9; }.cookie-secondary { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); }.cookie-actions button:hover, .cookie-actions button:focus-visible { transform: translateY(-1px); filter: brightness(1.04); }
@media (max-width: 620px) { .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 13px; padding: 16px; }.cookie-actions { grid-template-columns: 1fr 1fr; }.cookie-actions button { min-width: 0; } }

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 28, 39, 0.72);
    backdrop-filter: blur(3px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 22px 70px rgba(0, 24, 36, 0.34);
}

.modal-header {
    min-height: 74px;
    padding: 13px 16px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--navy);
}

.modal-header span {
    display: block;
    color: #a8ebe8;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
}

.modal-header h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.modal-header .icon-button {
    color: #fff;
}

.catalog-tools {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.catalog-tools label {
    min-width: 250px;
    height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eef3f5;
    border-radius: 7px;
}

.catalog-tools label svg {
    color: var(--navy);
}

.catalog-tools input {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-pills button {
    height: 30px;
    padding: 0 9px;
    color: var(--navy);
    background: #fff;
    border: 1px solid #bfd0d8;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover,
.filter-pills button:focus-visible {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.route-catalog {
    max-height: calc(100vh - 188px);
    padding: 14px 16px 20px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    background: #f4f7f8;
}

.catalog-item {
    min-height: 112px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe3e7;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.catalog-item:hover,
.catalog-item:focus-visible {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(7, 84, 119, 0.11);
}

.catalog-item .catalog-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--teal-dark);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
}

.catalog-item strong {
    margin: 5px 0 4px;
    font-size: 14px;
}

.catalog-item p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.catalog-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
}

.detail-dialog {
    width: min(510px, 100%);
    display: flex;
    flex-direction: column;
}

.guide-partner-card {
    position: relative;
    padding: 14px;
    overflow: hidden;
    border-color: #c9dce1;
    background:
        linear-gradient(145deg, rgba(229, 247, 245, 0.86), rgba(255, 255, 255, 0) 44%),
        #fff;
}

.guide-partner-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--teal), var(--orange));
}

.guide-partner-label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--teal-dark);
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-partner-counter {
    margin-left: auto;
    padding: 2px 5px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #c9dce1;
    border-radius: 8px;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.guide-partner-label svg {
    width: 13px;
    height: 13px;
}

.guide-partner-profile {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.guide-partner-photo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--teal-dark);
    background: #e5f5f3;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #abd7d3, 0 5px 12px rgba(7, 84, 119, 0.14);
}

.guide-partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #e5f5f3;
}

.guide-partner-photo.has-photo > :not(img) {
    display: none;
}

.guide-partner-photo svg {
    width: 27px;
    height: 27px;
}

.guide-partner-profile small {
    color: var(--orange);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-partner-profile h2 {
    margin: 2px 0 0;
    padding: 0;
    color: var(--navy-deep);
    background: transparent;
    font-size: 17px;
    line-height: 1.08;
}

.guide-partner-profile strong {
    display: block;
    margin-top: 4px;
    color: var(--teal-dark);
    font-size: 9.5px;
    line-height: 1.2;
}

.guide-partner-card > p {
    margin: 11px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.guide-partner-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.guide-partner-actions a,
.guide-partner-actions button {
    min-height: 34px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: var(--teal-dark);
    border: 1px solid var(--teal-dark);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.guide-partner-actions button {
    color: var(--navy);
    background: transparent;
    border-color: #cbd9de;
}

.guide-partner-actions a:hover,
.guide-partner-actions a:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(7, 84, 119, 0.16);
}

.guide-partner-actions button:hover,
.guide-partner-actions button:focus-visible {
    color: var(--teal-dark);
    background: #eef8f7;
    border-color: #98c8c5;
}

.guide-partner-actions svg {
    width: 14px;
    height: 14px;
}

.guide-partner-profile,
.guide-partner-card > p {
    transition: opacity 160ms ease, transform 160ms ease;
}

.guide-partner-card.is-changing .guide-partner-profile,
.guide-partner-card.is-changing > p {
    opacity: 0;
    transform: translateY(3px);
}

.guide-application-dialog {
    width: min(620px, 100%);
}

.guide-application-form {
    max-height: calc(100vh - 130px);
    padding: 18px;
    overflow-y: auto;
}

.guide-application-form > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.guide-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.guide-form-grid label {
    margin: 0;
    display: grid;
    gap: 5px;
    color: var(--navy-deep);
    font-size: 11px;
    font-weight: 750;
}

.guide-form-grid label.full {
    grid-column: 1 / -1;
}

.guide-form-grid input:not([type="checkbox"]),
.guide-form-grid textarea {
    width: 100%;
    min-height: 39px;
    padding: 8px 9px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #b9cbd2;
    border-radius: 6px;
    outline-color: var(--teal);
    font: inherit;
}

.guide-form-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.guide-form-grid label > small {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 500;
}

.guide-terms {
    grid-template-columns: 18px 1fr !important;
    align-items: start;
}

.guide-terms input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--teal-dark);
}

.guide-form-status {
    min-height: 18px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.guide-form-status.success {
    color: #08756f;
}

.guide-form-status.error {
    color: #b44232;
}

.guide-application-form button:disabled {
    opacity: .6;
    cursor: wait;
}

.detail-hero {
    position: relative;
    height: 225px;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 45%, rgba(3, 31, 44, 0.78));
}

.detail-hero .icon-button {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    color: var(--navy-deep);
    background: rgba(255, 255, 255, 0.92);
}

.detail-hero > span {
    position: absolute;
    z-index: 2;
    left: 17px;
    bottom: 13px;
    padding: 5px 8px;
    color: #fff;
    background: var(--orange);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-content {
    padding: 17px 19px 20px;
    overflow-y: auto;
}

.detail-number {
    margin: 0 0 3px;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-content h2 {
    margin: 0 0 9px;
    color: var(--navy-deep);
    font-size: 25px;
}

.detail-content > p:not(.detail-number) {
    margin: 0;
    color: #2f3d45;
    font-size: 13px;
    line-height: 1.45;
}

.detail-notice {
    margin-top: 14px;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #71410e;
    background: #fff6e8;
    border: 1px solid #f0d29b;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.35;
}

.detail-notice svg {
    flex: 0 0 17px;
}

.detail-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.primary-button,
.secondary-button {
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    color: #fff;
    background: var(--teal-dark);
    border: 1px solid var(--teal-dark);
}

.secondary-button {
    color: var(--navy);
    background: #fff;
    border: 1px solid #afc4ce;
}

.toast {
    position: fixed;
    z-index: 150;
    right: 18px;
    bottom: 18px;
    max-width: min(360px, calc(100% - 36px));
    padding: 11px 14px;
    color: #fff;
    background: var(--navy-deep);
    border-left: 4px solid var(--teal);
    border-radius: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 180ms ease, transform 180ms ease;
    font-size: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: 185px minmax(0, 1fr) 150px;
        gap: 8px;
    }

    .brand img {
        width: 175px;
    }

    .primary-nav a {
        min-width: 49px;
        padding-inline: 3px;
        font-size: 9px;
    }

    .content-grid {
        grid-template-columns: 285px minmax(380px, 1fr) 215px;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 70px;
    }

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

    .brand {
        height: 64px;
    }

    .brand img {
        width: 190px;
        height: 62px;
    }

    .mobile-menu-button {
        display: inline-grid;
    }

    .primary-nav {
        position: fixed;
        z-index: 80;
        left: 12px;
        right: 12px;
        top: 76px;
        height: auto;
        padding: 9px;
        display: none;
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
        gap: 4px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: grid;
    }

    .primary-nav a {
        min-height: 47px;
        padding: 7px 9px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 9px;
        border-radius: 5px;
        font-size: 10px;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-search {
        display: none;
    }

    .tourism-stage {
        min-height: auto;
        padding: 22px 0 28px;
        background-position: center bottom;
    }

    .content-grid {
        width: min(680px, calc(100% - 24px));
        grid-template-columns: 1fr 1.2fr;
        gap: 12px;
    }

    .side-column {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-search,
    .social-card {
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
        text-align: center;
    }

    .footer-socials,
    .partners {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }

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

    .catalog-tools {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 13px;
    }

    .header-inner {
        width: calc(100% - 22px);
    }

    .brand img {
        width: 170px;
    }

    .tourism-stage {
        background-size: auto 620px;
    }

    .content-grid {
        width: calc(100% - 20px);
        display: flex;
        flex-direction: column;
    }

    .panel,
    .side-column {
        width: 100%;
    }

    .routes-panel {
        order: -1;
    }

    .guide-card,
    .routes-panel {
        min-height: 0;
    }

    .side-column {
        display: grid;
        grid-template-columns: 1fr;
    }

    .side-column > * {
        grid-column: 1;
    }

    .route-medallion {
        width: 62px;
        height: 62px;
        right: 18px;
    }

    .route-medallion svg {
        width: 31px;
        height: 31px;
    }

    .route-summary {
        min-height: 120px;
    }

    .route-topline strong {
        font-size: 14px;
    }

    .route-catalog {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 8px;
    }

    .modal-dialog {
        max-height: calc(100vh - 16px);
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .catalog-tools label {
        min-width: 0;
    }

    .route-catalog {
        max-height: calc(100vh - 238px);
    }

    .detail-hero {
        height: 190px;
    }

    .partners {
        flex-wrap: wrap;
    }
}

/* Escala final: leitura confortável sem ampliar os blocos do roteiro. */
@media (min-width: 641px) {
    .panel-title,
    .side-card h2 {
        font-size: 18px;
        font-weight: 700;
    }

    .section-kicker {
        font-size: 16px;
    }

    .guide-content h2 {
        font-size: 24px;
    }

    .food-block h3 {
        font-size: 17px;
    }

    .food-card strong,
    .route-topline strong {
        font-size: 16px;
    }

    .food-card p,
    .route-summary small {
        font-size: 12px;
    }

    .tips-card strong {
        font-size: 14px;
    }

    .tips-card span {
        font-size: 11.5px;
    }

    .audio-item strong {
        font-size: 13px;
    }

    .audio-item small {
        font-size: 10.5px;
    }

    .social-card a {
        font-size: 12px;
    }
}

.route-facts {
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
}

.route-facts li {
    min-width: 0;
    min-height: 54px;
    padding: 8px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    background: #f5f8f9;
    border: 1px solid #dce7ea;
    border-radius: 6px;
}

.route-facts li > svg {
    width: 18px;
    height: 18px;
    color: var(--teal-dark);
}

.route-facts li span {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.route-facts small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.route-facts strong {
    color: var(--navy-deep);
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .panel-title,
    .side-card h2 {
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Etapas do roteiro: leitura por acao, sem blocos de texto corrido. */
.route-checklist-preview { margin: 8px 0 6px; display: grid; gap: 4px; }
.route-checklist-preview > span { min-width: 0; display: grid; grid-template-columns: 23px 42px minmax(0, 1fr); align-items: center; gap: 7px; }
.route-checklist-preview > span::before { content: ""; width: 6px; height: 6px; margin-left: 8px; background: var(--teal); border-radius: 50%; }
.route-checklist-preview b { width: 23px; height: 23px; display: grid; place-items: center; color: var(--navy); background: #dff3f1; border-radius: 50%; }
.route-checklist-preview b svg { width: 13px; height: 13px; }
.route-checklist-preview em { min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; color: var(--ink); font-size: 11px; font-style: normal; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.route-checklist-preview em small { flex: 0 0 36px; color: var(--teal-dark); font-size: 10px; font-weight: 750; }

.catalog-checklist { width: 100%; margin: 3px 0 0; padding: 0; display: grid; gap: 3px; list-style: none; }
.catalog-checklist li { min-width: 0; display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 5px; color: var(--muted); font-size: 10px; line-height: 1.2; }
.catalog-checklist li svg { width: 13px; height: 13px; color: var(--teal-dark); }
.catalog-checklist li span { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 4px; overflow: hidden; }
.catalog-checklist li b { color: var(--navy); font-size: 10px; }

.detail-intro { margin-bottom: 15px !important; }
.route-plan { padding: 13px; background: #f3f8f8; border: 1px solid #d6e7e7; border-radius: 8px; }
.route-plan-heading { margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.route-plan-heading span { display: block; color: var(--teal-dark); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.route-plan-heading h3 { margin: 1px 0 0; color: var(--navy-deep); font-size: 16px; }
.route-plan-heading > small { padding: 4px 7px; color: var(--teal-dark); background: #dff3f1; border-radius: 10px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.route-checklist { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.route-check-item label { min-height: 49px; padding: 7px 9px; display: grid; grid-template-columns: 17px 32px minmax(0, 1fr) 18px; align-items: center; gap: 8px; background: #fff; border: 1px solid #dce8e8; border-radius: 6px; cursor: pointer; transition: border-color 150ms ease, background 150ms ease; }
.route-check-item label:hover { border-color: #9fcfcd; }
.route-check-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal-dark); }
.route-check-icon { width: 31px; height: 31px; display: grid; place-items: center; color: var(--teal-dark); background: #dff3f1; border-radius: 50%; }
.route-check-icon svg { width: 16px; height: 16px; }
.route-check-copy { min-width: 0; display: grid; gap: 1px; }
.route-check-copy small { color: var(--teal-dark); font-size: 10px; font-weight: 750; }
.route-check-copy strong { overflow: hidden; color: #293942; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; }
.route-check-mark { width: 17px; height: 17px; padding: 2px; color: #8a9ca3; border: 1px solid #c8d6da; border-radius: 50%; }
.route-check-item.done label { background: #eefaf7; border-color: #a7dcd5; }
.route-check-item.done .route-check-copy strong { color: #5e747c; text-decoration: line-through; }
.route-check-item.done .route-check-mark { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }

@media (max-width: 520px) {
    .route-checklist-preview > span { grid-template-columns: 17px 24px minmax(0, 1fr); gap: 5px; }
    .route-checklist-preview > span::before { margin-left: 5px; }
    .route-checklist-preview b { width: 22px; height: 22px; }
    .route-checklist-preview em { font-size: 10px; }
    .route-plan { padding: 10px; }
    .route-facts { grid-template-columns: 1fr; }
    .guide-form-grid { grid-template-columns: 1fr; }
    .guide-form-grid label.full { grid-column: auto; }
}

/* Mapa ilustrado entre o titulo dos roteiros e a data. */
.illustrated-map-strip { position: relative; width: calc(100% - 26px); height: 112px; margin: 11px 13px 0; padding: 0; display: block; overflow: hidden; background: #e9e1c9; border: 1px solid #d5c39a; border-radius: 7px; cursor: pointer; }
.illustrated-map-strip picture, .illustrated-map-strip img { display: block; width: 100%; height: 100%; }
.illustrated-map-strip img { object-fit: cover; object-position: center 48%; transition: transform 180ms ease; }
.illustrated-map-strip:hover img, .illustrated-map-strip:focus-visible img { transform: scale(1.025); }
.illustrated-map-strip span { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 4px; color: #fff; background: rgba(6, 61, 88, .92); border-radius: 4px; font-size: 10px; font-weight: 750; }
.illustrated-map-strip span svg { width: 13px; height: 13px; }
.today-row { padding-top: 12px; }
@media (max-width: 640px) { .illustrated-map-strip { height: 102px; } }
