/* RV Tours public marketing site - responsive layout */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.rv-body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #0f172a;
    background: #f8fafc;
}

.rv-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.rv-skip {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rv-skip:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #0f766e;
    color: #fff;
    z-index: 10000;
    border-radius: 6px;
}

.rv-main {
    min-height: 52vh;
}

/* Header */
.rv-header {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
    color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.rv-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.rv-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rv-brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.rv-brand-tag {
    font-size: 0.75rem;
    opacity: 0.9;
}

.rv-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.rv-nav.rv-nav-open {
    display: block;
}

.rv-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    justify-content: flex-end;
}

.rv-nav-list a {
    color: #ecfeff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
}

.rv-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.rv-nav-login:hover,
.rv-nav-login:focus {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.rv-nav-login-icon {
    display: block;
    flex-shrink: 0;
}

/* Login icon + menu grouped on small screens */
.rv-header-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.rv-header-login-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ecfeff;
    text-decoration: none;
}

.rv-header-login-top:hover,
.rv-header-login-top:focus {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.rv-nav-list a:hover,
.rv-nav-list a:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.rv-nav-cta {
    background: #f97316;
    color: #fff !important;
    font-weight: 700 !important;
}

.rv-nav-cta:hover,
.rv-nav-cta:focus {
    background: #ea580c !important;
}

@media (max-width: 880px) {
    .rv-header-mobile-actions {
        display: flex;
    }

    .rv-nav-login-item {
        display: none;
    }

    .rv-nav-toggle {
        display: inline-block;
        margin-left: 0;
    }

    .rv-nav {
        display: none;
        width: 100%;
        flex-basis: 100%;
    }

    .rv-nav-list {
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
    }

    .rv-nav-list a {
        display: block;
    }
}

/* Sections */
.rv-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 18px;
}

.rv-section-tight {
    padding-top: 24px;
    padding-bottom: 24px;
}

.rv-hero {
    background: linear-gradient(120deg, #0f172a 0%, #115e59 40%, #14b8a6 100%);
    color: #f0fdfa;
    padding: 48px 18px 56px;
}

.rv-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
}

@media (max-width: 820px) {
    .rv-hero-inner {
        grid-template-columns: 1fr;
    }
}

.rv-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.rv-lead {
    margin: 0 0 22px;
    font-size: 1.05rem;
    opacity: 0.94;
    max-width: 52ch;
}

.rv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rv-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.rv-btn-primary {
    background: #f97316;
    color: #fff;
}

.rv-btn-primary:hover,
.rv-btn-primary:focus {
    background: #ea580c;
    color: #fff;
}

.rv-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.rv-btn-ghost:hover,
.rv-btn-ghost:focus {
    border-color: #fff;
    color: #fff;
}

.rv-btn-dark {
    background: #0f172a;
    color: #fff;
}

.rv-btn-dark:hover,
.rv-btn-dark:focus {
    background: #1e293b;
    color: #fff;
}

.rv-hero-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(8px);
}

.rv-hero-card h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.rv-checklist {
    margin: 0;
    padding-left: 1.15rem;
}

.rv-checklist li {
    margin-bottom: 8px;
}

.rv-muted {
    color: #64748b;
    font-size: 0.95rem;
}

.rv-grid-3 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rv-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.rv-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: #0f766e;
}

.rv-card p {
    margin: 0;
}

.rv-section-title {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.rv-section-sub {
    margin: 0 0 22px;
    max-width: 65ch;
}

/* Tour lists */
.rv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rv-search {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

.rv-tour-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.rv-tour-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rv-tour-code {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f97316;
    text-transform: uppercase;
}

.rv-tour-name {
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0;
    color: #0f172a;
}

.rv-tour-meta {
    font-size: 0.88rem;
    color: #475569;
}

.rv-tour-card a {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    color: #0d9488;
}

.rv-alert {
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.rv-alert-info {
    background: #ecfeff;
    border-color: #67e8f9;
    color: #155e75;
}

/* Detail */
.rv-detail-head {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    color: #fff;
    padding: 28px 18px;
}

.rv-detail-inner {
    max-width: 900px;
    margin: 0 auto;
}

.rv-detail-inner h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.rv-detail-meta {
    opacity: 0.92;
    font-size: 0.95rem;
}

.rv-detail-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 18px 48px;
}

.rv-detail-block {
    margin-bottom: 22px;
}

.rv-detail-block h2 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #0f766e;
}

.rv-pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
}

.rv-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

table.rv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

table.rv-table th,
table.rv-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

table.rv-table th {
    background: #f1f5f9;
    font-weight: 700;
}

/* Forms */
.rv-form {
    max-width: 560px;
}

.rv-field {
    margin-bottom: 16px;
}

.rv-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.rv-field input,
.rv-field select,
.rv-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: inherit;
}

.rv-field textarea {
    min-height: 120px;
    resize: vertical;
}

.rv-field-note {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}

.rv-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rv-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Gallery */
.rv-gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.rv-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: linear-gradient(145deg, #ccfbf1, #99f6e4);
    border: 1px solid #99f6e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #115e59;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Footer */
.rv-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 40px;
}

.rv-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 18px;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rv-footer-brand {
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.rv-footer-heading {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.rv-footer-muted {
    margin: 0;
    font-size: 0.92rem;
}

.rv-footer a {
    color: #5eead4;
}

.rv-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rv-footer-links li {
    margin-bottom: 8px;
}

.rv-footer-bar {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 14px 18px;
    text-align: center;
    font-size: 0.82rem;
}

/* WhatsApp widget */
.rv-wa-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #22c55e;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.45);
    cursor: pointer;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-wa-fab:focus {
    outline: 3px solid #bbf7d0;
    outline-offset: 2px;
}

.rv-wa-fab-inner {
    font-weight: 900;
    font-size: 0.78rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.rv-wa-fab-inner::before {
    content: "WA";
}

.rv-wa-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 960;
}

.rv-wa-panel {
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: min(340px, calc(100vw - 36px));
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    z-index: 970;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.rv-wa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 800;
}

.rv-wa-close {
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
}

.rv-wa-intro {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #475569;
}

.rv-wa-actions {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.rv-wa-actions li {
    margin-bottom: 8px;
}

.rv-wa-actions button {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
}

.rv-wa-actions button:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.rv-wa-muted {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #64748b;
}

.rv-btn-wa {
    display: block;
    width: 100%;
    background: #22c55e;
    color: #fff;
    text-align: center;
}

.rv-btn-wa:hover,
.rv-btn-wa:focus {
    background: #16a34a;
    color: #fff;
}

.breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #0d9488;
    font-weight: 600;
}
