/* =========================================================
   Enhanced & Optimized CSS for workspace_screen
   - Modern, clean design
   - Fully responsive
   - Improved performance
   - Room slider with image navigation
   ========================================================= */

/* -------------------------
   Font & Variables
   ------------------------- */
@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #163C85;
  --blue-hover: #1c60df;
  --yellow: #ffc107;
  --gray: #8c8c8c;
  --text: #404040;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.096);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --gap: 20px;
  --transition: all 0.3s ease;
}

/* -------------------------
   Global Styles
   ------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100%;
}

/* Container */
.container {
  width: 100%;
  /* padding: 0 100px; */
  margin: 0 auto;
}

/* -------------------------
   Main Workspace Image Slider
   ------------------------- */
.top-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.slider-container {
  position: relative;
  width: 100%;
  min-width: 300px;
}

.slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.main-img img,
#mainImage {
  display: block;
  width: 100%;
  height: 450px;
  max-height: 500px;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

/* Slider Navigation Arrows */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

.slider button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.slider button:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 90px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.7;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: var(--blue);
}

/* Rating Badge */
.rating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  z-index: 5;
}

/* -------------------------
   Info & Map Section
   ------------------------- */
.info {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
}

.feature {
  display: flex;
  flex-direction: row;
  gap: 10px;
  color: #444;
  align-items: center;
  font-weight: 500;
  flex-wrap: wrap;
  background-color: none;
}

.info .desc {
  color: #555;
  padding: 14px 0;
  line-height: 1.7;
}

/* Map */
.map {
  width: 100%;
  padding: 18px;
  border-radius: 10px;
}

.map h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.map iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  border: 0;
  display: block;
  box-shadow: var(--card-shadow);
}

.map-btn {
  display: block;
  width: 100%;
  background-color: var(--blue);
  color: white;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.map-btn:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* -------------------------
   Rooms Section
   ------------------------- */
.rooms-section {
  width: 100%;
  margin-top: 30px;
}

.rooms-section .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rooms-section .header .tag {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* Slider Navigation Buttons */
.slider-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-buttons button {
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 18px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-buttons button:hover {
  background: var(--blue-hover);
  transform: scale(1.1);
}

.slider-buttons button:active {
  transform: scale(0.95);
}

/* Horizontal Room Slider */
.room-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 15px 0;
  background: none;
  -webkit-overflow-scrolling: touch;
}

.room-slider::-webkit-scrollbar {
  height: 8px;
  display: none;
}

/* Room Card */
.room-card {
  min-width: 320px;
  max-width: 360px;
  flex: 0 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* -------------------------
   Room Image Slider (NEW)
   ------------------------- */
.room-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.image-slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.room-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.room-slide-image.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Room Image Navigation Arrows */
.room-image-wrapper .img-prev,
.room-image-wrapper .img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  opacity: 0;
}

.room-card:hover .img-prev,
.room-card:hover .img-next {
  opacity: 1;
}

.room-image-wrapper .img-prev:hover,
.room-image-wrapper .img-next:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.room-image-wrapper .img-prev {
  left: 10px;
}

.room-image-wrapper .img-next {
  right: 10px;
}

/* Room Slider Dots */
.room-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.room-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.room-dot.active {
  background: #0d2c8d;
  width: 22px;
  border-radius: 4px;
}

.room-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

/* Card Body */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.card-body h3 {
  font-size: 18px;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.card-body .rooms {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray);
  font-weight: 600;
  font-size: 14px;
}

.guest {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

.price {
  color: var(--blue);
  font-size: 18px;
  font-weight: bold;
}

/* -------------------------
   Reviews Section
   ------------------------- */
.reviews {
  margin: 30px 0 40px 0;
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.review-card {
  /* background: #333; */
  color: #333;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(33.333% - 14px);
  min-width: 250px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--blue);
}

.review-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #535353;
}

.review-info .name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.review-info .time {
  font-size: 13px;
  color: var(--gray);
}

.stars {
  color: var(--yellow);
  margin: 6px 0;
}

.comment {
  font-size: 17px;
  color: #333;
  line-height: 1.5;
}

/* Show All Button */
.show-all {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 14px;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.show-all:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Empty States */
.no-rooms,
.no-reviews {
  text-align: center;
  color: var(--gray);
  padding: 40px;
  font-size: 16px;
}

/* -------------------------
   Animations
   ------------------------- */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* -------------------------
   Responsive Design
   ------------------------- */

/* Tablets & smaller desktops (≤992px) */
@media (max-width: 992px) {


  .top-section {
    flex-direction: column;
    align-items: stretch;
  }

  .slider-container,
  .info,
  .map {
    width: 100% !important;
    min-width: 0;
  }

  .main-img img,
  #mainImage {
    height: 360px;
  }

  .thumbnail {
    width: 74px;
    height: 56px;
  }

  .room-card {
    min-width: 300px;
    max-width: 320px;
  }

  .room-image-wrapper {
    height: 200px;
  }

  .reviews {
    flex-direction: column;
  }

  .review-card {
    width: 100% !important;
    min-width: 0;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {


  .info h2 {
    font-size: 24px;
  }

  .main-img img,
  #mainImage {
    max-height: 300px;
  }

  .thumbnail {
    width: 66px;
    height: 48px;
  }

  .room-card {
    min-width: 280px;
    max-width: 300px;
  }

  .room-image-wrapper {
    height: 180px;
  }

  /* Show arrows on mobile by default */
  .room-image-wrapper .img-prev,
  .room-image-wrapper .img-next {
    opacity: 1;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .room-slider-dots {
    bottom: 8px;
    gap: 5px;
  }

  .room-dot {
    width: 6px;
    height: 6px;
  }

  .room-dot.active {
    width: 18px;
  }

  .review-header img {
    width: 46px;
    height: 46px;
  }

  .rooms-section .header .tag {
    font-size: 20px;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }



  .info h2 {
    font-size: 22px;
  }

  .main-img img,
  #mainImage {
    max-height: 240px;
  }

  .thumbnail {
    width: 54px;
    height: 40px;
  }

  .room-image-wrapper {
    height: 160px;
  }

  .room-slider-dots {
    bottom: 6px;
    gap: 4px;
  }

  .room-dot {
    width: 5px;
    height: 5px;
  }

  .room-dot.active {
    width: 14px;
  }

  .slider-buttons {
    display: none;
  }

  .review-info .name {
    font-size: 15px;
  }

  .comment {
    font-size: 14px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .price {
    font-size: 16px;
  }
}

/* End of file */