/* ========================================
   Mami's 60th Birthday Trip Website
   Airbnb-inspired Modern Design
   ======================================== */

:root {
    --primary: #FF385C;
    --primary-dark: #E31C5F;
    --primary-light: #FF5A5F;
    --secondary: #00A699;
    --dark: #222222;
    --gray-dark: #484848;
    --gray: #767676;
    --gray-light: #EBEBEB;
    --gray-lighter: #F7F7F7;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-cursive: 'Cedarville Cursive', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-cursive);
}

.nav-tabs {
    display: flex;
    background: var(--gray-lighter);
    border-radius: 40px;
    padding: 4px;
}

.nav-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: var(--dark);
}

.nav-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF 50%, #F0FFFE 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button {
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-plane,
.floating-balloon,
.floating-gift {
    position: absolute;
    font-size: 48px;
    animation: float 6s ease-in-out infinite;
}

.floating-plane {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.floating-balloon {
    top: 30%;
    left: 10%;
    animation-delay: 2s;
}

.floating-gift {
    bottom: 25%;
    right: 20%;
    animation-delay: 4s;
}

/* ========================================
   Section Styles
   ======================================== */

.section-header {
    text-align: center;
    padding: 60px 24px 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* ========================================
   Tab Content
   ======================================== */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Map Section
   ======================================== */

.map-section {
    padding: 0 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

#map {
    height: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Custom Leaflet Marker Styles */
.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    background: var(--primary-dark);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.popup-content {
    padding: 16px;
}

.popup-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.popup-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.popup-button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-button:hover {
    background: var(--primary-dark);
}

/* ========================================
   Cities Grid
   ======================================== */

.cities-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.city-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.city-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.08);
}

.city-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.city-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-favorite:hover {
    transform: scale(1.1);
}

.city-info {
    padding: 20px;
}

.city-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.city-country {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.city-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.city-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-dark);
}

.city-stat-icon {
    font-size: 16px;
}

.city-travel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.travel-from {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.travel-from-city {
    color: var(--gray);
}

.travel-time {
    font-weight: 600;
    color: var(--dark);
}

.travel-direct {
    color: var(--secondary);
    font-size: 11px;
    margin-left: 4px;
}

.city-cta {
    margin-top: 16px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Game Section
   ======================================== */

.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.game-header p {
    font-size: 18px;
    color: var(--gray);
}

.progress-bar {
    position: relative;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 10%;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 40px;
}

.game-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.question-container {
    animation: fadeIn 0.5s ease;
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.question-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    line-height: 1.3;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gray-lighter);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-button:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(8px);
}

.option-icon {
    font-size: 28px;
}

.option-text {
    flex: 1;
}

.option-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: var(--gray);
}

/* Game Results */
.game-results {
    text-align: center;
}

.game-results h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.results-intro {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

.results-cities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.result-city-card {
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-city-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.result-city-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.result-city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.result-city-country {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.result-match {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.restart-button {
    padding: 16px 40px;
    background: var(--gray-lighter);
    border: none;
    border-radius: 40px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-button:hover {
    background: var(--gray-light);
}

/* ========================================
   Modal Styles
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-hero {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

.modal-hero-overlay h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-hero-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

.modal-details {
    padding: 32px 40px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-section h3 span {
    font-size: 24px;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.modal-stat-card {
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.modal-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.modal-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.modal-stat-label {
    font-size: 13px;
    color: var(--gray);
}

.modal-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-photos img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.modal-photos img:hover {
    transform: scale(1.05);
}

.modal-description {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.7;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.highlight-tag {
    padding: 10px 18px;
    background: var(--gray-lighter);
    border-radius: 20px;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-cta {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Confirm Modal */
.confirm-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.confirm-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: bounce 0.6s ease;
}

.confirm-modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.confirm-modal-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 8px;
}

.confirm-message {
    margin-bottom: 32px !important;
}

.confirm-buttons {
    display: flex;
    gap: 16px;
}

.confirm-cancel,
.confirm-send {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-cancel {
    background: var(--gray-lighter);
    border: none;
    color: var(--dark);
}

.confirm-cancel:hover {
    background: var(--gray-light);
}

.confirm-send {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
}

.confirm-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Toast
   ======================================== */

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    animation: slideUpToast 0.5s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 16px;
    font-weight: 500;
}

.toast-icon {
    font-size: 24px;
}

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

.footer {
    text-align: center;
    padding: 60px 24px;
    background: var(--gray-lighter);
}

.footer p {
    font-size: 18px;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.footer-subtitle {
    font-size: 14px !important;
    color: var(--gray) !important;
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
    }

    .navbar {
        height: auto;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    .game-container {
        padding: 140px 20px 60px;
    }

    .game-content {
        padding: 32px 24px;
    }

    .question-text {
        font-size: 22px;
    }

    .option-button {
        padding: 16px;
    }

    .modal-hero {
        height: 200px;
    }

    .modal-details {
        padding: 24px;
    }

    .modal-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .cities-grid {
        grid-template-columns: 1fr;
    }

    .floating-plane,
    .floating-balloon,
    .floating-gift {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .modal-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-cities {
        grid-template-columns: 1fr;
    }
}
