/* Shared components for inner pages: page hero, buttons, tables, tabs, alerts, grids, lists, dialogs */

/* ---------- Page hero ---------- */
.page-hero {
    position: relative;
    background: linear-gradient(100deg, #dff1ef 0%, #f1f6f2 45%, #fbf0df 100%);
    padding: clamp(26px, 4vw, 48px) 0 clamp(34px, 4.6vw, 56px);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 4% 40%,
            rgba(15, 139, 141, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 96% 20%,
            rgba(237, 170, 37, 0.16),
            transparent 30%
        );
}

.page-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    width: min(1240px, 100% - 2 * clamp(14px, 5.5vw, 64px));
}

.page-hero.has-photo .page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0d5a63;
    margin: 14px 0 10px;
    letter-spacing: -0.01em;
}

.page-hero h1 em {
    font-style: normal;
    color: var(--crimson);
}

.page-hero .lead {
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    color: #27393f;
    max-width: 560px;
}

.page-hero-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.page-hero-photo .ph {
    height: 100%;
}

/* Vehicle hero photo: refined container with object-fit: contain to preserve full vehicle proportions */
.hero-vehicle .page-hero-photo,
.page-hero-photo:has(.ph-vehicle) {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16/10;
    background: #ffffff;
    border: 1px solid rgba(15, 139, 141, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 28px rgba(28, 43, 51, 0.07);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.hero-vehicle .page-hero-photo .ph,
.page-hero-photo .ph-vehicle {
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-vehicle .page-hero-photo .ph > img,
.page-hero-photo .ph-vehicle > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-vehicle .page-hero-photo .ph > svg.fb,
.page-hero-photo .ph-vehicle > svg.fb {
    color: rgba(15, 139, 141, 0.35);
    width: 32%;
    height: 32%;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    row-gap: 6px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.crumbs li {
    display: inline-flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}

.crumbs a {
    color: var(--teal-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur-1) var(--ease-std);
    overflow-wrap: break-word;
}

.crumbs a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.crumbs a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

.crumbs li + li::before {
    content: '/';
    display: inline-block;
    margin: 0 8px;
    color: var(--muted);
    opacity: 0.45;
    font-weight: 400;
    user-select: none;
    speak: never;
    flex-shrink: 0;
}

.crumbs [aria-current],
.crumbs .crumb-current {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: break-word;
}

.crumbs .crumb-static {
    color: var(--muted);
    font-weight: 500;
    overflow-wrap: break-word;
}

/* ---------- Buttons ---------- */
.btn-gold,
.btn-crimson,
.btn-line {
    cursor: pointer;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 40px;
    background: linear-gradient(180deg, #f4b733, var(--gold-dark));
    color: #2a1d02;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(212, 146, 26, 0.32);
    white-space: nowrap;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 146, 26, 0.42);
}

.btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 0.84rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #efc7cf;
    color: var(--crimson);
    background: #fff;
    font-weight: 600;
    font-size: 0.84rem;
}

.btn-danger:hover {
    background: var(--crimson);
    color: #fff;
}

.btn-sm.btn-line {
    padding: 0 16px;
}

.btn-line.active {
    background: var(--teal);
    color: #fff;
}

.go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 0.86rem;
    margin-top: auto;
}

.card:hover .go {
    color: var(--crimson);
}

.go .ico {
    transition: transform var(--dur-2) var(--ease-spring);
}

.card:hover .go .ico {
    transform: translateX(3px);
}

/* ---------- Layout helpers ---------- */
.page {
    padding: clamp(30px, 4vw, 48px) 0 20px;
}

.page .section:first-child {
    padding-top: 0;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.g2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.g5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
}

.stack > * + * {
    margin-top: 18px;
}

.narrow {
    max-width: 900px;
}

.panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: clamp(18px, 2.2vw, 26px);
}

.panel h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.panel > p + p {
    margin-top: 10px;
}

.prose p {
    margin: 0 0 14px;
    color: #33444c;
    max-width: 68ch;
    font-size: 1.02rem;
}

.prose h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 30px 0 10px;
    scroll-margin-top: 90px;
}

.prose h2:first-child {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.note {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 10px;
}

.center {
    text-align: center;
}

[hidden] {
    display: none !important;
}

/* ---------- Tags, chips, badges ---------- */
.tbc {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 99px;
    border: 1px dashed #d9a64a;
    background: #fff6e3;
    color: #8a5d12;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 600;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip.c-pending {
    background: #fdf0d4;
    color: #8a5600;
}

.chip.c-confirmed {
    background: #dbe9fb;
    color: #1c4f94;
}

.chip.c-completed {
    background: #dcf1e6;
    color: #25704f;
}

.chip.c-cancelled {
    background: #fbe1e6;
    color: #a3223f;
}

.chip.c-none {
    background: #eceeee;
    color: #5a676c;
}

.demo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    background: #fff4dc;
    color: #8a5600;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 99px;
    background: #fbe1e6;
    color: var(--crimson);
    font-size: 0.76rem;
    font-weight: 700;
}

.chips-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chips-filter button {
    padding: 9px 16px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.88rem;
    transition:
        background-color var(--dur-2) var(--ease-std),
        border-color var(--dur-2) var(--ease-std),
        color var(--dur-2) var(--ease-std);
}

.chips-filter button:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.chips-filter button.on {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff6e3;
    border: 1px solid #f0dcae;
    color: #6e5316;
    font-size: 0.9rem;
}

.alert .ico {
    margin-top: 2px;
    flex: none;
}

.alert.info {
    background: #e6f5f2;
    border-color: #bfe0dc;
    color: var(--teal-dark);
}

.alert.ok {
    background: #e3f4ea;
    border-color: #bfe0cf;
    color: #25704f;
}

.alert + *,
.alert + .section {
    margin-top: 18px;
}

.protobar {
    background: #fff4dc;
    border-bottom: 1px solid #f0dcae;
    color: #6e5316;
    text-align: center;
    font-size: 0.84rem;
    padding: 8px 16px;
}

/* ---------- Media cards (tours, guides, services) ---------- */
.media-card .media-img {
    position: relative;
}

.media-card .ph {
    aspect-ratio: 16/10;
}

.media-card .body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.media-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.25;
}

.media-card p {
    font-size: 0.86rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Listing rows share image/title/description/chip/action tracks without clipping titles. */
.listing-grid > [data-item],
.listing-grid .media-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    row-gap: 0;
}

.listing-grid .media-card .body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 8px;
}

.listing-grid .media-card p {
    min-block-size: 3lh;
    max-block-size: 3lh;
    line-clamp: 3;
}

.listing-grid .media-card .go {
    grid-row: 4;
}

.img-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    background: #fff;
    color: var(--crimson);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Tables ---------- */
.table-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th {
    background: var(--teal-soft);
    color: var(--teal-dark);
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    white-space: nowrap;
}

.table th small {
    display: block;
    font-weight: 500;
    color: var(--muted);
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
}

.table .price {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--crimson);
    white-space: nowrap;
}

.table tr:hover td {
    background: #fbfdfc;
}

.rate-block + .rate-block {
    margin-top: 30px;
}

.rate-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* ---------- Tabs ---------- */
.seg-tabs {
    display: inline-flex;
    background: #e8f1f0;
    border-radius: 40px;
    padding: 3px;
    margin-bottom: 18px;
    max-width: 100%;
    overflow-x: auto;
}

.seg-tabs button {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
    white-space: nowrap;
    transition:
        color var(--dur-2) var(--ease-in-out),
        background-color var(--dur-2) var(--ease-in-out),
        box-shadow var(--dur-2) var(--ease-in-out);
}

.seg-tabs button.on {
    background: var(--teal);
    color: #fff;
}

/* ---------- Steps, timeline, lists ---------- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-card {
    list-style: none;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: 20px;
}

.step-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step-card p {
    font-size: 0.86rem;
    color: var(--muted);
}

.ticks li {
    position: relative;
    padding-left: 26px;
    margin: 9px 0;
    color: #33444c;
    font-size: 0.94rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8b8d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
        center/11px no-repeat;
}

.ticks.cross li::before {
    background: #fbe1e6
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2274f' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E")
        center/11px no-repeat;
}

.timeline {
    border-left: 2px dashed #b7dbd9;
    margin-left: 10px;
    padding-left: 24px;
}

.timeline .day {
    position: relative;
    margin-bottom: 22px;
}

.timeline .day::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #b7dbd9;
}

.timeline h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.timeline p {
    color: var(--muted);
    font-size: 0.94rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.facts > div {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: 14px 16px;
}

.facts small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

.facts b {
    display: block;
    font-size: 1rem;
    margin-top: 2px;
}

.feat-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: 16px;
}

.feat-item .f-ico {
    flex: none;
}

.feat-item b {
    display: block;
}

.feat-item span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.45;
}

.link-list {
    display: grid;
    gap: 2px;
}

.link-list a {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--teal-dark);
}

.link-list a:hover {
    background: var(--teal-soft);
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 10px;
    max-width: 860px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: 0 18px;
}

.faq-item summary {
    cursor: pointer;
    padding: 15px 0;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::after {
    content: '+';
    color: var(--teal);
    font-size: 1.3rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    padding: 0 0 16px;
    color: var(--muted);
}

/* ---------- Reviews ---------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-card {
    margin: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card .stars {
    display: flex;
    gap: 2px;
    color: #d8d3c8;
}

.review-card .star.on {
    color: var(--gold);
    fill: currentColor;
}

.review-card blockquote {
    margin: 0;
    color: #33444c;
}

.review-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: auto;
}

.review-card figcaption strong {
    color: var(--ink);
}

.stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.stars-input input {
    position: absolute;
    opacity: 0;
}

.stars-input label {
    cursor: pointer;
    color: #d8d3c8;
    font-size: 1.7rem;
    line-height: 1;
}

.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label {
    color: var(--gold);
}

.stars-input input:focus-visible + label {
    outline: 3px solid var(--gold);
    border-radius: 6px;
}

/* ---------- Filters, pagination, gallery, dialogs ---------- */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.filter-bar .input {
    max-width: 340px;
    flex: 1;
    min-width: 200px;
}

.filter-bar select {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fcfbf9;
    min-width: 150px;
}

.result-count {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.empty {
    padding: 34px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.pager {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pager a,
.pager span,
.pager button {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    color: var(--muted);
    padding: 0 12px;
}

.pager .cur {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
}

.gallery button {
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
    background: #e3f3f2;
}

.gallery button:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery .ph,
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

dialog.modal {
    border: 0;
    padding: 0;
    border-radius: 20px;
    width: min(560px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

dialog.modal.wide {
    width: min(820px, calc(100% - 24px));
}

dialog.modal::backdrop {
    background: rgba(18, 38, 45, 0.55);
    backdrop-filter: blur(3px);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
}

.modal-body {
    padding: 20px 22px;
}

.modal-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: #fbfaf7;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid .full {
    grid-column: 1/-1;
}

.field textarea,
.input textarea {
    width: 100%;
    min-height: 80px;
    border: 0;
    background: none;
    outline: 0;
    resize: vertical;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.5;
}

.input.textarea,
.input:has(textarea) {
    height: auto;
    min-height: 96px;
    align-items: flex-start;
    padding: 10px 12px;
}

.input.textarea .ico,
.input:has(textarea) .ico {
    margin-top: 3px;
}

.field select.input-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fcfbf9;
}

.form-ok {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #e3f4ea;
    color: #25704f;
    font-weight: 500;
}

.agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #33444c;
}

.agree input {
    margin-top: 3px;
}

.link {
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Article ---------- */
.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.article-aside {
    position: sticky;
    top: 90px;
}

.toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 500;
}

.toc a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.feature-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/8;
    margin-bottom: 26px;
}

.feature-img .ph {
    height: 100%;
}

.legal h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 28px 0 8px;
}

.legal p,
.legal li {
    color: #33444c;
    max-width: 72ch;
}

.legal ul {
    margin: 0 0 14px 20px;
    list-style: disc;
}

.legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Vehicle detail cards ---------- */
.veh-card .ph {
    aspect-ratio: 214/88;
    background: linear-gradient(180deg, #d9eeeb, #e8f4f2);
}

.veh-card .body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.veh-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
}

.veh-card .rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.8rem;
}

.veh-card .rates div {
    background: var(--sand);
    border-radius: 8px;
    padding: 6px 8px;
}

.veh-card .rates b {
    display: block;
    color: var(--crimson);
    font-family: var(--serif);
}

@media (max-width: 1040px) {
    .grid.g3,
    .grid.g4,
    .grid.g5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .article {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-aside {
        position: static;
    }

    .steps-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .page-hero.has-photo .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero-photo {
        max-width: 520px;
        aspect-ratio: 16/10;
    }

    .hero-vehicle .page-hero-photo,
    .page-hero-photo:has(.ph-vehicle) {
        max-width: 480px;
        margin: 18px auto 0;
        padding: 12px 18px;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 760px) {
    .grid.g2,
    .grid.g3,
    .grid.g4,
    .grid.g5,
    .review-grid,
    .steps-row,
    .facts,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }

    .table.responsive thead {
        display: none;
    }

    .table.responsive tr {
        display: block;
        border-top: 1px solid var(--line);
        padding: 8px 0;
    }

    .table.responsive td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 6px 16px;
        text-align: right;
    }

    .table.responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
        text-align: left;
    }

    .table.responsive tr:hover td {
        background: none;
    }
}

/* ---------- Utilities used by views ---------- */
.spaced {
    margin-top: 18px;
}

.spaced-b {
    margin-bottom: 18px;
}

.top-note {
    margin: -6px 0 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 18px;
}

.feature-card .media-img,
.feature-card .ph {
    height: 100%;
    min-height: 240px;
}

.feature-card .body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.feature-card h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #33444c;
    overflow-wrap: anywhere;
}

.contact-list .ico {
    color: var(--teal);
    flex: none;
    margin-top: 3px;
}

.contact-list a {
    color: var(--teal-dark);
    font-weight: 600;
}

.map-box {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e3f3f2;
    box-shadow: 0 4px 18px rgba(28, 43, 51, 0.08);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.faq-group {
    margin-bottom: 30px;
    scroll-margin-top: 90px;
}

.faq-group h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.jump {
    margin-bottom: 18px;
}

.facts.one {
    grid-template-columns: 1fr;
}

.facts.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap.flat {
    box-shadow: none;
    border: 1px solid var(--line);
}

.steps-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-form {
    margin-top: 30px;
}

.right-link {
    text-align: right;
}

.center-actions {
    justify-content: center;
}

.alert.left {
    text-align: left;
}

.link-list.left {
    text-align: left;
    margin-top: 14px;
}

.eyebrow {
    display: inline-block;
    color: var(--crimson);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 1040px) {
    .steps-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .feature-card {
        grid-template-columns: 1fr;
    }

    .facts.two,
    .steps-3 {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-wrap: wrap;
    }
}

/* ---------- Account menu + admin extras ---------- */
.dd-logout {
    margin: 0;
}

.dd-logout button,
.logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font: inherit;
    /* color: inherit; */
    border-radius: 8px;
    cursor: pointer;
}

.dd-logout button:hover,
.logout-link:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.shot-box img {
    max-width: 100%;
}

.shot-box [hidden] {
    display: none;
}

.admin-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

/* ---------- Reusable Authentication Modal (Phase 5B) ---------- */
dialog.modal.auth-modal {
    width: min(480px, calc(100% - 24px));
    max-height: calc(100vh - 36px);
    margin: auto;
    border: 0;
    padding: 0;
    border-radius: var(--radius-lg, 22px);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-modal .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.auth-modal-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: #0d5a63;
    line-height: 1.2;
    margin-bottom: 4px;
}

.auth-modal-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

.auth-modal-close {
    flex-shrink: 0;
    cursor: pointer;
    transition:
        background-color var(--dur-2) var(--ease-std),
        color var(--dur-2) var(--ease-std),
        transform var(--dur-1) var(--ease-spring);
}

.auth-modal-close:hover {
    background: var(--teal);
    color: #ffffff;
    transform: rotate(90deg);
}

.auth-modal-close:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.auth-modal-body {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        background-color var(--dur-2) var(--ease-std),
        border-color var(--dur-2) var(--ease-std),
        transform var(--dur-1) var(--ease-spring),
        box-shadow var(--dur-2) var(--ease-std);
}

.auth-modal .google-btn b {
    color: #c2274f;
    font-size: 1.1rem;
    font-weight: 800;
}

.auth-modal .google-btn:hover {
    background: #fbfbf9;
    border-color: var(--teal);
    color: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 139, 141, 0.08);
}

.auth-modal .google-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.auth-modal .or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    margin: 2px 0 6px;
}

.auth-modal .or::before,
.auth-modal .or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-modal .auth-main-tabs {
    display: flex;
    width: 100%;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid var(--teal);
    background: var(--teal-soft, #e8f1f0);
}

.auth-modal .auth-main-tabs button:not(.sr-only) {
    flex: 1;
    text-align: center;
    justify-content: center;
    position: relative;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 16px 16px 0 0;
    font-size: 0.94rem;
}

.auth-modal .auth-main-tabs button:not(.sr-only).on::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background: radial-gradient(
        circle at top right,
        transparent 16px,
        var(--teal) 16.5px
    );
}

.auth-modal .auth-main-tabs #tabAuthRegister.on::after {
    right: auto;
    left: -16px;
    background: radial-gradient(
        circle at top left,
        transparent 16px,
        var(--teal) 16.5px
    );
}

.auth-modal .auth-sub-tabs {
    display: flex;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    gap: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.auth-modal .auth-sub-tabs button {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.auth-modal .auth-sub-tabs button.on {
    color: var(--teal);
    background: transparent;
    border-bottom-color: var(--teal);
}

.auth-modal .seg-tabs button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.auth-modal form {
    display: grid;
    gap: 13px;
    margin-top: 2px;
}

/* Sign In stays compact; registration retains its existing field layout. */
#authPanelSignIn form {
    gap: 10px;
}
#authPanelSignIn .input {
    height: 44px;
}
#authPanelSignIn .btn-gold {
    min-height: 44px;
    padding-block: 10px;
}
#authPanelSignIn .or {
    margin: 10px 0;
}
#authPanelSignIn .alt {
    margin-top: 10px;
    font-size: 0.82rem;
}
#authPanelSignIn .auth-form-row {
    gap: 8px;
    font-size: 0.8rem;
}
#authPanelSignIn .agree {
    font-size: 0.8rem;
}
#authPanelSignIn .booking-otp-box {
    padding: 12px;
    margin-top: 10px;
}
#authPanelSignIn .booking-otp-content {
    gap: 8px;
}
#authPanelSignIn .booking-otp-alert {
    margin-bottom: 8px;
}

/* The enclosing field supplies the focus ring; avoid a second inner outline. */
.auth-modal .input input:focus-visible {
    outline: none;
    box-shadow: none;
}

.auth-modal .auth-panel-heading {
    margin-bottom: 12px;
}

.auth-modal .auth-panel-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: #0d5a63;
    margin-bottom: 4px;
}

.auth-modal .auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.auth-modal .auth-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--teal-dark, #0a6b6d);
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--dur-1) var(--ease-std);
}

.auth-modal .auth-link-btn:hover {
    color: var(--crimson, #c2274f);
}

.auth-modal .auth-link-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.auth-modal .alt {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.auth-modal .booking-otp-box {
    background: #f8fafc;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: var(--radius, 10px);
    padding: 16px 18px;
    margin-top: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.auth-modal .booking-otp-alert {
    margin-bottom: 12px;
    font-size: 0.85rem;
    padding: 9px 12px;
}

.auth-modal .booking-otp-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal .booking-otp-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink, #1f2937);
    margin-bottom: 8px;
    text-align: center;
}

.auth-modal .booking-otp-digits {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.auth-modal .booking-otp-digits .otp-digit {
    width: 42px;
    height: 48px;
    border: 1.5px solid var(--line, #cbd5e1);
    border-radius: 8px;
    background: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink, #0f172a);
    outline: none;
    transition:
        border-color var(--dur-1) var(--ease-std),
        box-shadow var(--dur-1) var(--ease-std),
        transform var(--dur-1) var(--ease-spring),
        background var(--dur-1) var(--ease-std);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.auth-modal .booking-otp-digits .otp-digit::-webkit-outer-spin-button,
.auth-modal .booking-otp-digits .otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-modal .booking-otp-digits .otp-digit:focus {
    border-color: var(--teal, #0f8b8d);
    box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.18);
    background: #ffffff;
    transform: translateY(-1px);
}

.auth-modal .booking-otp-digits .otp-digit.is-filled {
    border-color: #94a3b8;
    background: #fbfcfe;
}

.auth-modal .booking-otp-digits.has-error .otp-digit {
    border-color: var(--crimson, #c2274f);
    background: #fff6f8;
}

.auth-modal .booking-otp-digits.shake {
    animation: otpDigitShake 0.35s ease-in-out;
}

.auth-modal .booking-otp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.auth-modal .booking-otp-resend {
    padding: 7px 14px;
    font-size: 0.825rem;
}

.auth-modal .booking-otp-change {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.825rem;
    color: var(--muted, #64748b);
    text-decoration: underline;
    transition: color var(--dur-1) var(--ease-std);
}

.auth-modal .booking-otp-change:hover {
    color: var(--crimson, #c2274f);
}

.auth-modal .booking-otp-error {
    display: none;
    color: var(--crimson, #c2274f);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 6px;
    text-align: center;
}

.auth-modal .pw-toggle {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--dur-1) var(--ease-std);
}

.auth-modal .pw-toggle:hover {
    color: var(--ink);
}

@media (max-width: 480px) {
    dialog.modal.auth-modal {
        width: calc(100% - 16px);
        border-radius: var(--radius, 14px);
    }

    .auth-modal .modal-head {
        padding: 14px 18px 12px;
    }

    .auth-modal-title {
        font-size: 1.2rem;
    }

    .auth-modal-body {
        padding: 12px 18px 16px;
        gap: 12px;
    }

    .auth-modal .booking-otp-digits {
        gap: 6px;
    }

    .auth-modal .booking-otp-digits .otp-digit {
        width: 38px;
        height: 44px;
        font-size: 1.15rem;
    }
}
