/* ==========================================================================
   East West Travel — v2 visual layer
   Loaded after ewt.css. Keeps the original grid/list structure and admin
   controls, but updates the public shell, typography and surfaces.
   ========================================================================== */

:root {
    --ink: #14262f;
    --ink-soft: #465861;
    --muted: #6f7d84;
    --paper: #fffdf8;
    --sand: #f4eee5;
    --sand-deep: #e9dfd2;
    --navy: #0e2a36;
    --navy-soft: #123b49;
    --teal: #1f6f78;
    --teal-dark: #15575f;
    --coral: #d97757;
    --gold: #c7a36a;
    --line: rgba(20, 38, 47, 0.12);
    --shadow-sm: 0 6px 18px rgba(20, 38, 47, 0.08);
    --shadow-md: 0 20px 50px rgba(20, 38, 47, 0.13);
    --shadow-lg: 0 30px 70px rgba(20, 38, 47, 0.18);
    --font-body: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}


body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
    background:
        radial-gradient(1100px 560px at 90% -10%, rgba(31, 111, 120, 0.12), transparent 60%),
        radial-gradient(900px 520px at -10% 18%, rgba(217, 119, 87, 0.09), transparent 58%),
        var(--sand);
}

/* ==========================================================================
   Hero + top navigation
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 1.1rem 0 150px;
    color: #fff;
    border-radius: 0 0 42px 42px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 25, 33, 0.84) 0%, rgba(7, 25, 33, 0.42) 48%, rgba(7, 25, 33, 0.7) 100%),
        url('/assets/images/main-page_img2.webp') center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, rgba(244, 238, 229, 0.92) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(8, 30, 39, 0.42);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    backdrop-filter: blur(16px) saturate(1.1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 46px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.brand-mark img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.98rem;
}

.brand-text small {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
}

.nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .nav-link:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    transform: none;
}

.nav-links .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-links .admin-link {
    margin-left: 0.15rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.79rem;
    font-weight: 600;
}

.nav-links .admin-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    transform: none;
}

.nav-links .add-tour-link {
    border-color: rgba(199, 163, 106, 0.42);
    background: rgba(199, 163, 106, 0.16);
    color: #f6e4c3;
}

.hero-copy {
    max-width: 790px;
    margin: 4.2rem auto 0;
    padding: 0 1rem;
    text-align: center;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
    animation: heroIn 0.7s ease-out both;
}

.hero-copy p {
    max-width: 630px;
    margin: 0 auto 1.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.7;
    animation: heroIn 0.7s ease-out 0.12s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    animation: heroIn 0.7s ease-out 0.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 12px 26px rgba(31, 111, 120, 0.3);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(31, 111, 120, 0.38);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Main content surface
   ========================================================================== */

main.container {
    position: relative;
    z-index: 3;
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: -118px auto 0;
    padding: 0 1.25rem;
}

.content-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    border: 1px solid rgba(20, 38, 47, 0.08);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.content-container > .view-toggle:first-child {
    margin-top: 0;
}

.page-content {
    color: var(--ink-soft);
    line-height: 1.75;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.page-content a {
    color: var(--teal);
}

/* ==========================================================================
   About page
   ========================================================================== */

.content-container .about-us-section {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.content-container .about-us-section:hover {
    transform: none;
    box-shadow: none;
}

.content-container .about-us-section > .about-us-item:first-child {
    margin-bottom: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.content-container .about-us-item:first-child:hover {
    transform: none;
    box-shadow: none;
}

.content-container .about-us-content h1 {
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.content-container .about-us-content h3 {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    font-weight: 500;
    line-height: 1.65;
}

.content-container .about-us-columns {
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.content-container .about-us-item {
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-container .about-us-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.content-container .about-us-content {
    flex: 1;
    padding: 0;
}

.content-container .about-us-content h2 {
    margin: 0 0 0.55rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.content-container .about-us-content p {
    margin-bottom: 0.35rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.65;
}

.content-container .about-us-image {
    width: 100%;
    height: 220px;
    margin: 1rem 0 0;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(20, 38, 47, 0.12);
    transition: transform 0.35s ease;
}

.content-container .about-us-item:hover .about-us-image {
    transform: scale(1.015);
}

/* ==========================================================================
   Tours: shared controls
   ========================================================================== */

.view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    margin: 0 auto 2rem;
    padding: 0.32rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.content-container > .view-toggle {
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.58rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.toggle-btn:hover {
    background: #f4eee5;
    color: var(--ink);
    transform: none;
    box-shadow: none;
}

.toggle-btn.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 6px 15px rgba(14, 42, 54, 0.2);
}

.toggle-btn.add-tour-style {
    margin-left: 0.25rem;
    background: var(--teal);
    color: #fff;
}

.toggle-btn.add-tour-style:hover {
    background: var(--teal-dark);
    color: #fff;
}

/* ==========================================================================
   Tours: list
   ========================================================================== */

.tours-list .tour-item {
    display: flex;
    margin-bottom: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tours-list .tour-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tours-list .tour-image {
    width: 320px;
    height: 230px;
    flex: 0 0 320px;
    border-radius: 0;
    object-fit: cover;
}

.tours-list .tour-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 1.6rem;
}

.tours-list .tour-title {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.tours-list .tour-description {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.tour-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.tour-description {
    color: var(--ink-soft);
    line-height: 1.65;
}

.tour-price {
    color: var(--coral);
    font-family: var(--font-body);
    font-weight: 800;
}

/* ==========================================================================
   Tours: cards
   ========================================================================== */

.tours-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.tours-cards .tour-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tours-cards .tour-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.tours-cards .tour-image {
    width: 100%;
    height: 220px;
    border-radius: 0;
    object-fit: cover;
}

.tours-cards .tour-content {
    padding: 1.25rem 1.35rem 1.4rem;
}

.tours-cards .tour-title {
    font-size: 1.32rem;
}

/* Facebook / More details */
.facebook-btn {
    align-self: flex-start;
    padding: 0.62rem 1.05rem;
    border-radius: 999px;
    background: #1877f2;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-transform: none;
}

.facebook-btn:hover {
    background: #1269dd;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.25);
}

/* Admin actions in tour cards */
.tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tour-actions .action-btn {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: 4.5rem;
    padding: 3.4rem 0 1.4rem;
    border-radius: 38px 38px 0 0;
    background:
        radial-gradient(700px 300px at 80% 0%, rgba(31, 111, 120, 0.34), transparent 65%),
        var(--navy);
    color: rgba(255, 255, 255, 0.72);
}

.footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto 1.8rem;
    padding: 0 1.25rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.85;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-logo {
    max-width: 210px;
    padding: 9px 13px;
    border-radius: 14px;
    background: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.82rem;
    text-align: center;
}

/* ==========================================================================
   Admin controls (kept in the same admin flow)
   ========================================================================== */

.edit-content-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    margin: 0 0.45rem 0.85rem 0;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.edit-content-btn:hover {
    background: var(--teal);
    transform: translateY(-1px);
}

.edit-seo-btn {
    background: var(--teal);
}

.edit-seo-btn:hover {
    background: var(--teal-dark);
}

.action-btn {
    border-radius: 11px;
    padding: 0.68rem 1rem;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.add-btn {
    background: var(--teal);
}

.add-btn:hover {
    background: var(--teal-dark);
}

.update-btn {
    background: var(--navy);
}

.update-btn:hover {
    background: var(--navy-soft);
}

.delete-btn {
    background: #b64545;
}

.delete-btn:hover {
    background: #9f3737;
}

.cancel-btn {
    background: #e8e1d7;
    color: var(--ink);
}

.cancel-btn:hover {
    background: #ddd3c5;
    color: var(--ink);
}

.modal {
    background: rgba(7, 25, 33, 0.62);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    border: 1px solid rgba(20, 38, 47, 0.08);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    color: var(--muted);
}

.modal-close:hover {
    color: var(--ink);
}

#tour-form input,
#tour-form textarea,
#tour-form select,
#password-form input,
#seo-form input,
#seo-form textarea,
#site-seo-form input {
    border-color: var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-body);
}

#tour-form input:focus,
#tour-form textarea:focus,
#password-form input:focus,
#seo-form input:focus,
#seo-form textarea:focus,
#site-seo-form input:focus {
    outline: 2px solid rgba(31, 111, 120, 0.25);
    border-color: var(--teal);
}

.image-grid {
    border-color: var(--line);
    border-radius: 12px;
    background: #fff;
}

.thumbnail {
    border-radius: 7px;
}

.image-item.selected .thumbnail {
    border-color: var(--teal);
}

.spinner {
    border-top-color: var(--teal);
}

/* ==========================================================================
   Login page
   ========================================================================== */

body.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(7, 25, 33, 0.78), rgba(7, 25, 33, 0.62)),
        url('/assets/images/main-page_img2.webp') center / cover no-repeat;
}

.login-shell {
    width: min(420px, 100%);
    padding: 2.35rem 2rem 1.65rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    text-align: center;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: inline-grid;
    place-items: center;
    width: 132px;
    margin: 0 auto 1.1rem;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.login-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.login-shell h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.login-subtitle {
    margin: 0.35rem 0 1.45rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.login-shell form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: left;
}

.login-shell input {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-shell input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.14);
}

.login-shell button {
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-shell button:hover {
    background: var(--teal);
    transform: translateY(-1px);
}

.login-shell .error {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    background: #fbe9e7;
    color: #a33c2f;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
}

.login-back {
    margin: 1.2rem 0 0;
    font-size: 0.78rem;
}

.login-back a {
    color: var(--muted);
    text-decoration: none;
}

.login-back a:hover {
    color: var(--teal);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding-bottom: 120px;
    }

    main.container {
        margin-top: -88px;
    }

    .tours-list .tour-image {
        width: 280px;
        flex-basis: 280px;
        height: 215px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 0;
        padding: 0.85rem 0 105px;
        border-radius: 0 0 28px 28px;
    }

    .hero-inner {
        padding: 0 0.9rem;
    }

    .topbar {
        gap: 0.75rem;
        padding: 0.7rem;
        border-radius: 15px;
    }

    .brand-mark {
        width: 56px;
        height: 40px;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 0.1rem;
    }

    .nav-links .nav-link {
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
    }

    .nav-links .admin-link {
        font-size: 0.72rem;
        padding: 0.38rem 0.55rem;
    }

    .hero-copy {
        margin-top: 2.8rem;
        padding: 0 0.35rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 12vw, 3.4rem);
    }

    .hero-copy p {
        font-size: 0.95rem;
    }

    main.container {
        margin-top: -70px;
        padding: 0 0.85rem;
    }

    .content-container {
        padding: 1rem;
        border-radius: 20px;
    }

    .view-toggle {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .toggle-btn {
        flex: 0 0 auto;
    }

    .tours-list .tour-item {
        flex-direction: column;
    }

    .tours-list .tour-image {
        width: 100%;
        height: 205px;
        flex-basis: auto;
    }

    .tours-list .tour-content {
        padding: 1.1rem;
    }

    .tours-list .tour-title {
        font-size: 1.28rem;
    }

    .tours-cards {
        grid-template-columns: 1fr;
    }

    .content-container .about-us-columns {
        grid-template-columns: 1fr;
    }

    .content-container .about-us-image {
        height: 210px;
    }

    .footer {
        margin-top: 3rem;
        border-radius: 28px 28px 0 0;
    }

    .footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .login-shell {
        padding: 1.8rem 1.2rem 1.35rem;
    }
}


/* Page content editor: roughly 2x the tour modal, with a taller TinyMCE area. */
#pageModal .modal-content {
    width: min(1280px, 94vw);
    max-width: 1280px;
    max-height: 92vh;
    overflow-y: auto;
}

#pageModal textarea {
    min-height: 560px;
    resize: vertical;
}

#pageModal .tox-tinymce {
    border-radius: 10px;
}

@media (max-width: 768px) {
    #pageModal .modal-content {
        width: 96vw;
        max-height: 94vh;
    }

    #pageModal textarea {
        min-height: 420px;
    }
}
