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

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

/* ================= NAVBAR ================= */

.navbar {
    background: #111827;
    color: white;
    padding: 18px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 24px;
    font-size: 17px;
    font-weight: 500;
}

.navbar a:hover {
    color: #93c5fd;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ================= HERO ================= */

.hero {
    background:
        linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
        url("images/room1.jpg");
    background-size: cover;
    background-position: center;
    min-height: 520px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 28px;
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 13px 26px;
    text-decoration: none;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.btn:hover {
    background: #1d4ed8;
}

/* ================= MAIN CONTAINER ================= */

.container {
    width: 90%;
    max-width: 1150px;
    margin: 50px auto;
}

.container h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.container p {
    font-size: 18px;
    line-height: 1.6;
}

/* ================= ROOM CARDS ================= */

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.16);
}

.room-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.room-content {
    padding: 22px;
}

.room-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.room-content p {
    font-size: 16px;
    color: #4b5563;
}

.price {
    color: #2563eb !important;
    font-weight: bold;
    margin: 14px 0;
    font-size: 18px !important;
}

/* ================= FORMS ================= */

.form-box {
    background: white;
    padding: 35px;
    max-width: 480px;
    margin: 55px auto;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.form-box h2 {
    margin-bottom: 22px;
    font-size: 30px;
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 15px;
}

.form-box input:focus,
.form-box select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ================= MESSAGES ================= */

.message {
    padding: 14px;
    margin-bottom: 18px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 7px;
    font-size: 16px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ================= TABLE ================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

table th,
table td {
    padding: 15px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

table th {
    background: #111827;
    color: white;
}

/* ================= FOOTER ================= */

/* Works for footer.php using class="footer" */
.footer,
.site-footer {
    background: #111827;
    color: white;
    margin-top: 80px;
    padding: 50px 70px 20px;
}

.footer-container,
.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

.footer h3,
.site-footer h3 {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer h4,
.site-footer h4 {
    font-size: 20px;
    margin-bottom: 18px;
}

.footer p,
.site-footer p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 16px;
}

.footer a,
.site-footer a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer a:hover,
.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 18px 25px;
    }

    .navbar a {
        margin-left: 12px;
        margin-right: 12px;
    }

    .hero {
        min-height: 420px;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }

    .footer,
    .site-footer {
        padding: 35px 25px 18px;
    }

    .footer-container,
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer h3,
    .site-footer h3 {
        font-size: 24px;
    }
}