/* General styles for the common rooms section */
.common-rooms * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.common-rooms body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Common Rooms Section Styles */
.common-rooms .common-rooms-section {
    width: 100%;
    max-width: 1100px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 50px auto;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    border-top: 6px solid #2ecc71; /* Added top border to add structure */
}

/* Header styles */
.common-rooms .common-rooms-header {
    text-align: center;
    margin-bottom: 40px;
}

.common-rooms .common-rooms-title {
    color: #2c3e50;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1.5px; /* Added letter-spacing for elegance */
    text-transform: uppercase; /* Uppercase for emphasis */
}

.common-rooms .common-rooms-description {
    font-size: 20px;
    color: #7f8c8d;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px; /* Added space below description */
}

/* Horizontal Tabs for Rooms */
.common-rooms .common-rooms-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
}

.common-rooms .room-tab {
    padding: 15px 30px;
    background-color: #ecf0f1;
    border-radius: 25px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.common-rooms .room-tab:hover {
    background-color: #2ecc71;
    color: white;
    transform: translateY(-6px); /* Larger hover effect */
}

.common-rooms .room-tab.active {
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Room Content Section */
.common-rooms .common-rooms-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.common-rooms .room-content {
    display: none;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.common-rooms .room-content h2 {
    color: #2c3e50;
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1.2px; /* Added letter-spacing */
}

.common-rooms .room-content p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.common-rooms .room-content ul {
    list-style-type: none;
    padding-left: 0;
}

.common-rooms .room-content li {
    margin: 8px 0;
    font-size: 16px;
    color: #34495e;
}

.common-rooms .room-content ul li::before {
    content: "✔️";
    margin-right: 10px;
    color: #2ecc71;
}

/* Image Slider Styles */
.common-rooms .image-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 500px; /* Default height for better proportion */
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #ecf0f1;
    margin-bottom: 40px;
}

.common-rooms .image-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.common-rooms .image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.common-rooms .image-slider img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Slider Buttons */
.common-rooms .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 28px;
    padding: 16px;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.3s ease, transform 0.3s ease-in-out;
    border-radius: 50%;
}

.common-rooms .prev-btn {
    left: 15px;
}

.common-rooms .next-btn {
    right: 15px;
}

.common-rooms .slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.2); /* Slightly enlarge button on hover */
}

/* Active Room Content */
.common-rooms .room-content.active {
    display: block;
}

/* Book Button Styles */
.common-rooms .book-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    width: 100%;
}

.common-rooms .book-btn:hover {
    background-color: #27ae60;
    transform: translateY(-4px); /* Subtle hover lift effect */
}

/* Explore More Button Styles */
.common-rooms .explore-btn {
    background-color: #3498db; /* Blue color for Explore More */
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 15px; /* Add space between the two buttons */
    transition: all 0.3s ease;
    width: 100%;
}

.common-rooms .explore-btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-4px); /* Subtle hover effect */
}

/* Responsive styles for the slider */
@media (max-width: 1024px) {
    /* Tablet screens */
    .common-rooms .image-slider-container {
        height: 400px;
    }

    .common-rooms .common-rooms-title {
        font-size: 36px;
    }

    .common-rooms .room-tab {
        font-size: 18px;
        padding: 14px 24px;
    }

    .common-rooms .room-content h2 {
        font-size: 26px;
    }

    .common-rooms .room-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Large Mobile Devices */
    .common-rooms .image-slider-container {
        height: 350px;
    }

    .common-rooms .common-rooms-section {
        padding: 25px;
    }

    .common-rooms .common-rooms-title {
        font-size: 32px;
    }

    .common-rooms .room-tab {
        font-size: 16px;
        padding: 12px 22px;
    }

    .common-rooms .room-content {
        padding: 30px;
    }

    .common-rooms .room-content h2 {
        font-size: 24px;
    }

    .common-rooms .room-content p {
        font-size: 15px;
    }

    .common-rooms .slider-btn {
        font-size: 24px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    /* Small Mobile Devices */
    .common-rooms .image-slider-container {
        height: 250px;
    }

    .common-rooms .common-rooms-section {
        padding: 20px;
    }

    .common-rooms .common-rooms-title {
        font-size: 28px;
    }

    .common-rooms .room-tab {
        font-size: 14px;
        padding: 10px 20px;
    }

    .common-rooms .room-content {
        padding: 20px;
    }

    .common-rooms .room-content h2 {
        font-size: 22px;
    }

    .common-rooms .room-content p {
        font-size: 14px;
    }

    .common-rooms .slider-btn {
        font-size: 22px;
        padding: 12px;
    }
}
