/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Accessibility: Skip link & Focus styles */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: #1a202c;
    color: #fff;
    border-radius: 8px;
    z-index: 1200;
}

:focus-visible {
    outline: 3px solid #3182ce;
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2d3748;
    letter-spacing: -0.5px;
    display: inline-flex;
    gap: 0.6rem;
    align-items: baseline;
}

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle[aria-expanded="true"] .bar {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.nav-toggle .bar {
    width: 20px;
    height: 2px;
    background: #2d3748;
    position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #2d3748;
}

.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2b6cb0;
    transform: translateY(-1px);
}

.nav-link.active {
    color: #2b6cb0;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2b6cb0, #3182ce);
    border-radius: 1px;
}

/* Page Content */
.page-content {
    min-height: 100vh;
    padding-top: 80px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
    letter-spacing: -2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Home Page */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('./images/homepage.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(0.5deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: heroFadeIn 1.5s ease-out;
}

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

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-button {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3);
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(45, 55, 72, 0.4);
}

.arrow {
    transition: transform 0.3s ease;
}

.hero-button:hover .arrow {
    transform: translateX(5px);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Story Page */
.story-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}
.story-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.story-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.story-text p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.story-text strong {
    color: #2d3748;
    font-weight: 700;
}

/* Cultural Page */
.cultural-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.plant-identification-card,
.cultural-tour-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.plant-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #718096;
}

.upload-icon {
    font-size: 3rem;
}

.upload-result {
    text-align: center;
}

.upload-result img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.plant-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.plant-info h3 {
    color: #2b6cb0;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.analyzing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #718096;
    margin-top: 1rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-button {
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.info-button:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.instructions {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    color: #22543d;
    animation: slideDown 0.3s ease;
}

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

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tour-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-text p {
    color: #4a5568;
    line-height: 1.7;
}

/* Plan Page */
.plan-header {
    margin-bottom: 3rem;
}

.walk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.walk-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.walk-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.walk-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.option-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.option-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.select-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-dropdown:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.difficulty-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-weight: 500;
}

.difficulty-btn:hover {
    border-color: #3182ce;
    background: #f7fafc;
}

.difficulty-btn.active {
    background: #ebf8ff;
    border-color: #3182ce;
    color: #2c5282;
    font-weight: 600;
}

.time-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.time-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.time-tips {
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 10px;
    padding: 1rem;
}

.time-tips h4 {
    color: #744210;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.time-tips ul {
    list-style: none;
    color: #744210;
}

.time-tips li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.info-box {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    color: #22543d;
    animation: slideDown 0.3s ease;
}

/* Connect Page */
.connect-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.connect-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.connect-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
}

.connect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expand-btn {
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.expand-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.expandable-content {
    color: #4a5568;
    line-height: 1.7;
    animation: slideDown 0.3s ease;
}

.contact-info {
    color: #4a5568;
    line-height: 1.7;
}

.contact-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.acknowledgment {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.copyright {
    color: #718096;
    font-size: 0.9rem;
}

/* Contact form */
.contact-form { display: grid; gap: 0.75rem; }
.form-row { display: grid; gap: 0.35rem; text-align: left; }
.form-row input, .form-row textarea { border: 2px solid #e2e8f0; border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 1rem; }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.contact-link { color: #1d4ed8; text-decoration: underline; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container { 
        gap: 1rem; 
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
    }
    .nav-brand {
        font-size: 1.2rem;
        flex-shrink: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-toggle { 
        display: inline-flex;
        flex-shrink: 0;
        order: 2;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 999;
    }
    .nav-menu.open { 
        display: flex; 
        animation: slideDown 0.3s ease-out;
    }
    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 1rem;
        width: 100%;
        display: block;
        text-align: left;
        transition: all 0.2s ease;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(43, 108, 176, 0.05);
        transform: translateX(4px);
    }
    .nav-link.active {
        background: rgba(43, 108, 176, 0.1);
        color: #2b6cb0;
    }
    .nav-link.active::after {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .story-card,
    .connect-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tour-content {
        grid-template-columns: 1fr;
    }
    
    .walk-cards {
        grid-template-columns: 1fr;
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
    
    /* Decorative elements responsive */
    .decorative-text {
        font-size: 40px;
        opacity: 0.05;
    }
    .big-vertical-text {
        font-size: 120px;
        opacity: 0.08;
    }
    .red-button-decor {
        font-size: 32px;
    }
    .polaroid {
        width: 140px;
    }
    .polaroid img {
        height: 120px;
    }
    
    /* Text cards mobile */
    .text-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    .text-card-title {
        font-size: 1rem;
    }
    
    /* Walk card mobile */
    .expand-walk-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Brand words mobile */
    .nav-brand {
        gap: 0.4rem;
        font-size: 1rem;
    }
}

/* Brand word shake */
.brand-words { display: inline-flex; gap: 0.35rem; align-items: baseline; }
.brand-word { 
    cursor: pointer; 
    position: relative; 
    font-weight: 900;
    display: inline-block;
    transition: transform 0.2s ease;
}
.brand-word:hover {
    transform: translateY(-2px);
}
@keyframes brand-shake { 
    0%, 100% { transform: rotate(0deg) translateY(0); } 
    10% { transform: rotate(-5deg) translateY(-2px); }
    20% { transform: rotate(5deg) translateY(2px); }
    30% { transform: rotate(-4deg) translateY(-1px); }
    40% { transform: rotate(4deg) translateY(1px); }
    50% { transform: rotate(-3deg) translateY(-1px); }
    60% { transform: rotate(3deg) translateY(1px); }
    70% { transform: rotate(-2deg) translateY(0); }
    80% { transform: rotate(2deg) translateY(0); }
    90% { transform: rotate(-1deg) translateY(0); }
}
.brand-word.shake { animation: brand-shake 500ms ease; }

/* Rich text layering */
.rich-text { 
    max-width: 70ch; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.rich-text p { 
    margin-bottom: 0; 
    color: #334155; 
    line-height: 1.8;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.rich-text p:last-child {
    border-bottom: none;
}
.rich-text p strong { 
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.rich-text .lead { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #1a202c; 
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.rich-text blockquote { 
    border-left: 4px solid #2b6cb0; 
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    background: rgba(43, 108, 176, 0.05);
    border-radius: 0 8px 8px 0;
    color: #475569; 
    font-style: italic;
    font-size: 1.05rem;
}

/* Text cards for layered content */
.text-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.text-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.text-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.text-card-content {
    color: #4a5568;
    line-height: 1.7;
}

/* Generic modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.modal {
    background: #ffffff;
    width: min(92vw, 720px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    outline: none;
}

.modal:focus-visible {
    outline: 3px solid #3182ce;
    outline-offset: 4px;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; }
.modal-title { font-weight: 800; color: #1f2937; }
.modal-close { 
    background: none; 
    border: none; 
    font-size: 1.4rem; 
    cursor: pointer; 
    padding: 0.25rem 0.5rem; 
    border-radius: 6px;
    transition: background-color 0.2s;
}
.modal-close:hover { background: #f1f5f9; }
.modal-close:focus-visible { 
    outline: 3px solid #3182ce; 
    outline-offset: 2px; 
    background: #f1f5f9;
}
.modal-body { 
    padding: 1rem 1.25rem; 
    color: #334155; 
    line-height: 1.7; 
    overflow-y: auto;
    flex: 1;
}
.modal-actions { 
    padding: 0.75rem 1.25rem 1.25rem; 
    display: flex; 
    justify-content: flex-end; 
    gap: 0.5rem; 
    border-top: 1px solid #f1f5f9;
}
.btn-primary { 
    background: #2b6cb0; 
    color: #fff; 
    border: none; 
    padding: 0.7rem 1.1rem; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 700;
    transition: background-color 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:focus-visible { 
    outline: 3px solid #3182ce; 
    outline-offset: 2px; 
}
.btn-primary:active { transform: scale(0.98); }

/* Walk card expandable details */
.walk-card .walk-summary { 
    text-align: center; 
    margin-top: 0.75rem; 
    color: #475569;
    line-height: 1.6;
}
.walk-card .walk-expanded-details { 
    display: none; 
    text-align: left; 
    margin-top: 1.5rem;
    animation: slideDown 0.4s ease;
}
.walk-card.expanded .walk-expanded-details { 
    display: block;
}
.expand-walk-btn {
    margin-top: 1rem;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}
.expand-walk-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}
.walk-card.expanded .expand-walk-btn::after {
    content: ' ↑';
}

/* Index decorative */
.decorative-stage { position: absolute; inset: 0; pointer-events: none; }
.polaroid {
    position: absolute;
    width: 180px;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: rotate(-6deg);
    animation: polaroidIn 800ms ease-out both, floaty 9s ease-in-out infinite 800ms;
    pointer-events: auto;
    cursor: pointer;
}
.polaroid:hover { transform: translateY(-6px) rotate(-4deg) scale(1.05); box-shadow: 0 16px 40px rgba(0,0,0,0.2); transition: all 0.3s ease; }
@keyframes polaroidIn { from { opacity: 0; transform: translateY(24px) rotate(-12deg); } to { opacity: 1; transform: translateY(0) rotate(-6deg); } }
.polaroid img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; display: block; }
@keyframes floaty { 
    0%, 100% { transform: translateY(0) rotate(-6deg); } 
    33% { transform: translateY(-8px) rotate(-4deg); }
    66% { transform: translateY(-12px) rotate(-2deg); }
}

.polaroid-1 {
    animation: polaroidIn 800ms ease-out both, floaty 8s ease-in-out infinite 800ms;
}
.polaroid-2 {
    animation: polaroidIn 800ms ease-out both, floaty 10s ease-in-out infinite 1400ms;
}
.polaroid-3 {
    animation: polaroidIn 800ms ease-out both, floaty 9s ease-in-out infinite 2000ms;
}

.big-vertical-text { 
    position: absolute; 
    left: -10vw; 
    top: 10vh; 
    font-size: min(18vw, 200px); 
    color: #d32f2f; 
    font-weight: 900; 
    opacity: 0.15; 
    transform: rotate(-90deg); 
    letter-spacing: -6px; 
}

/* Decorative text */
.decorative-text {
    position: absolute;
    font-size: min(8vw, 80px);
    font-weight: 900;
    color: #d32f2f;
    opacity: 0.08;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}
.decorative-text:hover {
    opacity: 0.15;
    transform: scale(1.1);
}
.decor-text-1 {
    right: 10%;
    top: 25%;
    transform: rotate(15deg);
    animation: decorFloat1 12s ease-in-out infinite;
}
.decor-text-2 {
    right: 15%;
    bottom: 30%;
    transform: rotate(-10deg);
    animation: decorFloat2 14s ease-in-out infinite;
}
.decor-text-3 {
    left: 15%;
    bottom: 20%;
    transform: rotate(8deg);
    animation: decorFloat3 11s ease-in-out infinite;
}
@keyframes decorFloat1 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(18deg); }
}
@keyframes decorFloat2 {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(15px) rotate(-8deg); }
}
@keyframes decorFloat3 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* .red-circle-btn { 
    position: absolute; 
    right: 5vw; 
    bottom: 8vh; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    background: #d32f2f; 
    box-shadow: 0 0 0 6px rgba(211,47,47,0.15);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.red-circle-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(211,47,47,0.2);
    background: #b71c1c;
}
.red-circle-btn:active {
    transform: scale(0.9);
}
.red-circle-arrow {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}
.red-circle-btn:hover .red-circle-arrow {
    transform: translateX(2px);
}
.red-circle-btn::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: 50%; 
    box-shadow: 0 0 0 0 rgba(211,47,47,0.25); 
    animation: pulse 2s infinite; 
} */
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(211,47,47,0.25);} 
    70% { box-shadow: 0 0 0 16px rgba(211,47,47,0);} 
    100% { box-shadow: 0 0 0 0 rgba(211,47,47,0);} 
}

.red-button-decor {
    position: absolute;
    right: 3vw;
    top: 30%;
    font-size: min(5vw, 48px);
    font-weight: 900;
    color: #d32f2f;
    opacity: 0.2;
    transform: rotate(-15deg);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: buttonPulse 3s ease-in-out infinite;
}
.red-button-decor:hover {
    opacity: 0.4;
    transform: rotate(-12deg) scale(1.1);
}
@keyframes buttonPulse {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(-15deg) scale(1.05); }
}

/* Image blur-up placeholder */
.img-blur { filter: blur(10px); transform: scale(1.02); transition: filter .4s ease, transform .4s ease; }
.img-loaded { filter: blur(0); transform: scale(1); }

/* Recommendations panel */
.plan-recommendations { margin-top: 2rem; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.recommend-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.recommend-card h4 { font-size: 1.05rem; font-weight: 800; color: #1a202c; margin-bottom: 0.25rem; }
.recommend-meta { color: #475569; font-size: 0.9rem; margin-bottom: 0.5rem; }
.recommend-desc { color: #334155; font-size: 0.95rem; }
@media (max-width: 768px) { .recommendation-grid { grid-template-columns: 1fr; } }

/* Button Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body { color: #e5e7eb; background-color: #0b1220; }
    .navbar { background: rgba(12, 18, 32, 0.85); border-bottom-color: rgba(255,255,255,0.08); }
    .nav-brand { color: #e5e7eb; }
    .nav-link { color: #cbd5e1; }
    .nav-link.active { color: #93c5fd; }
    .nav-menu { background: rgba(12,18,32,0.98); }
    .page-title { color: #f1f5f9; text-shadow: none; }
    .story-card, .plant-identification-card, .cultural-tour-card, .option-section, .walk-card, .connect-card, .modal { background: #0f172a; border-color: rgba(255,255,255,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
    .rich-text p, .contact-info, .tour-text p, .story-text p { color: #cbd5e1; }
    .footer { background: #0b1220; border-top-color: rgba(255,255,255,0.08); }
    .acknowledgment { color: #cbd5e1; }
    .copyright { color: #94a3b8; }
    .select-dropdown, .time-input, .difficulty-btn, .form-row input, .form-row textarea { background: #0b1220; color: #e5e7eb; border-color: #334155; }
    .info-box { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #a7f3d0; }
    .time-tips { background: rgba(245, 158, 11, 0.12); border-color: rgba(245,158,11,0.35); color: #fde68a; }
    .recommend-card { background: #0f172a; border-color: rgba(255,255,255,0.06); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
    .modal { background: #0f172a; border-color: rgba(255,255,255,0.06); }
    .modal-title { color: #f1f5f9; }
    .modal-body { color: #cbd5e1; }
    .modal-close:hover { background: rgba(255,255,255,0.1); }
    .modal-close:focus-visible { background: rgba(255,255,255,0.1); }
    .modal-header, .modal-actions { border-color: rgba(255,255,255,0.08); }
}