:root {
    /* Tropical & Luminous Palette */
    --color-bg-light: #F4F9F9; /* Very light cyan/grey backdrop */
    --color-sand: #FDF5E6; /* Old lace / sandy white */
    --color-primary: #00A896; /* Tropical teal */
    --color-secondary: #02C39A; /* Lighter vivid teal */
    --color-accent: #F4A261; /* Warm sandy orange */
    --color-accent-hover: #E76F51;
    --color-text-dark: #2C3E50;
    --color-text-light: #7F8C8D;
    
    --shadow-soft: 0 10px 30px rgba(0, 168, 150, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 168, 150, 0.2);
    --border-radius: 16px;
    
    font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Typography elements */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 15vh;
    min-height: 120px;
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.9), rgba(2, 195, 154, 0.8)), url('https://images.unsplash.com/photo-1542154446-f946d8de3ae8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* App Container */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 400px;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: var(--shadow-soft);
}

.sidebar-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--color-sand);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
}

.hotel-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Custom scrollbar */
}

.hotel-list::-webkit-scrollbar {
    width: 6px;
}
.hotel-list::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
}

/* Hotel Card */
.hotel-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hotel-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-primary);
}

.hotel-card.military .hotel-card-image {
    border-bottom-color: var(--color-accent);
}

.hotel-card-content {
    padding: 16px;
    flex: 1;
}

.hotel-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 168, 150, 0.2);
}

.hotel-card:hover::before {
    opacity: 1;
}

.hotel-card.military {
    border-color: var(--color-accent);
}
.hotel-card.military::before {
    background: var(--color-accent);
}

.hotel-name {
    font-family: 'Outfit', sans-serif; /* Modern sans for card titles */
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.hotel-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--color-sand);
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.hotel-badge.military {
    background: #FFF3E0;
    color: var(--color-accent-hover);
}

.hotel-location, .hotel-sea-dist {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hotel-sea-dist {
    color: var(--color-secondary);
    font-weight: 600;
}

.hotel-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 10px;
    color: var(--color-text-dark);
}

/* Map Section */
.map-section {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 10;
}

/* Custom Map Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
    width: 250px !important;
}

.map-popup {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.popup-text-content {
    padding: 12px 15px;
}

.popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0 0 5px 0;
}

.popup-info {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin: 2px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column-reverse;
    }
    
    .sidebar {
        width: 100%;
        height: 50vh;
        border-right: none;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    }
    
    .map-section {
        height: 50vh;
    }
    
    .hero {
        height: auto;
        padding: 20px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
