/* ===================================
   Rooms Page Styles
   Ethereal Escapes Hotel Theme
   Designed by PureCrest Themes
   =================================== */

/* Page Header - Hero Section */
.page-header {
    position: relative;
    height: 300px;
    max-height: 300px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1590490360182-c33d57733427?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(54, 69, 79, 0.85), rgba(212, 175, 55, 0.75));
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-primary);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Section */
.filter-section {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-bottom: 2px solid var(--bg-light);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.filter-group label i {
    color: var(--primary-color);
}

.filter-group select {
    width: 100%;
    padding: 14px 18px;
    height: 50px;
    border: 2px solid var(--border-color);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background-color: var(--bg-white);
    cursor: pointer;
    border-radius: 4px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Rooms Section */
.rooms-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* Rooms Layout with Sidebar */
.rooms-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.rooms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 140px;
    align-self: start;
}

.sidebar-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.sidebar-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.help-contacts {
    list-style: none;
    margin-bottom: 20px;
}

.help-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.help-contacts li:last-child {
    border-bottom: none;
}

.help-contacts li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Booking Dates Card */
.booking-dates-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(212, 175, 55, 0.8) 100%);
    border-color: var(--primary-color);
}

.booking-dates-card h3,
.booking-dates-card p {
    color: var(--text-white);
}

.dates-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-sidebar label {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
}

.date-input,
.guests-select {
    padding: 12px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: var(--transition);
}

.date-input:focus,
.guests-select:focus {
    outline: none;
    border-color: var(--text-white);
    background-color: var(--bg-white);
}

#applyDatesBtn {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

#applyDatesBtn:hover {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-card .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 14px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 14px;
    height: 50px;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.promo-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.promo-card h3,
.promo-card p {
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.promo-discount {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.promo-card .btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 14px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
    margin-top: 15px;
}

.promo-card .btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

.rooms-main {
    flex: 1;
}

.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
}

/* Enhanced Room Card */
.room-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.room-card-header {
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-bottom: 2px solid var(--primary-color);
}

.room-card-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-dark);
}

.room-type-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: 10px;
}

.room-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.room-card:hover .room-card-image img {
    transform: scale(1.1);
}

.room-price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.room-price-badge span {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

/* Room Image Carousel */
.room-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-carousel .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.room-card-image:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.room-gallery-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-gallery-indicator i {
    color: var(--primary-color);
}

.room-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-card-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
    flex: 1;
}

.room-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.room-feature i {
    color: var(--primary-color);
    font-size: 16px;
}

.room-amenities-section {
    margin-bottom: 20px;
}

.room-amenities-section h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.room-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.room-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.room-amenity-item i {
    color: var(--primary-color);
    font-size: 12px;
}

.room-card-footer {
    padding: 20px 30px;
    background-color: var(--bg-light);
    border-top: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.room-card-footer .btn {
    width: 100%;
}

/* Room Detail Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-container {
    background-color: var(--bg-white);
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
    position: relative;
    z-index: 100000;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 20px;
}

.modal-content-room {
    max-height: 90vh;
    overflow-y: auto;
}

.room-modal-header {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.room-modal-gallery {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.room-modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 30px;
}

.gallery-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-nav button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.room-modal-body {
    padding: 40px;
}

.room-modal-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.room-modal-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.room-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-modal-meta-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.room-modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.room-modal-amenities {
    margin-bottom: 30px;
}

.room-modal-amenities h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.amenities-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.amenity-item-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
}

.amenity-item-modal i {
    color: var(--primary-color);
    font-size: 16px;
}

.room-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: var(--bg-light);
    border-top: 2px solid var(--primary-color);
}

.room-modal-price {
    display: flex;
    flex-direction: column;
}

.room-modal-price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.room-modal-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.room-modal-price-period {
    font-size: 14px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1200px) {
    .rooms-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .rooms-layout {
        grid-template-columns: 1fr;
    }
    
    .rooms-sidebar {
        position: relative;
        top: 0;
        grid-row: 2;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
    }
    
    .room-features {
        grid-template-columns: 1fr;
    }
    
    .room-modal-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .room-modal-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 250px;
        max-height: 250px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .room-amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid-modal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

  /* Book Now button inside room cards */
  .room-card a.btn,
  .room-card a.btn-primary,
  .room-card .btn-primary,
  .room-card .book-now,
  .room-card button {
      display: block !important;
      width: 100% !important;
      text-align: center !important;
      box-sizing: border-box;
  }

  /* If button is inside an actions container */


