/* Using CSS variables for easy color changes */
:root {
    --primary-color: #007bff; /* A vibrant blue for accents */
    --secondary-color: #6c757d; /* A muted grey for text */
    --light-green: #a7d7c5;     /* Your requested nav color */
    --background-color: #f4f7f6; /* A very light, clean grey */
    --text-color: #333;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    --dropdown-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Basic Reset & Font */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

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

a:hover {
    color: #0056b3;
}

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

/* Header and Navigation */
.site-header {
    background-color: var(--light-green);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 0;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
}

.dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 220px;
    box-shadow: var(--dropdown-shadow);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    right: 0;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Page Titles */
.page-title {
    text-align: center;
    margin: 40px 0;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Hotel Grid (index.php) */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.hotel-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

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

.hotel-card .card-header, .hotel-card .card-body, .hotel-card .card-footer {
    padding: 20px;
}

.hotel-card .card-header {
    border-bottom: 1px solid var(--border-color);
}

.hotel-card h2 {
    font-size: 1.4rem;
    margin: 0.25rem 0;
}

.hotel-card .brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hotel-card .location {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

.hotel-card .card-body {
    flex-grow: 1;
}

.hotel-card .rate-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

.hotel-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
}

.hotel-card .price .currency {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.hotel-card .card-footer {
    background: #f8f9fa;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Hotel Detail Page (hotel.php) */
.hotel-detail-header {
    background: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.hotel-detail-header .brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rates Table */
.table-container {
    overflow-x: auto; /* For responsiveness on small screens */
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th, .rates-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rates-table thead {
    background-color: #f8f9fa;
}

.rates-table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.rates-table tbody tr:hover {
    background-color: #f1f3f5;
}

.rates-table .price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #343a40;
    color: #e9ecef;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer .data-notice {
    font-size: 0.8rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 10px auto 0 auto;
}