:root {
    --bg-main: #e5e7eb; /* Grey solid color */
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-color: #d1d5db;
    --accent-ocean: #3b82f6; 
    --accent-forest: #10b981; 
    --accent-sand: #f59e0b; 
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 100px;
    --search-radius: 4px; /* Default sharp edge */
    --nav-bg: rgba(229, 231, 235, 0.85);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --hover-glow: 0 0 30px rgba(59, 130, 246, 0.15);
    --particle-rgb: 17, 24, 39;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

.typewriter-logo {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    padding-left: 0.5rem;
}
.typewriter-logo::before {
    content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 2px;
    background: var(--accent-ocean); animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

a, button, input, select, textarea { cursor: none; }

/* Custom Cursor */
#cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--text-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}
#cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 35px; height: 35px;
    border: 1px solid rgba(var(--particle-rgb), 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background 0.2s;
}
body:active #cursor-glow {
    width: 25px; height: 25px;
    background: rgba(var(--particle-rgb), 0.2);
}

/* Typography */
.typewriter-logo {
    font-family: 'Courier Prime', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}
.typewriter-logo::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--text-muted);
}
@keyframes blink { 50% { opacity: 0; } }

/* Navbar */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    background: var(--nav-bg); border-bottom: 1px solid var(--border-color);
}
.navbar {
    max-width: 1400px; margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-links, #mainNav, #navContainer {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
    transition: var(--transition); text-decoration: none;
}
.nav-link:hover { color: var(--text-main); }
.btn-icon { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; transition: var(--transition); outline: none; }
.btn-icon:hover { color: var(--text-main); transform: scale(1.1); }

/* Buttons */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600; border: none; font-size: 0.95rem;
    transition: var(--transition);
}
.btn-primary:hover {
    box-shadow: var(--hover-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
    box-shadow: var(--hover-glow);
}

/* Hero Section - The Experiential Upgrade */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 4rem 2rem;
    overflow: hidden;
    background: url('hero_destinations_collage_1776605650430.png') center/cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(229, 231, 237, 0.1) 0%, rgba(229, 231, 237, 0.8) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 10;
    max-width: 1000px; width: 100%;
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 6.5rem; font-weight: 800;
    margin-bottom: 1.5rem; letter-spacing: -4px;
    line-height: 1; text-transform: capitalize;
}
.hero p {
    font-size: 1.35rem; color: var(--text-main);
    margin-bottom: 4rem; max-width: 650px; margin-inline: auto;
    font-weight: 400;
}

/* Big Search Bar Upgrade */
.search-container {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    padding: 0.6rem;
    border-radius: var(--search-radius);
    border: 1px solid var(--border-color);
    display: flex; gap: 0.5rem;
    position: relative; transition: var(--transition);
    max-width: 850px; margin: 0 auto;
    box-shadow: none !important;
}
.search-container:focus-within {
    border-color: var(--accent-ocean);
    transform: scale(1.02);
}
.search-input-group {
    flex: 1; display: flex; align-items: center;
    padding: 0.5rem 1.5rem; position: relative;
    border-right: 1px solid var(--border-color);
}
.search-input-group i { color: var(--accent-ocean); margin-right: 1.25rem; font-size: 1.25rem; }
.search-input {
    border: none; background: transparent; color: var(--text-main);
    width: 100%; font-size: 1.1rem; outline: none; font-family: inherit; font-weight: 600;
}
select.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2.5rem;
}
.search-btn {
    background: #000000;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--search-radius);
    border: none; font-weight: 700; font-size: 1.25rem;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.search-btn:hover {
    filter: brightness(1.1);
}
.search-btn i { font-size: 1.1rem; }

select.search-input option {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
}
.search-btn {
    background: var(--text-main); color: var(--bg-main);
    border: none; width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: var(--transition);
}
.search-btn:hover {
    transform: scale(1.08); box-shadow: var(--hover-glow);
}

/* Suggestions Box */
.suggestions-box {
    position: absolute; top: calc(100% + 15px); left: 0; right: 0;
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-height: 350px; overflow-y: auto; z-index: 50;
    display: none; text-align: left;
    animation: fadeInSlide 0.3s ease forwards;
}
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.suggestion-item {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 1rem; transition: var(--transition);
    color: var(--text-muted); font-weight: 500;
}
.suggestion-item span { color: var(--text-main); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-hover); padding-left: 2rem; color: var(--text-main); }

/* Sections */
.section { padding: 5rem 2.5rem; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; letter-spacing: -1px; }

/* Categories */
.categories-slider {
    display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem;
    scrollbar-width: none;
}
.categories-slider::-webkit-scrollbar { display: none; }
.category-card {
    min-width: 130px; padding: 1.5rem; border-radius: var(--radius-md);
    text-align: center; border: 1px solid var(--border-color);
    transition: var(--transition); background: var(--bg-card);
}
.category-card:hover { border-color: rgba(var(--particle-rgb), 0.4); transform: translateY(-5px); box-shadow: var(--hover-glow); }
.category-card.active { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }
.category-card.active .icon { opacity: 1; filter: invert(1); }
[data-theme="light"] .category-card.active .icon { filter: invert(0); }
.category-card .icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.9; }

/* Places Grid */
.places-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem;
}
.place-card {
    background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-color); transition: var(--transition);
    display: flex; flex-direction: column; position: relative;
}
.banner-card {
    transition: var(--transition);
}
.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.banner-card img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.banner-card:hover img {
    transform: scale(1.05);
}
.place-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(var(--particle-rgb), 0.05);
    border-color: rgba(var(--particle-rgb), 0.15);
}
[data-theme="light"] .place-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 15px rgba(0,0,0,0.05);
}
/* Place Discovery Grid & Cards */
.place-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.place-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.place-img {
    width: 100%; height: 280px; object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}
.place-card:hover .place-img {
    filter: brightness(1.1);
    transform: scale(1.05);
}
.place-content {
    padding: 2rem; flex: 1; display: flex; flex-direction: column;
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-hover));
}
.place-title {
    font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem;
    letter-spacing: -0.5px; line-height: 1.2;
}
.place-location { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
.place-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: auto; }
.place-rating { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--text-main); }
.place-rating i { color: var(--text-muted); }

/* Story Section - Emotional Layer */
.story-section {
    padding: 10rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, var(--bg-hover) 0%, var(--bg-main) 100%);
    position: relative;
}
.story-tag {
    color: var(--accent-sand);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    display: block;
}
.story-title {
    font-size: 4rem;
    max-width: 900px; margin: 0 auto 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}
.story-btn {
    border-bottom: 2px solid var(--accent-ocean);
    padding-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}
.story-btn:hover {
    color: var(--accent-ocean);
    padding-left: 1rem;
}

/* Place Details Page */
.details-hero {
    height: 50vh; min-height: 400px; background-size: cover; background-position: center;
    border-radius: var(--radius-lg); margin-bottom: 3rem; position: relative;
    border: 1px solid var(--border-color);
}
.details-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, var(--bg-main) 10%, transparent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.details-header-content {
    position: absolute; bottom: 0; left: 0; padding: 3rem; z-index: 10; width: 100%;
}
.tag {
    background: rgba(var(--particle-rgb), 0.08); border: 1px solid rgba(var(--particle-rgb), 0.1);
    backdrop-filter: blur(10px); padding: 0.4rem 1rem; border-radius: var(--radius-full);
    font-size: 0.75rem; margin-right: 0.5rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.flex-split { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem;}

/* Details specific buttons */
.btn-book {
    background: transparent; color: var(--text-main);
    border: 1px solid rgba(var(--particle-rgb), 0.3); border-radius: var(--radius-full);
    padding: 0.85rem 2.25rem; font-weight: 600; font-size: 1rem;
    transition: var(--transition); margin-left: 1rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-book:hover {
    background: var(--text-main); color: var(--bg-main);
    box-shadow: var(--hover-glow); border-color: var(--text-main);
}
.map-container {
    width: 100%; height: 450px; background: var(--bg-card);
    border-radius: var(--radius-lg); border: 1px solid var(--border-color);
    overflow: hidden; margin-bottom: 2.5rem; filter: var(--map-filter);
}

/* Dashboard / Form / Modals */
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; min-height: 70vh; }
.sidebar { background: transparent; padding-right: 1.5rem; border-right: 1px solid var(--border-color); height: fit-content; }
.sidebar-link {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-md);
    color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; transition: var(--transition);
}
.sidebar-link:hover, .sidebar-link.active { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-color); }
.dashboard-content { background: transparent; }

/* Modals & Forms */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-main); border-radius: var(--radius-lg);
    width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    padding: 3rem; border: 1px solid var(--border-color);
    transform: scale(0.95) translateY(20px); transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0,0,0,1);
}
[data-theme="light"] .modal-content { box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { color: var(--text-main); transform: rotate(90deg); }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.form-input {
    width: 100%; padding: 1.1rem; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-main); border-radius: var(--radius-md);
    outline: none; transition: var(--transition); font-size: 1rem; font-family: inherit;
}
.form-input:focus { border-color: rgba(var(--particle-rgb), 0.5); background: var(--bg-hover); box-shadow: 0 0 10px rgba(var(--particle-rgb), 0.05); }

/* Drag and Drop Zone */
.drag-drop-zone {
    border: 2px dashed var(--border-color); border-radius: var(--radius-md);
    padding: 2.5rem; text-align: center; color: var(--text-muted);
    transition: var(--transition); background: transparent;
}
.drag-drop-zone.dragover {
    border-color: var(--text-main); background: rgba(var(--particle-rgb), 0.02);
}

.table { width: 100%; border-collapse: separate; border-spacing: 0 0.5rem; }
.table th, .table td { padding: 1.25rem 1rem; text-align: left; }
.table th { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid var(--border-color); }
.table tr td { background: var(--bg-card); border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.table tr td:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); border-left: 1px solid var(--border-color); }
.table tr td:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); border-right: 1px solid var(--border-color); }
.table tr:hover td { background: var(--bg-hover); border-color: rgba(var(--particle-rgb), 0.1); }
.badge { padding: 0.4rem 0.85rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }

/* Animations & Views */
.view { display: none; animation: fadeSlide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.view.active { display: block; }
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Helper */
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Skeleton Loading Evolution */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%; animation: shimmer 2s infinite linear; border-radius: var(--radius-md);
    opacity: 0.6;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Floating Micro-animation */
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-5px); }

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sidebar { border-right: none; border-bottom: 1px solid var(--border-color); padding-right: 0; padding-bottom: 1rem; display: flex; overflow-x: auto; }
    .hero h1 { font-size: 3.5rem; }
    
    .search-container { flex-direction: column; background: transparent; border: none; padding: 0; }
    .search-input-group { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--search-radius); margin-bottom: 0.75rem; border-right: 1px solid var(--border-color); }
    .search-btn { width: 100%; border-radius: var(--search-radius); justify-content: center; }
    
    #mobileMenuToggle { display: block !important; }
    
    .dash-header { flex-direction: column; align-items: flex-start !important; gap: 1rem; }
    .dash-header button { width: 100%; }

    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; right: 0; 
        background: var(--nav-bg); 
        backdrop-filter: blur(25px); 
        width: 100%; 
        padding: 2rem; 
        border-bottom: 1px solid var(--border-color); 
        align-items: center; 
        gap: 1.5rem; 
        z-index: 1000;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    .nav-links.mobile-active { display: flex; }
    #navContainer { flex-direction: column; width: 100%; gap: 1.5rem !important; }
    #navContainer .btn-primary, #navContainer .btn-outline { width: 100%; text-align: center; }

    #cursor-dot, #cursor-glow { display: none; }
    body { cursor: auto; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; letter-spacing: -1.5px; }
    .places-grid { grid-template-columns: 1fr; }
    .details-hero { height: 350px; }
    .details-header-content h1 { font-size: 2.2rem; }
}
