html {
    font-size: 85%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    scroll-padding-bottom: 10rem;
}

html::-webkit-scrollbar {
    width: 0;
}

html::-webkit-scrollbar-track {
    background: var(--accent-color);
    display: none;
}

html::-webkit-scrollbar-thumb {
    background: var(--background-color);
    border-radius: 2rem;
    display: none;
}

.btn-book {
    color: var(--surface-color);
    background: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 20px !important;
    border-radius: 50px;
    border: solid 1px var(--accent-color);
    transition: 0.5s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.gallery-container {
    display: grid;
    gap: 16px;
    padding: 16px;
    grid-template-columns: repeat(1, 1fr); /* Default: One image per row */
    transition: grid-template-columns 0.3s ease-in-out;
}

/* Card Styling */
.gallery-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none; /* Initially hide all images */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.gallery-card:hover {
    transform: translateY(-10px) scale(1.05); /* Lift and enlarge slightly */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Add a soft shadow */
}

.gallery-card img {
    width: 100%;
    height: 200px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Ensures the image fills the area while preserving its aspect ratio */
    display: block;
    border-bottom: 1px solid #ddd;
    transition: transform 0.5s ease;
}

.gallery-card-content {
    padding: 10px;
}

.gallery-card-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 10px;
}

.gallery-card-content p {
    font-size: 0.9rem;
    color: #666;
}

/* Show the load more button when there are more images */
.load-more-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    margin-top: 20px;
    width: 100%;
    grid-column: span 1;
}

/* Load More Button */
.load-more-btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: #218838;
}

/* Media Queries for responsive layout */
@media (min-width: 576px) {
    /* For medium-sized devices (tablets), show 2 images per row */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .load-more-container {
        grid-column: span 2; /* Matches the number of columns */
    }
}

@media (min-width: 768px) {
    /* For large devices (desktops), show 4 images per row */
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .load-more-container {
        grid-column: span 4; /* Ensures it spans across all columns */
    }
}

/* Container for the testimonials */
.testimonial-container {
    padding: 20px;
}

/* Individual Testimonial Card */
.testimonial-card {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Testimonial Card Content */
.testimonial-card-content {
    display: flex;
    width: 100%;
    max-width: 800px; /* Ensure the card doesn't become too wide */
    gap: 20px; /* Gap between photo and details */
}

/* Left Side: Guest Photo */
.testimonial-photo {
    flex: 0 0 100px;
    width: 100px;
    height: 100px; /* Fixed size for the photo */
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* Right Side: Testimonial Details */
.testimonial-details {
    flex: 1;
}

/* Guest Name */
.testimonial-details h3 {
    font-size: 1.5em;
    margin: 0;
}

/* Country */
.testimonial-country {
    font-size: 1em;
    color: #777;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1em;
    margin: 10px 0;
    color: #333;
}

/* Rating Stars */
.testimonial-rating {
    margin: 10px 0;
}

.testimonial-rating i {
    color: #ffc107;
    margin-right: 2px;
}

/* Date */
.testimonial-date {
    font-size: 0.9em;
    color: #aaa;
}

/* General styling */
.form-group {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

/* File upload container styling */
.image-upload-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    position: relative;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    text-align: center;
}

.upload-label:hover {
    color: #333;
}

.upload-label i {
    font-size: 24px;
    margin-right: 8px;
    color: #007bff;
}

#foto {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* Image preview styling */
.image-preview {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
}

#preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #ddd;
    object-fit: cover;
}

.rating {
    display: flex;
    flex-direction: row; /* Display stars in a row from left to right */
    justify-content: center;
    font-size: 2rem;
    color: #ddd; /* Default color for unselected stars */
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 2rem;
    color: #ddd; /* Default unselected color */
}

.rating input {
    display: none; /* Hide radio buttons */
}

.rating label {
    cursor: pointer;
    transition: color 0.2s;
}

/* Highlight stars up to the hovered one */
.rating label:hover,
.rating label:hover ~ label {
    color: gold; /* Highlight stars up to the hovered one */
}

/* Keep stars up to the selected one highlighted */
.rating input:checked ~ label {
    color: gold; /* Persist selected stars' color */
}

/* Reset stars after the selected or hovered one */
.rating input:checked ~ label:hover ~ label {
    color: #ddd; /* Reset stars after the hovered one */
}

/* Responsive Design: Make it look good on smaller screens */
@media (max-width: 768px) {
    .testimonial-card-content {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-photo {
        margin-bottom: 15px;
    }
}

.advertisement .ad-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
}
.advertisement img {
    max-height: 200px;
    object-fit: cover;
}
.advertisement h5 {
    font-weight: bold;
    color: #007bff;
}
.advertisement p {
    font-size: 14px;
    color: #6c757d;
}
.advertisement .btn {
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.advertisement .btn:hover {
    background: #0056b3;
    color: #fff;
}
.advertisement .ad-container {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}
.error-container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn-custom {
    margin: 10px 5px;
    padding: 10px 20px;
    color: #fff;
    background: #e67e22;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-custom:hover {
    background: #d35400;
    color: #fff;
}

.booking-form,
#available-rooms {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-card h4 {
    margin: 0 0 10px;
}

.room-card p {
    margin: 0 0 10px;
}

.room-card .btn {
    margin-top: 5px;
}
