/* ============================================================
   Article layout & typography preset
   Used by content pages (about, policies, travel info, etc.)
   Designed to make any CKEditor HTML look great with no per-page CSS.
   ============================================================ */

:root {
    --ar-theme: var(--theme-color, #af0000);
    --ar-theme-soft: rgba(175, 0, 0, .08);
    --ar-heading: #1f2530;
    --ar-body: #3a4049;
    --ar-muted: #6c727a;
    --ar-border: #e6e8ee;
    --ar-bg-soft: #f7f8fb;
    --ar-bg-card: #ffffff;
    --ar-shadow-sm: 0 4px 14px rgba(20, 24, 31, .05);
    --ar-shadow-md: 0 10px 30px rgba(20, 24, 31, .07);
    --ar-shadow-lg: 0 20px 50px rgba(20, 24, 31, .12);
    --ar-radius-sm: 10px;
    --ar-radius-md: 16px;
    --ar-radius-lg: 22px;
}

.ar-page {
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 520px);
    min-height: 60vh;
}

/* -------- Hero -------- */
.ar-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    padding: clamp(90px, 14vw, 180px) 0 clamp(70px, 10vw, 130px);
}
.ar-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 24, 31, .82) 0%, rgba(30, 16, 16, .72) 100%);
    z-index: -1;
}
.ar-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.04);
    filter: saturate(1.05);
}
.ar-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
.ar-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
}
.ar-hero__title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -.01em;
}
.ar-hero__subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    margin: 0 auto 22px;
    max-width: 680px;
    font-weight: 400;
}
.ar-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    margin-top: 8px;
}
.ar-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ar-hero__meta i { opacity: .75; }

/* -------- Breadcrumb (slim, sits under hero) -------- */
.ar-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--ar-border);
    padding: 14px 0;
    font-size: 13px;
}
.ar-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ar-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--ar-muted); }
.ar-breadcrumb li + li::before {
    content: "›";
    color: #c2c6ce;
    margin-right: 2px;
}
.ar-breadcrumb a { color: var(--ar-muted); text-decoration: none; transition: color .15s; }
.ar-breadcrumb a:hover { color: var(--ar-theme); }
.ar-breadcrumb li.is-active { color: var(--ar-heading); font-weight: 600; }

/* -------- Inner tab strip (sibling pages in the same group) -------- */
.ar-tabs {
    position: sticky;
    top: var(--header-h, 80px);
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--ar-border);
    box-shadow: 0 1px 0 var(--ar-border);
}
.ar-tabs__wrap {
    position: relative;
}
.ar-tabs__scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 24px;
}
.ar-tabs__scroll::-webkit-scrollbar { display: none; }

/* Prev / next overflow controls — only shown when the row can't fit. */
.ar-tabs__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    display: flex;
    align-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ar-heading);
    font-size: 15px;
    z-index: 2;
    transition: opacity .15s;
}
.ar-tabs__arrow[hidden] { display: none; }
.ar-tabs__arrow--prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 4px;
    background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0));
}
.ar-tabs__arrow--next {
    right: 0;
    justify-content: flex-end;
    padding-right: 4px;
    background: linear-gradient(270deg, #fff 55%, rgba(255, 255, 255, 0));
}
.ar-tabs__arrow i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--ar-shadow-sm);
    border: 1px solid var(--ar-border);
    transition: color .15s, border-color .15s, background .15s;
}
.ar-tabs__arrow:hover i {
    color: var(--ar-theme);
    border-color: var(--ar-theme);
}
.ar-tabs__arrow:focus-visible {
    outline: none;
}
.ar-tabs__arrow:focus-visible i {
    outline: 2px solid var(--ar-theme);
    outline-offset: 2px;
}
/* Give the row breathing room past the arrows so tabs aren't hidden under them. */
.ar-tabs.has-overflow .ar-tabs__list {
    padding-inline: 8px;
}
.ar-tabs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    min-width: max-content;
}
.ar-tabs__item a {
    display: inline-flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ar-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.ar-tabs__item a:hover { color: var(--ar-heading); }
.ar-tabs__item a.is-active {
    color: var(--ar-theme);
    border-bottom-color: var(--ar-theme);
}

/* -------- Article body -------- */
.ar-body {
    padding: clamp(50px, 8vw, 90px) 0;
}
.ar-body__layout {
    display: grid;
    gap: 60px;
    margin: 0 auto;
    padding: 0 20px;
}
/* With TOC: two-column on desktop, stack on mobile */
.ar-body__layout--with-toc {
    grid-template-columns: minmax(0, 760px) 280px;
    max-width: 1140px;
}
/* No TOC: single centered column — no reserved empty space */
.ar-body__layout--solo {
    grid-template-columns: minmax(0, 760px);
    max-width: 800px;
}
@media (max-width: 991px) {
    .ar-body__layout--with-toc {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -------- Useful sidebar (fallback when no TOC) -------- */
.ar-sidebar {
    position: sticky;
    top: calc(var(--header-h, 80px) + 80px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
@media (max-width: 991px) { .ar-sidebar { position: static; } }

.ar-sidebar__card {
    background: #fff;
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius-md);
    padding: 20px;
    box-shadow: var(--ar-shadow-sm);
}
.ar-sidebar__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--ar-muted);
    margin: 0 0 14px;
}

/* Links list */
.ar-sidebar__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ar-sidebar__links li + li {
    margin-top: 6px;
}
.ar-sidebar__links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--ar-radius-sm);
    text-decoration: none;
    color: var(--ar-heading);
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, transform .15s;
}
.ar-sidebar__links a:hover {
    background: var(--ar-bg-soft);
    border-color: var(--ar-border);
    transform: translateX(2px);
}
.ar-sidebar__link-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(175, 0, 0, .08);
    color: var(--ar-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background .15s, color .15s;
}
.ar-sidebar__links a:hover .ar-sidebar__link-icon {
    background: var(--ar-theme);
    color: #fff;
}
.ar-sidebar__link-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ar-sidebar__link-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ar-heading);
    line-height: 1.25;
}
.ar-sidebar__link-desc {
    font-size: 12px;
    color: var(--ar-muted);
    line-height: 1.4;
}
.ar-sidebar__link-chev {
    flex-shrink: 0;
    color: var(--ar-muted);
    font-size: 13px;
    opacity: 0;
    transition: opacity .15s, transform .15s;
}
.ar-sidebar__links a:hover .ar-sidebar__link-chev {
    opacity: 1;
    color: var(--ar-theme);
    transform: translateX(2px);
}

/* Tour suggestions list */
.ar-sidebar__tours {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.ar-sidebar__tours li + li {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--ar-border);
}
.ar-sidebar__tours a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-radius: var(--ar-radius-sm);
    text-decoration: none;
    color: var(--ar-heading);
    transition: background .15s;
}
.ar-sidebar__tours a:hover { background: var(--ar-bg-soft); }
.ar-sidebar__tour-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ar-bg-soft);
}
.ar-sidebar__tour-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .35s;
}
.ar-sidebar__tours a:hover .ar-sidebar__tour-thumb img { transform: scale(1.06); }
.ar-sidebar__tour-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ar-sidebar__tour-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ar-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ar-sidebar__tour-date {
    font-size: 11.5px;
    color: var(--ar-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.ar-sidebar__see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ar-theme);
    text-decoration: none;
    transition: gap .2s;
}
.ar-sidebar__see-all:hover { gap: 10px; }

/* TOC list inside the sidebar card */
.ar-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.ar-toc-list li { margin: 0; }
.ar-toc-list a {
    display: block;
    padding: 7px 0;
    color: var(--ar-body);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -14px;
    line-height: 1.4;
    transition: color .15s, border-color .15s;
}
.ar-toc-list a:hover,
.ar-toc-list a.is-active {
    color: var(--ar-theme);
    border-left-color: var(--ar-theme);
}
.ar-toc-list li.lvl-3 a {
    padding-left: 24px;
    font-size: 13px;
    color: var(--ar-muted);
}

/* -------- TOC sidebar -------- */
.ar-toc {
    position: sticky;
    top: calc(var(--header-h, 80px) + 80px);
    align-self: start;
    background: #fff;
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius-md);
    padding: 22px 24px;
    box-shadow: var(--ar-shadow-sm);
    font-size: 14px;
}
.ar-toc__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--ar-muted);
    margin: 0 0 14px;
}
.ar-toc ul { list-style: none; margin: 0; padding: 0; }
.ar-toc li { margin: 0; }
.ar-toc a {
    display: block;
    padding: 8px 0;
    color: var(--ar-body);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -14px;
    transition: color .15s, border-color .15s;
    line-height: 1.4;
}
.ar-toc a:hover, .ar-toc a.is-active {
    color: var(--ar-theme);
    border-left-color: var(--ar-theme);
}
.ar-toc li.lvl-3 a { padding-left: 24px; font-size: 13px; color: var(--ar-muted); }
@media (max-width: 991px) { .ar-toc { display: none; } }

/* -------- Article content typography -------- */
.article-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ar-body);
    word-wrap: break-word;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p {
    margin: 0 0 1.25em;
}
.article-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--ar-heading);
    line-height: 1.25;
    margin: 2em 0 .65em;
    letter-spacing: -.005em;
    scroll-margin-top: 140px;
}
.article-content h3 {
    font-size: clamp(20px, 2.3vw, 24px);
    font-weight: 700;
    color: var(--ar-heading);
    line-height: 1.3;
    margin: 1.8em 0 .55em;
    scroll-margin-top: 140px;
}
.article-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ar-heading);
    margin: 1.6em 0 .5em;
}
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child { margin-top: 0; }

.article-content a {
    color: var(--ar-theme);
    text-decoration: none;
    border-bottom: 1.5px solid rgba(175, 0, 0, .25);
    transition: border-color .15s, color .15s;
}
.article-content a:hover {
    border-bottom-color: var(--ar-theme);
}

.article-content strong, .article-content b { font-weight: 700; color: var(--ar-heading); }
.article-content em, .article-content i { font-style: italic; }

.article-content ul, .article-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}
.article-content li {
    margin: 0 0 .55em;
    padding-left: .25em;
}
.article-content li::marker { color: var(--ar-theme); }
.article-content ul ul, .article-content ol ol,
.article-content ul ol, .article-content ol ul {
    margin: .5em 0 .8em;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 22px 28px;
    background: var(--ar-bg-soft);
    border-left: 4px solid var(--ar-theme);
    border-radius: 0 var(--ar-radius-sm) var(--ar-radius-sm) 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ar-heading);
    font-style: italic;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--ar-muted);
    font-style: normal;
}

.article-content hr {
    border: 0;
    border-top: 1px solid var(--ar-border);
    margin: 2.5em 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ar-radius-md);
    margin: 1.5em 0;
    box-shadow: var(--ar-shadow-sm);
}

.article-content figure {
    margin: 2em 0;
    text-align: center;
}
.article-content figure img { margin: 0; }
.article-content figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ar-muted);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 15px;
    background: #fff;
    border-radius: var(--ar-radius-sm);
    overflow: hidden;
    box-shadow: var(--ar-shadow-sm);
}
.article-content table th,
.article-content table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--ar-border);
}
.article-content table th {
    background: var(--ar-bg-soft);
    font-weight: 700;
    color: var(--ar-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.article-content table tr:last-child td { border-bottom: 0; }
.article-content table tr:hover td { background: rgba(247, 248, 251, .5); }

.article-content code {
    background: var(--ar-bg-soft);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: var(--ar-heading);
}
.article-content pre {
    background: #1f2530;
    color: #e6e8ee;
    padding: 22px;
    border-radius: var(--ar-radius-sm);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.55;
}
.article-content pre code { background: transparent; color: inherit; padding: 0; }

/* Anchor heading icons (added by JS) */
.article-content .heading-anchor {
    opacity: 0;
    margin-left: 10px;
    color: var(--ar-muted);
    text-decoration: none;
    border: 0;
    font-size: .7em;
    vertical-align: middle;
    transition: opacity .2s, color .15s;
}
.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content h4:hover .heading-anchor { opacity: 1; }
.article-content .heading-anchor:hover { color: var(--ar-theme); }

/* Empty state */
.article-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ar-muted);
    border: 1px dashed var(--ar-border);
    border-radius: var(--ar-radius-md);
    background: var(--ar-bg-soft);
}

/* -------- CTA banner -------- */
.ar-cta {
    margin: clamp(40px, 8vw, 80px) auto 0;
    max-width: 1140px;
    padding: 0 20px;
}
.ar-cta__inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #1f2530 0%, #2d1313 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 64px);
    border-radius: var(--ar-radius-lg);
    box-shadow: var(--ar-shadow-md);
    isolation: isolate;
}
.ar-cta__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/hero/3.jpg');
    background-size: cover;
    background-position: center;
    opacity: .22;
    z-index: -1;
}
.ar-cta__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
@media (max-width: 767px) {
    .ar-cta__grid { grid-template-columns: 1fr; }
}
.ar-cta__eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
    margin-bottom: 10px;
}
.ar-cta__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}
.ar-cta__text {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
    max-width: 540px;
}
.ar-cta__btn {
    background: #fff;
    color: var(--ar-theme);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}
.ar-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
    color: var(--ar-theme);
}

/* -------- Print -------- */
@media print {
    .ar-hero { padding: 30px 0; color: #000; }
    .ar-hero::after, .ar-hero__bg { display: none; }
    .ar-hero__eyebrow, .ar-hero__title, .ar-hero__subtitle, .ar-hero__meta { color: #000; }
    .ar-tabs, .ar-toc, .ar-cta, .ar-breadcrumb,
    header, footer, .progress-wrap, .contact-us-float, .offset-social { display: none !important; }
    .ar-body { padding: 0; }
    .ar-body__layout { display: block; max-width: 100%; padding: 0; }
    .article-content { font-size: 12pt; line-height: 1.6; }
    .article-content h2 { font-size: 18pt; page-break-after: avoid; }
    .article-content h3 { font-size: 14pt; page-break-after: avoid; }
    .article-content img { page-break-inside: avoid; max-width: 100%; }
    a { color: #000 !important; border: 0 !important; text-decoration: underline; }
}
