/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #00bcd4;
    color: #fff;
    border-color: #00bcd4;
}

main {
    padding: 20px;
    text-align: center;
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 1.2rem;
    color: #666;
}

/* Description Cards */
.description {
    display: flex;
    flex-direction: column;
    margin: 40px 0;
}

.description-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.description-item {
    flex: 1 1 100%;
    margin: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.description-item.half-width {
    flex: 1 1 45%;
}

/* Home Page Images */
.image-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.home-image {
    flex: 1 1 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-image img {
    width: 100%;
    display: block;
}

.home-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Caleb Hotels Media (desktop default) */
.hotel-image,
.hotel-video {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    border-radius: 10px;
    height: auto;
}

.hotel-image {
    pointer-events: none;
}

.hotel-video {
    pointer-events: auto;
}

/* Review Button */
.review-button a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.review-button a:hover {
    background-color: #00bcd4;
}

/* ===================== */
/* Reviews Page Styles   */
/* ===================== */

.review-form {
    background: #fff;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    box-sizing: border-box; /* FIX */
}

.review-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* FIX */
}

.review-form textarea {
    min-height: 100px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-direction: row-reverse;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffcc00;
}

.review-form button {
    background: #333;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.review-form button:hover {
    background-color: #00bcd4;
}

.previous-reviews {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.review-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.review-item h3 {
    margin: 0;
}

.review-item .stars {
    color: #ffcc00;
    margin: 5px 0;
}

.review-item .date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
    color: #777;
}

.sort-options {
    margin-bottom: 20px;
}

.sort-options select {
    padding: 8px 12px;
    border-radius: 5px;
}

/* Footer (RESTORED) */
footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        flex-wrap: nowrap;
    }

    nav ul li a {
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .image-grid {
        flex-direction: column;
    }

    .home-image {
        max-width: 100%;
    }

    .hotel-image,
    .hotel-video {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        max-height: 220px;
    }
}

