/* assets/css/style.css - Premium Directory Theme */
:root {
    --primary-color: #0d47a1; /* Deep Professional Blue */
    --secondary-color: #1976d2; /* Lighter Blue */
    --accent-color: #ff9800; /* Warm Orange for Ratings */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #f4f7f6;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --radius: 8px; /* Sharper corners for professional look */
    --transition: all 0.2s ease-in-out;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.py-5 { padding: 3rem 0; }
.mt-3 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-gold { color: var(--accent-color); }
.text-primary { color: var(--primary-color); }
.text-light { color: var(--text-light) !important; }

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.nav-dropdown:hover .dropdown-content {
    display: block !important;
}
.dropdown-content {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.dropdown-content a:hover {
    background: #f8f9fa;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Search Bar */
.search-wrapper {
    flex: 0 1 350px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-family: inherit;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(25, 118, 210, 0.8)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1920') center/cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e3f2fd;
}
.quick-searches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.quick-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}
.quick-btn:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Grids */
.beach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 25px;
}
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}

/* Cards */
.beach-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.beach-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.beach-card-img {
    position: relative;
    height: 200px;
}
.beach-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    color: #111;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}
.rating-badge i { color: var(--accent-color); }

.temp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.beach-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.beach-card-content h3 {
    font-size: 1.1rem;
    margin: 5px 0;
}
.region-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: bold;
}
.reviews-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 10px;
}

.region-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: block;
    color: var(--text-main);
}
.region-card h3 { color: var(--primary-color); }
.region-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Detail Page */
.beach-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}
.beach-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.breadcrumb { color: #ddd; margin-bottom: 15px; font-size: 0.9rem; }
.breadcrumb a { color: #fff; text-decoration: underline; }

.beach-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}
.beach-layout > * { min-width: 0; }

.box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.box h2, .box h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Weather Vertical */
.weather-list {
    display: flex;
    flex-direction: column;
}
.weather-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.weather-row:last-child { border-bottom: none; }
.weather-row.current-time {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    font-weight: bold;
}
.weather-row .w-time { width: 60px; color: var(--text-light); }
.weather-row .w-temp { font-size: 1.1rem; color: var(--primary-color); font-weight: bold; }
.weather-row .w-wind { font-size: 0.9rem; color: #666; }

/* Reviews */
.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.review-author { font-weight: bold; }
.review-stars { color: var(--accent-color); font-size: 0.9rem; }
.review-text { font-size: 0.95rem; color: #444; font-style: italic; }
.review-date { font-size: 0.8rem; color: #888; display: block; margin-top: 5px; }

/* Video */
.video-wrapper iframe {
    width: 100% !important;
    height: 400px !important;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 50px;
}
.footer h3 { color: #fff; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.seo-text { font-size: 0.85rem; color: #888; margin-top: 40px; border-top: 1px solid #333; padding-top: 20px; text-align: center; }

@media (max-width: 768px) {
    .beach-layout { grid-template-columns: 1fr; }
    .search-wrapper { display: none; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .hero h1 { font-size: 2rem; }
    
    /* Mobile Navigation */
    .desktop-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        backdrop-filter: blur(10px);
        border-top: 1px solid #eee;
        gap: 0;
    }
    .desktop-nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    .desktop-nav > a, .desktop-nav .nav-dropdown {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .desktop-nav .nav-dropdown > a {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
    }
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        background: transparent !important;
        border-left: 2px solid var(--primary-color) !important;
        margin-top: 10px;
        display: none;
    }
    .nav-dropdown.active .dropdown-content {
        display: block !important;
    }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Metric Cards */
.detail-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 30px; }
.dmetric-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: transform 0.2s; }
.dmetric-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.dmetric-icon { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.dmetric-val { display: block; font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 4px; }
.dmetric-lbl { display: block; font-size: 0.85rem; color: #777; font-weight: 500; }

/* Detail Prose */
.detail-prose { background: #f8fcfd; border-left: 4px solid var(--primary-color); padding: 20px; border-radius: 4px 8px 8px 4px; margin-bottom: 30px; }
.detail-prose h2 { font-size: 1.3rem; margin-top: 0; margin-bottom: 10px; color: var(--primary-color); }
.detail-prose p { font-size: 1.05rem; line-height: 1.7; color: #444; margin: 0; }
.detail-updated { font-size: 0.85rem; color: #888; margin-top: 15px !important; display: block; }

