/* --- Global Styles & Variables --- */
:root {
    --primary-color: #ff006e;
    --secondary-color: #3a86ff;
    --accent-color: #ffbe0b;
    --dark-bg: #0a0a0a;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-color: #333;
    --text-muted: #777;
    --font-family: 'Poppins', sans-serif;
    --border-color: #ddd;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- Header --- */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}
.logo span {
    color: var(--accent-color);
}
.header-actions {
    display: flex;
    gap: 15px;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.icon-btn:hover {
    color: var(--primary-color);
}
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.header-main {
    background-color: var(--light-bg);
    padding: 15px 0;
}
.search-bar {
    display: flex;
    background-color: var(--white);
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow);
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: var(--font-family);
}
.search-bar button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Main Content Layout --- */
.main-content .container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* --- Filters Sidebar --- */
.filters-sidebar {
    flex: 0 0 250px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 120px;
}
.filters-sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.filter-group {
    margin-bottom: 25px;
}
.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.filter-group input[type="checkbox"] {
    margin-right: 8px;
}
#price-range {
    width: 100%;
}
#price-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Room Listing --- */
.room-listing {
    flex: 1;
}
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.listing-header h2 {
    font-size: 1.5rem;
}
.listing-header p {
    color: var(--text-muted);
}

/* --- Room Grid --- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.room-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.room-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.room-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.room-card-header {
    margin-bottom: 10px;
}
.room-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.room-card-rating {
    color: var(--accent-color);
    font-size: 0.9rem;
}
.room-card-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.room-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.room-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--white);
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.3rem;
}
.close-btn {
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3000;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}
.footer .fa-heart {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-content .container {
        flex-direction: column;
    }
    .filters-sidebar {
        flex: 1;
        position: static;
    }
}
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}