/* Base styles */
.room img, .roomsPage .nivoSlider {
  height: auto !important;
    max-height: 50vh;
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}


/* Tablet and Mobile Devices */
@media screen and (max-width: 768px) {
  .room img, .roomsPage .nivoSlider {
      height: 40vh !important;
      width: 100vw !important;
      max-width: 85vw;
      object-fit: cover;
      object-position: center;
  }
}

/* Mobile Devices - Portrait */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .room img, .roomsPage .nivoSlider {
      height: 35vh !important;
      width: 100vw !important;
  }
}

/* Mobile Devices - Landscape (Fix for squashed images) */
@media screen and (max-width: 896px) and (orientation: landscape) {
  .room img, .roomsPage .nivoSlider {
      max-height: max-content;
      height: auto !important;
      max-width: 74vw;
      object-fit: cover;
      object-position: center;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 375px) {
  .room img, .roomsPage .nivoSlider {
      height: 30vh !important;
      width: 80vw !important;
  }
}

/* High DPI/Retina Displays - All orientations */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
  .room img, .roomsPage .nivoSlider {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Container adjustments for full-width images */
@media screen and (max-width: 768px) {
  .room {
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
  }
}

/* Ultra-wide screens */
@media screen and (min-width: 1400px) {
  .room img, .roomsPage .nivoSlider {
      height: 200px !important;
      max-width: 1200px;
      margin: 0 auto;
  }
}

@media only screen 
  and (min-device-width: 1366px) 
  and (max-device-width: 1366px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .room img{ height: auto !important;}
    .nivoSlider{ height: auto !important;}
}

.room ul {
    margin: 0 0 15px 15px !important;
}
/* Responsive Facilities Styling */
.responsive-facilities {
  display: grid;
  gap: 0;
}

.responsive-facilities li {
  display: flex;
  align-items: center;
}


/* Tablet - 2 columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .responsive-facilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 0; 
    padding: 8px;
  }
  .room ul {
    margin: 40px 15px !important;
}

}

/* Mobile Large - 2 columns */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .responsive-facilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .room ul{
    margin:15px 0 15px 15px !important;
  }
  
}

/* Mobile Small - 1 column */
@media screen and (max-width: 575px) {
  .responsive-facilities {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .room ul{
    margin:15px 0 15px 15px !important;
  }
}

/* Extra Small Mobile - Compact layout */
@media screen and (max-width: 360px) {
  .responsive-facilities {
    gap: 0;
  }
  
}

/* Landscape mobile - 2 columns */
@media screen and (max-width: 896px) and (orientation: landscape) {
  .responsive-facilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px;
  }
}

/* Print styles */
@media print {
  .responsive-facilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: none;
    border: none;
  }
  
  .responsive-facilities li {
    background: none;
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .responsive-facilities li {
    border: 2px solid #000;
    background: #fff;
  }
  
  .responsive-facilities li i {
    color: #000;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .responsive-facilities li {
    transition: none;
  }
  
  .responsive-facilities li:hover {
    transform: none;
  }
}