.flatpickr-input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.flatpickr-calendar {
    font-family: "Josefin Sans", sans-serif;
    /* Match your website's font */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* Main article styles */
article {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: "Josefin Sans", sans-serif;
}

/* Activity listing styles */
article > h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

article > p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Image and details */
article > div > div:first-child {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    text-align: center;
}

article > div > div:first-child img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article > div > div:last-child {
    flex: 2;
    padding: 0 20px;
}

article > div h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

article > div p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.house-price h4 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: inline;
    /* Make sure the h4 itself behaves inline */
}

.house-price h4 span {
    color: #777;
    /* Set gray color for the span */
    font-weight: normal;
    display: inline;
    /* Ensure the span also behaves inline */
    margin-left: 2px;
    /* Optional: Small spacing between the price and description */
    white-space: nowrap;
    /* Prevent the span from wrapping to the next line */
}

/* Buttons */
.btn-view-room {
    display: inline-block;
    margin-top: 10px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-view-room:hover {
    background-color: #43a047;
}

.activities-page button {
    background-color: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.activities-page button:hover {
    background-color: #ff5252;
}

/* Modal Styles */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Modal content box */
/* Modal content box */
.modal-content {
    background-color: #fff;
    width: 50% !important;
    /* Adjusted for better responsiveness */
    max-width: 700px !important;
    /* Maximum width to control size on large screens */
    min-width: 400px !important;
    /* Minimum width to avoid being too small */
    height: auto !important;
    /* Allow the height to adjust based on content */
    max-height: 80vh !important;
    /* Prevent height from exceeding the viewport */
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    margin: 20px auto !important;
    /* Center horizontally with auto margins */
    overflow-y: auto !important;
    /* Add scroll if content overflows */
    animation: fadeIn 0.3s ease-in-out !important;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

/* Tab styles */
.tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.tab {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab.active {
    color: #fff;
    background-color: #4caf50;
    border-radius: 6px;
}

.tab:hover {
    color: #fff;
    background-color: #43a047;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Styling for details */
.tab-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tab-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Styling for availability */
#availability-result {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.flatpickr-input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 10px;
}

/* Styling for photos */
.tab-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

/* Actions styling */
.actions {
    text-align: center;
    margin-top: 20px;
}

.actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background-color: #ff5252;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.actions .btn:hover {
    background-color: #ff6b6b;
}

/* Styling the separator line */
.modal-content .line-separator {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

/* Styling the Close Button */
.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.close-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    background-color: #ff5252;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #ff6b6b;
}

.main-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 300px;
    /* Optional: Adjust height as needed */
}

.main-photo img {
    max-width: 100%;
    max-height: 100%;
    /* Ensures the image doesn't exceed the container height */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnails img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.booking-form {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 60%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

.qty-btn:hover {
    background-color: #43a047;
}

.total-container {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background-color: #e9e9e9;
    border-radius: 6px;
}

.total-label {
    color: #333;
}

.total-price {
    color: #ff5252;
}

/* Button Container - "Add to Cart" aligned to the left */
.button-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
}

.add-to-cart {
    background-color: #ff6b6b;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #ff5252;
}

/* Adjustments for smaller screens */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
