/* Global Variables & Resets */
:root {
    --primary: #FFA6B5; /* Pastel Pink */
    --secondary: #8EA7BC; /* Slate Pastel Blue (Grey-toned) */
    --accent: #FFD4A3; /* Pastel Peach */
    --bg-main: #FFFDF9; /* Soft Off-White */
    --bg-light: #F7F3EB; /* Pastel Beige */
    --beige: #D9C5B2; /* Medium Beige */
    --brown-medium: #A67B5B; /* Medium Brown for Search */
    --text-dark: #5C5C5C; /* Softer dark text */
    --text-light: #999999;
    --font-main: 'Zen Maru Gothic', 'Inter', sans-serif;
    --font-heading: 'Zen Kaku Gothic New', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* Typography */
h1 { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }
h2 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem; text-align: center; letter-spacing: -0.01em; }
h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }

/* Buttons & Inputs */
.btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #E03E3E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 75, 75, 0.3);
}

.btn-outline {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-brown {
    background-color: var(--brown-medium);
    color: white;
}

.btn-brown:hover {
    background-color: #8B6B4D; /* Darker brown */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 123, 91, 0.3);
}

.btn-brown-outline {
    background-color: transparent;
    color: var(--brown-medium);
    border: 2px solid var(--brown-medium);
}

.btn-brown-outline:hover {
    background-color: var(--brown-medium);
    color: white;
}

.input-field {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.input-field:focus {
    border-color: var(--primary);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    z-index: 0;
    width: 100%;
}

.hero-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s ease;
}

.hero-img:hover {
    flex: 1.5;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    width: 100%;
}

.nav {
    background-color: var(--bg-main);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

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

.nav-links-sub {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links-sub li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links-sub li a:hover {
    color: var(--primary);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 75, 75, 0.4);
}

/* Transcending Pastel CTA Button */
.btn-pastel-transcend {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #3d2c2e !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    background: linear-gradient(-45deg, #FFA6B5, #FFD4A3, #8EA7BC, #B5C7D3);
    background-size: 300% 300%;
    animation: transcending-gradient 8s ease infinite;
    box-shadow: 0 8px 20px rgba(255, 166, 181, 0.35);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@keyframes transcending-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-pastel-transcend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-pastel-transcend:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 166, 181, 0.5), 
                0 0 35px rgba(157, 180, 171, 0.3);
    color: #3d2c2e !important;
}

.btn-pastel-transcend:hover::before {
    opacity: 1;
}

.btn-pastel-transcend:active {
    transform: translateY(-1px) scale(1.02);
}

/* Sections */
.section {
    padding: 3rem 5%;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Mood Engine */
.mood-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mood-selector .input-field,
.mood-selector .btn,
.mood-selector .btn-outline {
    width: 250px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary);
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s;
}

.card h3:hover {
    color: var(--accent);
    text-decoration: underline;
}

.category-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    margin-right: 10px;
    vertical-align: middle;
    overflow: hidden;
}

.category-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Map */
.map-container {
    height: 400px;
    width: 100%;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1; /* Keep map below navbar */
}

/* Reviews */
.review-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.review-item h4 {
    margin-bottom: 0.5rem;
}

.review-item .meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Planner */
.checklist-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.checklist-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.checklist li input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2100; /* Float above everything including sidebar and navs */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(30, 30, 30, 0.4); /* Elegant slightly dark charcoal wash */
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    -webkit-backdrop-filter: blur(8px); /* iOS Safari support */
}

.modal-content {
    background-color: var(--bg-main);
    margin: 8% auto; 
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 440px;
    border-radius: 20px; /* Modern sleek rounded corners */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* Deep premium shadow */
    box-sizing: border-box;
    animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: var(--text-light);
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Notepad Planner */
.notepad-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fffdf2;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 1rem 0;
}

.notepad-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: #ff9999; /* Red margin line */
    z-index: 1;
}

.notepad-header {
    display: flex;
    font-weight: bold;
    padding: 1rem 1rem 1rem 50px;
    border-bottom: 2px solid #a3c2e0; /* Blue header line */
    color: var(--text-dark);
}

.notepad-body {
    padding-left: 50px;
    padding-right: 1rem;
    min-height: 300px;
}

.notepad-row {
    display: flex;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #a3c2e0; /* Blue line bounds each row */
    min-height: 50px;
    align-items: stretch;
}

.notepad-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0 0.5rem;
    height: auto;
    min-height: 50px;
    box-sizing: border-box;
    min-width: 0;
}

.notepad-textarea {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 15px 0.5rem;
    line-height: 1.2;
    min-height: 50px;
    box-sizing: border-box;
    min-width: 0;
    resize: vertical;
}

.drag-handle {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    cursor: grab;
    font-size: 1.2rem;
    touch-action: none;
    opacity: 0.4;
    transition: opacity 0.2s, background-color 0.2s;
    border-radius: 4px 0 0 4px;
}

.notepad-row:hover .drag-handle,
.drag-handle:hover {
    opacity: 1;
    background-color: rgba(142, 167, 188, 0.08);
}

/* Mobile Responsiveness for Notepad Rows */
@media (max-width: 768px) {
    .notepad-header {
        display: none !important;
    }

    .notepad-row {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.5rem 1rem 1.5rem 50px !important;
        gap: 0.8rem !important;
        height: auto !important;
        min-height: auto !important;
    }

    .notepad-row > * {
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .notepad-day-select {
        border-right: none !important;
        border-bottom: 1px dashed rgba(163, 194, 224, 0.5) !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .notepad-input {
        font-size: 1.1rem !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .notepad-textarea {
        background: rgba(163, 194, 224, 0.05) !important;
        border-radius: 8px !important;
        padding: 10px !important;
        margin-top: 0.5rem !important;
    }

    .notepad-links-container {
        justify-content: flex-start !important;
        gap: 10px !important;
        margin: 0.5rem 0 !important;
    }

    .notepad-links-container .btn {
        flex: 1 !important;
        padding: 0.6rem !important;
    }

    .drag-handle {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 44px !important;
        border-right: 1px solid rgba(142, 167, 188, 0.25) !important;
        background: rgba(142, 167, 188, 0.06) !important;
        color: var(--secondary) !important;
        font-size: 1.3rem !important;
        z-index: 5 !important;
    }

    #notepadMap {
        height: 300px !important;
        margin-top: 1rem !important;
    }
}

.drag-handle:active {
    cursor: grabbing;
}

.notepad-links-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 195px;
    flex-shrink: 0;
}

.notepad-row.dragging {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    outline: 2px dashed rgba(255, 166, 181, 0.5);
    outline-offset: -2px;
}

.notepad-row.drag-over {
    border-bottom: 2px solid var(--primary) !important;
}

.sortable-ghost {
    opacity: 0.3;
    background: rgba(142, 167, 188, 0.1) !important;
    border: 2px dashed var(--secondary) !important;
    border-radius: 6px;
}

.sortable-chosen {
    background: rgba(255, 166, 181, 0.08) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.insert-row-btn {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.notepad-row:hover .insert-row-btn {
    display: flex;
}

.notepad-input:focus {
    background-color: rgba(255, 255, 255, 0.5);
}

.notepad-input.completed {
    text-decoration: line-through;
    color: var(--text-light);
}

.notepad-footer {
    padding: 1rem 1rem 1rem 50px;
}

.delete-row-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    width: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.delete-row-btn:hover {
    color: #ff4c4c;
}

/* Multi-Day Planner Tabs & Selectors */
.planner-days-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 0.5rem 50px;
    border-bottom: 2px solid #a3c2e0;
}

.day-tab {
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #d8cfc4;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    touch-action: none; /* Disable browser pan/scroll on day tab touch dragging */
}

.day-tab:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 166, 181, 0.3);
}

.day-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 166, 181, 0.4);
}

.notepad-day-select {
    width: 80px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0 0.5rem;
    outline: none;
    border-right: 1px dashed rgba(163, 194, 224, 0.5);
    height: 100%;
}

.notepad-day-select:focus {
    background-color: rgba(255, 255, 255, 0.5);
}

.notepad-row-day-heading {
    background-color: rgba(157, 180, 171, 0.15); /* Soft secondary pastel green tint */
    font-weight: bold;
    color: var(--text-dark);
    padding: 0.75rem 1rem 0.75rem 50px;
    border-bottom: 2px solid #a3c2e0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Premium physical style notepad graphic */
.notepad-graphic {
    background-color: #fdfaf2;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
    border: 1px solid #e3dcd1;
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notepad-graphic:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.notepad-graphic-header {
    background-color: #f3edd8;
    height: 30px;
    display: flex;
    justify-content: space-around;
    padding: 0 2rem;
    border-bottom: 2px solid #e3dcd1;
    position: relative;
}

.notepad-ring {
    width: 14px;
    height: 28px;
    background: linear-gradient(90deg, #888, #ddd 40%, #fff 60%, #999);
    border-radius: 7px;
    margin-top: -12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
    z-index: 2;
}

.notepad-graphic-body {
    padding: 1.5rem 2rem;
    background-image: linear-gradient(rgba(227, 220, 209, 0.6) 1px, transparent 1px);
    background-size: 100% 2.4rem;
    line-height: 2.4rem;
    text-align: left;
}

.notepad-line {
    font-family: 'Klee One', 'Zen Maru Gothic', sans-serif;
    color: #4a3e3d;
    font-size: 1.15rem;
    font-weight: 500;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: none;
    margin: 0;
    padding-left: 5px;
    border-left: 2px solid rgba(255, 75, 75, 0.3); /* Red margin line */
}

/* --- iPad & Mobile Safari Touch Compatibility --- */
/* iOS Safari requires cursor: pointer to bubble click/touch events correctly from non-native interactive elements */
a, 
button, 
select, 
input, 
textarea,
[role="button"],
.day-tab, 
.tab-btn, 
.close-btn, 
.star, 
.view-guide-btn, 
.notepad-route-btn, 
.view-notepad-map-btn,
.review-notepad-spot-btn,
.delete-row-btn,
.insert-row-btn,
.add-activity-btn,
#openAuthBtn,
#logoutBtn,
#rotateCitiesBtn,
#getRecsBtn,
#refreshRecsBtn,
#submitReviewBtn,
#openReviewModalBtn,
#verifyOriginBtn,
#confirmOriginBtn,
#verifyDestBtn,
#confirmDestBtn,
#calcDistanceBtn,
#resetCalculatorBtn {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes gray overlay on tap */
}

/* --- iPhone & Mobile Safe Area Adjustments --- */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

footer {
    padding-bottom: calc(2rem + var(--safe-bottom));
}

/* --- Media Queries for Responsive Screens (e.g., iPhone) --- */
@media (max-width: 768px) {
    /* Typographic scaling */
    h1 {
        font-size: 2.2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }

    /* Sections padding */
    .section {
        padding: 2rem 1rem !important;
    }

    /* Navbar stacking for small mobile screens */
    .navbar {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.5rem 1rem !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.8rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    /* Mood selector column layout */
    .mood-selector {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0.8rem !important;
    }

    .mood-selector .input-field,
    .mood-selector .btn,
    .mood-selector .btn-outline {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.8rem 1rem !important;
    }

    /* Fix btn-pastel-transcend cutoff on mobile */
    .btn-pastel-transcend {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        white-space: normal !important;
    }

    /* Hero Background Fix for Mobile */
    .hero-bg {
        flex-direction: column !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
        z-index: 0 !important; /* Base layer */
    }
    .hero-img {
        display: none !important;
    }
    .hero-img:first-child {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        background-attachment: scroll !important; /* Fixed background can be jumpy on iPhone */
    }
    .hero {
        min-height: 100vh !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .hero-inner {
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        position: relative !important;
        z-index: 1 !important;
    }
    .hero-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0.5rem 1rem 2rem 1rem !important;
        gap: 1rem !important;
    }

    /* Boarding Pass Mobile Vertical Showcase */
    .boarding-pass-wrapper {
        display: block !important;
        width: 100% !important;
        overflow-x: visible !important;
        padding: 0 !important;
        position: relative;
    }
    .boarding-pass {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 420px !important;
        flex-direction: column !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
        flex-shrink: 1 !important;
    }
    .boarding-pass-main {
        flex: none !important;
        padding: 1rem 1.2rem !important;
    }
    .boarding-pass-header {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .boarding-logo {
        font-size: 0.8rem !important;
    }
    .boarding-title {
        font-size: 0.7rem !important;
    }
    .boarding-hero-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.4rem !important;
    }
    .boarding-hero-desc {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        color: #555555 !important;
    }
    .boarding-pass-footer {
        margin-top: 0.8rem !important;
        padding-top: 0.6rem !important;
    }
    .boarding-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    .info-label {
        font-size: 0.6rem !important;
    }
    .info-val {
        font-size: 0.75rem !important;
    }
    .boarding-pass-divider {
        width: 100% !important;
        height: 16px !important;
        flex-direction: row !important;
        background: #FFFDF9 !important;
    }
    .perforation-line {
        border-left: none !important;
        border-top: 2px dashed #E5E0D5 !important;
        width: 100% !important;
        height: 1px !important;
    }
    .top-notch {
        left: -8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }
    .bottom-notch {
        right: -8px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }
    .boarding-pass-stub {
        flex: none !important;
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #F0ECE0 !important;
        background: #FFFBF5 !important;
        padding: 1rem 1.2rem !important;
        box-sizing: border-box !important;
    }
    .stub-route {
        margin: 0.4rem 0 !important;
    }
    .route-city {
        font-size: 1.1rem !important;
    }
    .route-arrow {
        font-size: 0.9rem !important;
    }
    .stub-body {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }
    .stub-info {
        display: flex !important;
        gap: 1rem !important;
    }
    .stub-info div {
        margin-bottom: 0 !important;
    }
    .boarding-barcode {
        height: 24px !important;
    }
    .pastel-cta-container {
        margin: 1rem 0 0 0 !important;
    }

    /* Card list grid adjust */
    .cards-container {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #cityGuidesContainer {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #cityGuidesContainer .card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.2rem !important; /* Elegant compact padding on mobile devices */
    }

    /* Notepad graphic responsive size */
    .notepad-graphic {
        width: 100% !important;
        margin: 1.5rem 0 !important;
    }

    .notepad-graphic-body {
        padding: 1rem !important;
        background-size: 100% 2.8rem !important;
        line-height: 2.8rem !important;
        max-height: 170px !important; /* Freeze height on mobile */
        overflow-y: auto !important; /* Enable scroll to access all 5 points */
    }

    .notepad-line {
        font-size: 0.85rem !important;
        gap: 8px !important;
        line-height: 1.4 !important;
        padding: 0.6rem 0 0.6rem 5px !important;
    }

    /* Notepad Itinerary container adjustments */
    .notepad-container {
        padding: 1rem 0 !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .planner-days-tabs {
        padding: 0.5rem 0.8rem 0.5rem 25px !important;
        gap: 0.4rem !important;
    }

    .day-tab {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    .notepad-header {
        display: none !important; /* Hide unaligned column headers on mobile */
    }

    .notepad-row {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.2rem 1.2rem 1.8rem 35px !important; /* Room on the left for red margin line */
        border-bottom: 2px solid #a3c2e0 !important;
        gap: 0.6rem !important;
    }

    .notepad-row .notepad-input,
    .notepad-row .notepad-textarea {
        width: 100% !important;
        min-height: 45px !important;
        border-bottom: 1px dashed #c4d9f2 !important; /* Paper line dividers */
        padding: 0.4rem 0 !important;
    }

    .notepad-row .notepad-day-select {
        width: 100% !important;
        padding: 0.5rem !important;
        border: 1px solid #c4d9f2 !important;
        border-radius: 6px !important;
        background-color: var(--bg-light) !important;
    }

    .notepad-row div[style*="display: flex"],
    .notepad-row .notepad-links-container {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 100% !important;
        gap: 8px !important;
    }

    .notepad-row div[style*="display: flex"] button,
    .notepad-row .notepad-links-container button {
        width: 100% !important;
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }

    .notepad-row .insert-row-btn {
        display: flex !important; /* Always visible on touch screens where hover is unavailable */
        bottom: -12px !important;
    }

    .notepad-row .drag-handle {
        width: 100% !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: var(--bg-light) !important;
        border-radius: 4px !important;
        margin-bottom: 0.4rem !important;
    }

    .notepad-row-day-heading {
        padding-left: 25px !important;
        font-size: 0.95rem !important;
    }

    .notepad-footer {
        padding: 1.5rem 1.2rem !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .notepad-footer .btn,
    .notepad-footer .btn-outline {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        display: block !important;
        text-align: center !important;
    }

    /* Responsive Navbars for sub-pages */
    .nav {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
    }
    
    .nav .btn-outline {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Travel Distance Wizard stack */
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    #step1Container, #step2Container {
        flex-direction: column !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        gap: 8px !important;
    }

    #step1Container input, #step2Container input {
        width: 100% !important;
    }

    /* Modals responsive resize & Keyboard Defense */
    .modal-content {
        width: 92% !important;
        max-width: 400px !important;
        padding: 2rem 1.5rem !important;
        margin: 4vh auto !important; /* Position it high enough to stay above virtual keyboard */
        max-height: 88vh !important; /* Cap modal height to fit viewport */
        overflow-y: auto !important; /* Enable inner scrolling if keyboard active */
        border-radius: 16px !important;
    }

    /* iOS Safari Auto-Zoom Prevention */
    .input-field, .modal input, input, select, textarea {
        font-size: 16px !important; /* Forcing 16px to prevent iOS auto-viewport-zoom on focus */
    }
}

/* Mount Fuji Blog Section Styles - Newsletter Layout */
.fuji-newsletter {
    max-width: 850px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFFDF9 0%, #FAF6EE 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Beautiful Japanese stamp style design accent */
.fuji-newsletter::before {
    content: "富士山";
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-family: 'Yuji Syuku', serif;
    font-size: 1.8rem;
    color: rgba(224, 62, 62, 0.12);
    border: 2px solid rgba(224, 62, 62, 0.12);
    padding: 4px 8px;
    border-radius: 4px;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    pointer-events: none;
}

.fuji-blog-meta {
    font-family: 'Klee One', cursive, sans-serif;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.fuji-blog-title {
    font-family: 'Klee One', cursive, sans-serif;
    font-size: 2.2rem;
    color: #4A4A4A;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    line-height: 1.3;
}

.fuji-blog-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.fuji-blog-text blockquote {
    border-left: 3px dashed var(--secondary);
    padding-left: 1.2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6A7F75;
    font-family: 'Klee One', cursive, sans-serif;
}

/* Inline Newsletter Image Cards */
.fuji-inline-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fuji-inline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.fuji-inline-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 380px;
    filter: sepia(0.15) saturate(0.85) brightness(0.95) contrast(0.95);
    transition: filter 0.4s ease;
}

.fuji-inline-card:hover img {
    filter: sepia(0.05) saturate(0.95) brightness(0.98) contrast(0.98);
}

.fuji-inline-caption {
    padding: 0.6rem 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
    background: #FFFDF9;
}

/* Float Variations for rich editorial look */
.fuji-inline-card.float-left {
    float: left;
    width: 45%;
    margin-right: 2rem;
    margin-top: 0.5rem;
}

.fuji-inline-card.float-right {
    float: right;
    width: 45%;
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.fuji-inline-card.full-width {
    width: 100%;
    margin: 2rem 0;
}

/* Clearfix for floated editorial layouts */
.fuji-blog-text::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive adjustment for newsletter layout */
@media (max-width: 768px) {
    .fuji-newsletter {
        padding: 1.8rem;
    }
    .fuji-blog-title {
        font-size: 1.8rem;
    }
    .fuji-inline-card.float-left,
    .fuji-inline-card.float-right {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .fuji-newsletter::before {
        display: none;
    }
}


/* ==========================================================================
   PREMIUM CHECKBOX PILLS & REVIEW BADGES
   ========================================================================== */

/* Checkbox pill button elements */
.checkbox-pill {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.25rem;
}

.checkbox-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-pill span {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-light, #F7F3EB);
    border: 1px solid #E5DFD3;
    color: var(--text-dark, #5C5C5C);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.checkbox-pill:hover span {
    background-color: #EDE6DC;
    border-color: #C5BAAB;
    transform: translateY(-1px);
}

.checkbox-pill input:checked + span {
    background-color: rgba(142, 167, 188, 0.2);
    border-color: var(--secondary, #8ea7bc);
    color: #354a5f;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(142, 167, 188, 0.15);
    transform: translateY(0);
}

/* Premium micro-designed tag badges */
.review-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.review-badge:hover {
    transform: scale(1.03);
}

.badge-budget {
    background-color: rgba(157, 180, 171, 0.15);
    color: #3b5046;
    border-color: rgba(157, 180, 171, 0.3);
}

.badge-style {
    background-color: rgba(255, 166, 181, 0.15);
    color: #8c3b4a;
    border-color: rgba(255, 166, 181, 0.3);
}

.badge-mood {
    background-color: rgba(186, 215, 233, 0.2);
    color: #2b4865;
    border-color: rgba(186, 215, 233, 0.4);
}

.badge-interest {
    background-color: rgba(223, 246, 255, 0.25);
    color: #256d85;
    border-color: rgba(223, 246, 255, 0.45);
}

.badge-amenity {
    background-color: rgba(245, 235, 224, 0.35);
    color: #6f4e37;
    border-color: rgba(245, 235, 224, 0.55);
}

/* ==========================================================================
   TRAVEL BLOG EXTENSIONS
   ========================================================================== */

/* Custom premium lists inside travel blog */
.fuji-blog-text ul {
    margin-bottom: 1.8rem;
    padding-left: 0.5rem;
    list-style-type: none;
}

.fuji-blog-text li {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.fuji-blog-text li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

/* Custom Stamp Override for Fukuoka blog */
#blogContentFukuoka::before {
    content: "福岡" !important;
}

/* Itinerary Timeline Styles */
.itinerary-timeline {
    position: relative;
    padding-left: 0.5rem;
    margin-top: 1.5rem;
}

.itinerary-day {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.itinerary-day:hover {
    transform: translateX(4px);
}

.itinerary-day strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--primary);
}

.itinerary-day p {
    margin: 0 !important;
    font-size: 0.98rem !important;
    color: var(--text-dark);
    line-height: 1.6 !important;
}

/* Boarding Pass Ticket Container */
.boarding-pass {
    display: flex;
    background: #FFFDF9;
    color: #4A4A4A;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 780px;
    min-width: 780px;
    margin: 0 auto 2.5rem auto;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-family: var(--font-main);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.boarding-pass:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.boarding-pass-main {
    flex: 3;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.boarding-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #E5E0D5;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.boarding-logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.boarding-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1.5px;
}

.boarding-pass-body {
    flex: 1;
}

.boarding-hero-title {
    font-size: 2.2rem !important;
    font-weight: 700;
    color: #333333 !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-shadow: none !important;
}

.boarding-hero-desc {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #5C5C5C !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    text-shadow: none !important;
    text-align: left !important;
}

.boarding-pass-footer {
    margin-top: 1.2rem;
    border-top: 1px solid #F0ECE0;
    padding-top: 0.8rem;
}

.boarding-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.boarding-info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.7rem;
    color: #999999;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4A4A4A;
}

/* Perforated Divider */
.boarding-pass-divider {
    position: relative;
    width: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #FFFDF9;
}

.perforation-line {
    border-left: 2px dashed #E5E0D5;
    height: 100%;
}

.notch {
    width: 24px;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    left: 0;
}

.top-notch {
    top: -1px;
    border-radius: 0 0 12px 12px;
}

.bottom-notch {
    bottom: -1px;
    border-radius: 12px 12px 0 0;
}

/* Right Ticket Stub */
.boarding-pass-stub {
    flex: 1.1;
    background: #FFFBF5;
    padding: 1.8rem 1.5rem;
    border-left: 1px solid #F0ECE0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.boarding-pass-stub .boarding-pass-header {
    margin-bottom: 0.5rem;
}

.stub-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.6rem 0;
}

.route-city {
    font-size: 1.4rem;
    font-weight: 700;
    color: #999999;
}

.route-city.highlight {
    color: var(--primary);
}

.route-arrow {
    font-size: 1.1rem;
    color: var(--secondary);
}

.stub-body {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0.8rem;
}

.stub-info div {
    margin-bottom: 3px;
}

/* Barcode */
.boarding-barcode {
    display: flex;
    height: 38px;
    align-items: stretch;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ECE7DD;
}

.barcode-line {
    background: #333;
    margin-right: 2px;
}

/* Removed mobile overrides for boarding pass to keep it as a row and horizontally scrollable */
}

/* Mobile Scroll Fade Indicator */
@media (max-width: 900px) {
    .fade-right::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, rgba(253, 245, 237, 0), rgba(253, 245, 237, 1));
        pointer-events: none;
    }
}

/* --- Hamburger Menu & Slide-out Side Drawer --- */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff; /* White default for Hero banner */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphic Side Drawer Menu */
.side-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    z-index: 2100;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.side-drawer.active {
    right: 0;
}

/* Overlay Background */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 10, 5, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px dashed rgba(229, 224, 213, 0.8);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.drawer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-header);
    color: var(--primary);
    letter-spacing: 0.5px;
}

.drawer-close-btn {
    border: none;
    background: transparent;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Drawer Navigation Links */
.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.drawer-link {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: transparent;
    transition: all 0.25s ease;
}

.drawer-link:hover {
    color: var(--primary);
    background: rgba(144, 46, 50, 0.06);
    transform: translateX(5px);
}

.drawer-auth-item {
    margin-top: 1.5rem;
    list-style: none;
}

/* --- Keyword Tag Pills (Topic Clustering) --- */
.keyword-tag-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--bg-main);
}

.keyword-tag-pill:hover {
    border-color: var(--secondary);
    color: #354a5f;
    background-color: rgba(142, 167, 188, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(142, 167, 188, 0.15);
}

/* Worth Trying & Overall Experience Symmetrical Cards */
.worth-trying-box,
.worth-trying-box textarea,
.worth-trying-box span,
.worth-trying-box label,
.worth-trying-box p,
.overall-experience-card,
.overall-experience-card textarea,
.overall-experience-card span,
.overall-experience-card label,
.overall-experience-card p {
    font-family: 'Satoshi', 'Zen Maru Gothic', 'Inter', sans-serif !important;
}

.overall-experience-card,
.worth-trying-box {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.overall-experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.worth-trying-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 169, 109, 0.18) !important;
    border-color: var(--brown-medium) !important;
}

/* Modern Photo Upload Interactions */
.photo-upload-container {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-upload-container:hover {
    border-color: var(--brown-medium) !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.015);
}

/* Responsive Review Form Card & Split Layout */
.review-form-card {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .review-form-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .form-row-split {
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .review-form-card {
        padding: 1rem;
        border-radius: 8px;
    }
    .form-row-split > div {
        min-width: 100% !important;
    }
    .worth-trying-box {
        padding: 1.25rem !important;
    }
}

/* Responsive Distance Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ==========================================================================
   MOBILE & TOUCH DEVICE OPTIMIZATIONS (v1.0.5)
   ========================================================================== */

/* Global Smooth Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Momentum scrolling on iOS devices */
.side-drawer,
.notepad-container,
.planner-days-tabs,
.modal,
.cards-container,
#reviewsList {
    -webkit-overflow-scrolling: touch;
}

/* Ensure Side Drawer is scrollable vertically if content overflows */
.side-drawer {
    overflow-y: auto !important;
}

/* Blog Preview Global Styles */
.blog-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}

.blog-preview-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Accordion day toggler for 'All Days' Planner View */
.day-section-wrapper {
    background-color: #fffdf2;
}

.day-section-content {
    max-height: 10000px; /* High enough to cover very long daily itineraries */
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

.day-section-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    border-bottom: none !important;
}

.notepad-row-day-heading {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    border-bottom: 2px solid #a3c2e0 !important;
}

.notepad-row-day-heading:hover {
    background-color: rgba(142, 167, 188, 0.15) !important;
}

.notepad-row-day-heading .day-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notepad-row-day-heading.collapsed .day-toggle-icon {
    transform: rotate(-180deg);
}

.all-days-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0.6rem 1.2rem;
    background-color: #fffdf2;
    border-bottom: 1px dashed rgba(142, 167, 188, 0.3);
}

/* Mobile responsive overrides */
@media (max-width: 768px) {
    /* Horizontal scroll day tabs bar for planner */
    .planner-days-tabs {
        padding: 0.5rem 0.8rem 0.5rem 25px !important;
        gap: 0.5rem !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
    }

    .planner-days-tabs::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari/Opera */
    }

    .day-tab {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important; /* Stop tabs shrinking on mobile scroll */
        touch-action: none !important; /* Lock scrolling completely when dragging tabs */
    }

    /* Blog section grid mobile layout */
    .blog-preview-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }

    .blog-preview-card {
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .blog-preview-card img {
        height: 180px !important;
    }
}

/* Premium Toast Notifications (Notepad/Pastel Theme Compliant) */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 420px;
}

.toast {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 1.1rem 1.6rem;
    border-radius: 14px;
    border-left: 6px solid var(--secondary); /* Slate Blue standard */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); /* Deep elegant floating shadow */
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.toast.toast-success {
    border-left-color: var(--primary); /* Pastel Pink */
    background: linear-gradient(135deg, #ffffff 0%, #fffcfd 100%);
}

.toast.toast-error {
    border-left-color: #ff8b94; /* Soft Coral Red */
    background: linear-gradient(135deg, #ffffff 0%, #fffbfb 100%);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Manage Days Modal & Row Stylings */
.manage-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 5px rgba(0,0,0,0.02);
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.manage-day-row:hover {
    background-color: #f1ebd8;
}

.manage-day-row.sortable-chosen {
    background-color: rgba(255, 166, 181, 0.1);
    border: 1px dashed var(--primary);
}

.manage-day-drag-handle {
    cursor: grab;
    font-size: 1.25rem;
    color: var(--secondary);
    padding-right: 12px;
    user-select: none;
    touch-action: none;
}

.manage-day-drag-handle:active {
    cursor: grabbing;
}

.manage-day-btn-group {
    display: flex;
    gap: 6px;
}

.btn-move-day {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(142, 167, 188, 0.4);
    background-color: white;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer !important;
}

.btn-move-day:hover:not(:disabled) {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-move-day:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #f3f3f3;
}

.manage-day-tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    background-color: rgba(142, 167, 188, 0.12);
    border: 1px dashed var(--secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.manage-day-tab-btn:hover {
    background-color: var(--secondary);
    color: white;
    border-style: solid;
}

/* --- Map Picking Mode & Row Highlights --- */
.notepad-row-container.picking-highlight {
    border: 2px dashed var(--secondary) !important;
    background-color: rgba(142, 167, 188, 0.05) !important;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(142, 167, 188, 0.2);
    transition: all 0.3s ease;
}

.notepad-row-container.new-row-highlight {
    background-color: rgba(255, 212, 163, 0.25) !important; /* Pastel Peach accent highlight */
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 212, 163, 0.4);
    animation: pulseHighlight 2s infinite alternate;
}

@keyframes pulseHighlight {
    0% { background-color: rgba(255, 212, 163, 0.1); }
    100% { background-color: rgba(255, 212, 163, 0.3); }
}

.notepad-pin-btn {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notepad-pin-btn:hover {
    transform: scale(1.25);
    opacity: 0.8;
}

.notepad-pin-btn.active-picking {
    animation: bouncePin 0.6s infinite alternate;
}

@keyframes bouncePin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* CSV Importer Styling */
.csv-drop-zone {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.csv-drop-zone:hover {
    border-color: var(--primary) !important;
    background-color: rgba(255, 166, 181, 0.05) !important;
    box-shadow: 0 4px 12px rgba(255, 166, 181, 0.1);
}

.csv-drop-zone.dragover {
    border-color: var(--primary) !important;
    background-color: rgba(255, 166, 181, 0.1) !important;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 166, 181, 0.15);
}

#csvPreviewTable th, #csvPreviewTable td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#csvPreviewTable tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   KOMOPAD Brand Logo & Icon Integration (Filtered Sunlight Theme)
   ========================================================================== */
.komopad-logo-container {
    --logo-primary-color: var(--primary);     /* #FFA6B5 - Pastel Pink */
    --logo-secondary-color: var(--secondary); /* #8EA7BC - Slate Pastel Blue */
    --logo-text-color: var(--text-dark);      /* #5C5C5C - Soft Charcoal */
    --logo-accent-color: var(--accent);       /* #FFD4A3 - Pastel Peach / Gold */
    
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.komopad-logo-container:hover {
    opacity: 0.85;
}

/* Light-text override for dark hero/overlay backgrounds */
.komopad-logo-container.logo-light-text {
    --logo-text-color: #FFFFFF;
}

.komopad-logo-svg {
    height: 44px; /* Taller for detailed Hanko stamp mark */
    width: auto;
}



