/* ---------- Theme variables ---------- */
:root,
[data-theme="dark"] {
    /* Default theme: Dark */
    --ink: #f5f5f5;
    --paper: #121212;
    --paper-rgb: 18, 18, 18;
    --paper-soft: #181818;
    --paper-deep: #2b2b2b;
    --panel: rgba(255, 255, 255, 0.05);
    --accent: #ff8c42;
    --accent-rgb: 255, 140, 66;
    --accent-soft: #ffb86c;
    --accent-soft-rgb: 255, 184, 108;
    --ink-on-accent: #121212;
    --line: rgba(245, 245, 245, 0.14);
    --muted: #9a9a9a;
}

[data-theme="light"] {
    --ink: #151515;
    --paper: #ffffff;
    --paper-rgb: 255, 255, 255;
    --paper-soft: #f7f7f7;
    --paper-deep: #e6e0d6;
    --accent: #8a4f2a;
    --accent-rgb: 138, 79, 42;
    --accent-soft: #b86b2b;
    --accent-soft-rgb: 184, 107, 43;
    --ink-on-accent: #ffffff;
    --line: rgba(21, 21, 21, 0.14);
    --muted: #6b6b6b;
}

[data-theme="sepia"] {
    --ink: #2b2b2b;
    --paper: #f4ecd8;
    --paper-rgb: 244, 236, 216;
    --paper-soft: #efe4cc;
    --paper-deep: #d6c3a3;
    --accent: #a86b3a;
    --accent-rgb: 168, 107, 58;
    --accent-soft: #c2945a;
    --accent-soft-rgb: 194, 148, 90;
    --ink-on-accent: #f4ecd8;
    --line: rgba(43, 43, 43, 0.14);
    --muted: #8b7b6a;
}

[data-theme="ocean"] {
    --ink: #dff0ee;
    --paper: #0e1417;
    --paper-rgb: 14, 20, 23;
    --paper-soft: #19242a;
    --paper-deep: #2b3942;
    --accent: #c4a84a;
    --accent-rgb: 196, 168, 74;
    --accent-soft: #6ecaba;
    --accent-soft-rgb: 110, 202, 186;
    --ink-on-accent: #0e1417;
    --line: rgba(223, 240, 238, 0.14);
    --muted: #6a9090;
}

[data-theme="ruby"] {
    --ink: #f5e6e6;
    --paper: #1a0505;
    --paper-rgb: 26, 5, 5;
    --paper-soft: #240808;
    --paper-deep: #3d0f0f;
    --accent: #d43f3f;
    --accent-rgb: 212, 63, 63;
    --accent-soft: #f4776b;
    --accent-soft-rgb: 244, 119, 107;
    --ink-on-accent: #f5e6e6;
    --line: rgba(245, 230, 230, 0.14);
    --muted: #a97d7d;
}

[data-theme="sand"] {
    --ink: #f2ebe0;
    --paper: #13100c;
    --paper-rgb: 19, 16, 12;
    --paper-soft: #1c1814;
    --paper-deep: #352e24;
    --accent: #a06840;
    --accent-rgb: 160, 104, 64;
    --accent-soft: #d4956a;
    --accent-soft-rgb: 212, 149, 106;
    --ink-on-accent: #f2ebe0;
    --line: rgba(242, 235, 224, 0.14);
    --muted: #9a8870;
}

[data-theme="fire"] {
    --ink: #fbe9e7;
    --paper: #140b0b;
    --paper-rgb: 20, 11, 11;
    --paper-soft: #2a1c1c;
    --paper-deep: #4d2e2e;
    --accent: #ff5e13;
    --accent-rgb: 255, 94, 19;
    --accent-soft: #ff8c42;
    --accent-soft-rgb: 255, 140, 66;
    --ink-on-accent: #140b0b;
    --line: rgba(251, 233, 231, 0.14);
    --muted: #9a5a4f;
}

/* ---------- Base reset ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

a { color: inherit; }

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

/* Landing page (index.php) centers its content vertically instead of stacking sections */
body.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px;
}

/* ---------- Layout helpers ---------- */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: 100%;
    text-align: center;
}

/* ---------- Background texture ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 10%, rgba(var(--accent-rgb), 0.16), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(var(--accent-soft-rgb), 0.10), transparent 45%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
}

.landing .bg {
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.18), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(var(--accent-soft-rgb), 0.12), transparent 45%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
}

.landing .bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.route-line {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    stroke-dasharray: 6 10;
    stroke-linecap: round;
}

.plane {
    display: inline-block;
    color: var(--accent);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.plane svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
}

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

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero .badge { margin-bottom: 22px; }
.content .badge { margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn.ghost:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }

.btn.soft {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn.soft:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }

/* ---------- Headings ---------- */
h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

h1 span { color: var(--accent); font-style: italic; }

.content h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin: 0 0 14px;
    line-height: 1.15;
}

/* ---------- Header / Nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(var(--paper-rgb), 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.brand span { color: var(--accent); font-style: italic; }

nav.links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

nav.links a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

nav.links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.edit-journal-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.edit-journal-link:hover {
    background: var(--accent);
    color: var(--ink-on-accent);
}

.back-link:hover { color: var(--accent); }

/* ---------- Section shared ---------- */
section { padding: 88px 0; }

.section-head {
    max-width: 800px;
    margin: 0 0 48px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 700;
    margin: 0 0 12px;
}

.section-head p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Tag chips (Journal topics + article tags) ---------- */
.topics { margin: -8px 0 36px; }

.article-tags {
    margin: 44px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.topics .label,
.article-tags .label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
}

.topics .chips,
.article-tags .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink);
    background: var(--panel);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
}

/* ---------- Landing page content (index.php) ---------- */
.logo-mark {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.tagline {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: var(--muted);
    margin: 0 0 40px;
    line-height: 1.6;
}

.contact {
    font-size: 14px;
    color: var(--muted);
}

.contact a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    transition: color 0.2s ease;
}

.contact a:hover { color: var(--accent); }

footer {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---------- Hero (home.php) ---------- */
.hero {
    padding: 96px 0 80px;
    position: relative;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero p.lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stats div strong {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    color: var(--ink);
}

.hero-stats div small {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-visual {
    position: relative;
    min-height: 480px;
}

.hero-visual .flight-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.hero-visual .plane {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 1;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
    offset-path: path('M 20 400 Q 140 320 190 220 T 350 60');
    animation: fly 9s linear infinite;
}

.hero-visual .plane svg {
    width: 100%;
    height: 100%;
}

@keyframes fly {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

.photo-card {
    position: absolute;
    width: 58%;
    padding: 10px 10px 30px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    animation: drift 7s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.photo-card .photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 5px;
    object-fit: cover;
}

.photo-card .cap {
    display: block;
    margin-top: 8px;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 12.5px;
    color: var(--ink);
    opacity: 0.85;
}

.card-1 { --r: -9deg; top: 6%; left: 2%; width: 56%; z-index: 3; animation-delay: 0s; }
.card-2 { --r: 7deg; top: 34%; left: 38%; width: 54%; z-index: 2; animation-delay: 1.6s; }

@keyframes drift {
    0%, 100% { transform: rotate(var(--r)) translateY(0); }
    50% { transform: rotate(var(--r)) translateY(-10px); }
}

.photo-card:hover {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-10px) scale(1.06);
    z-index: 5;
}

.hero-visual .stamp {
    position: absolute;
    top: 2%;
    right: 4%;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-family: 'Georgia', serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--paper-rgb), 0.7);
    backdrop-filter: blur(6px);
    --r: 10deg;
    transform: rotate(var(--r));
    animation: drift 7s ease-in-out infinite;
    animation-delay: 0.8s;
    z-index: 4;
}

.hero-visual .tag {
    position: absolute;
    left: 6%;
    bottom: 6%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    background: rgba(var(--paper-rgb), 0.85);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --r: -3deg;
    transform: rotate(var(--r));
    animation: drift 7s ease-in-out infinite;
    animation-delay: 2.4s;
    z-index: 4;
}

.hero-visual .tag img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-visual .tag span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Journal grid (home.php) ---------- */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dest-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.dest-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.dest-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(var(--paper-rgb),0) 30%, rgba(var(--paper-rgb),0.92) 100%);
}

.dest-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.dest-card .info {
    position: relative;
    z-index: 2;
}

.dest-card .info .place {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.dest-card .info .meta {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

.dest-card .read-time {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(var(--paper-rgb), 0.75);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ---------- How it works (home.php) ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 22px;
}

.step .num {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.step h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.step p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Why us / features (home.php) ---------- */
.why {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.why-visual {
    border-radius: 20px;
    border: 1px solid var(--line);
    aspect-ratio: 1/1;
    background:
        radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.28), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(var(--accent-soft-rgb), 0.22), transparent 55%),
        linear-gradient(160deg, var(--paper-deep), var(--paper) 70%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.why-visual .route-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
}

.planner-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    background: rgba(var(--paper-rgb), 0.85);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    --r: -2deg;
    transform: rotate(var(--r));
    animation: drift 7s ease-in-out infinite;
}

.planner-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.planner-head .avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.planner-head strong { display: block; font-size: 14px; }
.planner-head small { color: var(--muted); font-size: 11.5px; }

.online-dot {
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3ecf6a;
    box-shadow: 0 0 0 3px rgba(62, 207, 106, 0.18);
}

.chat-bubble {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 16px;
}

.trip-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.trip-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.trip-checklist li::before {
    content: "○";
    font-size: 12px;
}

.trip-checklist li.done { color: var(--ink); }

.trip-checklist li.done::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

.feature-list {
    display: grid;
    gap: 22px;
}

.feature {
    display: flex;
    gap: 16px;
}

.feature .icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.14);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature .icon svg {
    width: 20px;
    height: 20px;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Testimonials (home.php) ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.quote {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote .stars { color: var(--accent-soft); letter-spacing: 2px; font-size: 14px; }

.quote p { margin: 0; color: var(--ink); line-height: 1.65; font-size: 14.5px; }

.quote .who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.quote .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ink-on-accent);
    font-size: 13px;
}

.quote .who .name { font-size: 13px; font-weight: 600; }
.quote .who .trip { font-size: 12px; color: var(--muted); }

/* ---------- Pricing / packages (home.php) ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.plan {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(var(--accent-rgb),0.10), rgba(255,255,255,0.04));
    position: relative;
}

.plan.featured .tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; font-family: 'Georgia', serif; font-size: 1.3rem; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 6px 0 4px; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan .desc { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 11px;
    font-size: 13.5px;
}

.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.plan .btn { justify-content: center; margin-top: auto; }

/* ---------- FAQ (home.php) ---------- */
.faq { max-width: 760px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.2s ease;
    flex: none;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- CTA banner (home.php) ---------- */
.cta-banner {
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.22), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--accent-soft-rgb), 0.18), transparent 50%),
        var(--paper-soft);
    padding: 56px;
    text-align: center;
}

.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin: 0 0 28px; }
.cta-banner .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Contact (home.php) ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info .item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-info .icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.14);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-info .icon svg {
    width: 18px;
    height: 18px;
}

.contact-info h4 { margin: 0 0 4px; font-size: 14px; }
.contact-info p, .contact-info a { margin: 0; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.contact-info a:hover { color: var(--accent); }

form.trip-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

form.trip-form label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

form.trip-form label .required {
    color: var(--accent);
    text-transform: none;
}

form.trip-form .form-legend {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px;
}

form.trip-form .form-legend .required {
    color: var(--accent);
}

form.trip-form input,
form.trip-form select,
form.trip-form textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: var(--ink);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.trip-form input:focus,
form.trip-form select:focus,
form.trip-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

form.trip-form textarea { resize: vertical; min-height: 90px; }

form.trip-form select option { background: var(--paper-soft); color: var(--ink); }

form.trip-form button { width: 100%; justify-content: center; padding: 15px; }

.status-msg {
    min-height: 18px;
    font-size: 13px;
    color: var(--accent-soft);
}

.status-msg.error {
    color: #d43f3f;
}

/* ---------- Footer (home.php + article.php) ---------- */
footer.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-row-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-row-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: auto;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent); }

.footer-copy {
    color: var(--muted);
    font-size: 12.5px;
    margin: 0;
}

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 16px; height: 16px; display: block; }

.admin-link { opacity: 0.35; transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.admin-link:hover { opacity: 1; }

/* ---------- Article header / hero / body (article.php) ---------- */
.article-head {
    padding: 64px 0 40px;
    text-align: center;
}

.article-head .eyebrow { margin: 0 0 16px; }

.article-head h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 auto 18px;
    max-width: 18ch;
    letter-spacing: -0.01em;
}

.article-head .subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto 26px;
    max-width: 60ch;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
}

.article-meta .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta .dot { opacity: 0.5; }

.article-hero { padding: 0 0 56px; }

.article-hero .photo {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    border: 1px solid var(--line);
    background-color: var(--paper-deep);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.article-hero figcaption {
    margin: 12px 4px 0;
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic;
}

.article-content { padding: 0 0 96px; }

.article-content .wrap { max-width: 800px; }

.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink);
    margin: 0 0 26px;
}

.article-content p.intro {
    font-size: 1.15rem;
    color: var(--muted);
}

.article-copy p {
    text-align: justify;
}

.article-content h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 48px 0 18px;
    line-height: 1.25;
}

.article-content ul {
    margin: 0 0 26px;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.article-content ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
}

.article-content ul li strong { color: var(--accent-soft); }

.quote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 22px;
    margin: 36px 0;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink);
}

.article-cta {
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.18), transparent 50%),
        var(--paper-soft);
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

.article-cta h3 {
    font-family: 'Georgia', serif;
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.article-cta p {
    color: var(--muted);
    margin: 0 0 24px;
}

/* ---------- Theme switcher ---------- */
.theme-switcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(var(--paper-rgb), 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.theme-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.active { border-color: var(--ink); }

.theme-swatch[data-theme-choice="sepia"] { background: linear-gradient(135deg, #f4ecd8, #a86b3a); }
.theme-swatch[data-theme-choice="ocean"] { background: linear-gradient(135deg, #0e1417, #c4a84a); }
.theme-swatch[data-theme-choice="ruby"] { background: linear-gradient(135deg, #1a0505, #d43f3f); }
.theme-swatch[data-theme-choice="sand"] { background: linear-gradient(135deg, #13100c, #a06840); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    nav.links { display: none; }
    .nav-toggle { display: block; }
    nav.links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 24px 16px;
        background: rgba(var(--paper-rgb), 0.98);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(10px);
    }
    nav.links.open a {
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr; }
    .why-visual { aspect-ratio: 16/9; }
    .testimonials { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .dest-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 22px; }
    section { padding: 64px 0; }

    .article-head { padding: 44px 0 28px; }
    .article-content, .article-hero { padding-bottom: 56px; }
    .article-cta { padding: 30px 22px; }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-row-left {
        align-items: center;
        order: 2;
    }
    .footer-row-right {
        margin-left: 0;
        order: 1;
    }

    .theme-switcher { right: 14px; bottom: 14px; padding: 8px; gap: 8px; }
    .theme-swatch { width: 24px; height: 24px; }
}

/* ---------- Admin login ---------- */
.admin-wrap {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-card {
    width: 100%;
    max-width: 380px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.admin-card .logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.admin-card img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.admin-card h1 {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 0 4px;
    color: var(--ink);
}

.admin-card .sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 28px;
}

.admin-field {
    margin-bottom: 18px;
}

.admin-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.admin-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
}

.admin-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-options a {
    color: var(--accent);
    text-decoration: none;
}

.admin-submit {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-submit:hover {
    background: var(--accent-soft);
}

.admin-footnote {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--muted);
}

.back-to-index {
    display: block;
    text-align: center;
    margin: -6px 0 20px;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-index:hover {
    color: var(--accent);
}

.admin-logout {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-logout:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-sitemap {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-sitemap:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.admin-view-site {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-view-site:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Admin dashboard ---------- */
body.admin-dashboard {
    min-height: 100vh;
    display: block;
}

.admin-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 48px;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
}

.admin-main {
    flex: 1;
    width: 100%;
    padding: 40px 48px 56px;
}

.admin-page > .admin-footnote {
    padding: 20px 48px 32px;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.dashboard-heading h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--ink);
}

.dashboard-heading .sub {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.dashboard-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-new-journal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--ink-on-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-new-journal:hover {
    background: var(--accent-soft);
}

.btn-new-journal svg {
    width: 16px;
    height: 16px;
}

.journal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

.journal-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--paper-deep);
}

.journal-title {
    color: var(--ink);
    font-size: 1.1rem;
    flex: 1;
}

.journal-updated {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.journal-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.journal-edit:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.journal-edit svg {
    width: 16px;
    height: 16px;
}

/* ---------- Edit journal form ---------- */
.edit-journal-form {
    max-width: 860px;
}

.edit-journal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.edit-journal-heading .eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.edit-journal-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--ink);
}

.edit-journal-heading .sub {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.edit-journal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 2px;
}

.btn-view-journal {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-view-journal:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--ink-on-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-back-to-list:hover {
    background: var(--accent-soft);
}

@media (max-width: 640px) {
    .edit-journal-header {
        flex-direction: column;
        align-items: stretch;
    }
    .edit-journal-actions {
        padding-top: 0;
    }
}

.save-banner {
    background: rgba(62, 207, 106, 0.14);
    border: 1px solid rgba(62, 207, 106, 0.4);
    color: #3ecf6a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.error-banner {
    background: rgba(212, 63, 63, 0.14);
    border: 1px solid rgba(212, 63, 63, 0.4);
    color: #d43f3f;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-field {
    flex: 1;
}

.form-field-small {
    max-width: 200px;
    flex: none !important;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.field-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.content-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.content-legend-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-right: 2px;
}

.content-legend code {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.78rem;
    color: var(--accent-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field select option {
    background: var(--paper-soft);
    color: var(--ink);
}

.photo-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.photo-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--paper-deep);
}

.photo-upload input[type="file"] {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.85rem;
}

.btn-save {
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-save:hover {
    background: var(--accent-soft);
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-field-small { max-width: none; }
}
