/* HERO */
.rooms-hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  background: url("https://uus.vabakonnamaja.ee/wp-content/uploads/Ruumide-rent-Parnus-Saal_2-scaled.jpg") no-repeat center center;
  background-size: cover;
  filter: grayscale(50%) blur(1.3px);
  transform: scale(1.1); /* ainult blurri jaoks */
  z-index: -2;
}

/* gradient overlay */
.rooms-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#ffffff 9.24%, rgba(255, 255, 255, 0.77) 48.32%, #ffffff 77.73%);
  z-index: -1;
  transform: scale(1.3);
}

.rooms-hero {
  position: relative;
  padding: 200px 30px; /* veidi ruumi ümber teksti */
  text-align: center; /* tekst keskele */
  width: 100%;
  min-height: 600px;
  height: auto; /* laseb kasvada mobiilis */
  margin-top: -200px;
  z-index: -1;
  overflow: hidden; /* nüüd saab scrolli eemaldada */
}

.site-content .ast-container {
  display: block;
}

.rooms-hero-container {
  max-width: 1200px;
  margin: 0 auto; /* keskendab konteineri */
}

/* ARCHIVE */
.rooms-archive {
  max-width: 1320px;
  margin: -400px auto 0 auto; /* ainult ülevalt -400px */
  padding-bottom: 50px;
}

/* GRID */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* täpselt 4 kaarti */
  gap: 25px;
  max-width: 1200px;
  margin: 20px auto 60px;
  align-items: stretch;
}

.room-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-4px);
}

/* kaardi sisu */
.room-content {
  padding: 12px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* pildi konteiner 16:9 */
.room-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.room-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.room-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h3.room-title {
  margin: 0px 0px 20px;
}

.room-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-meta li {
  background: #F2F2F2;
  color: #5e5e5e;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr); /* tahvlis 2 */
  }
}

@media (max-width: 768px) {
  .rooms-grid {
    grid-template-columns: 1fr; /* mobiilis 1 */
    margin: 0px 30px;
  }
}

@media (max-width: 768px) {
  section.room-details {
    margin-left: 30px !important;
    margin-right: 30px !important;
  }

  .room-details-grid {
    grid-template-columns: repeat(2, 1fr)!important;
  }

  .room-details {
    padding: 0px 0px!important;
  }

  .room-cta {
    text-align: center!important;
  }

  .room-details-grid {
    text-align: left!important;
  }

  .room-description {
    text-align: center;
  }

  .room-meta {
    justify-content: center;
  }

  h3.room-title {
    text-align: center;
  }
}

/* Fade */
.fade-transition {
  height: 80px;
  background: linear-gradient(
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 100%
  );
  margin-top: -80px; /* katab serva */
  position: relative;
  z-index: -1;
}

.room-btn {
  display: inline-block;
  background: #946553;
  color: #fff;
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-top:20px;
}

.room-btn:hover {
  background: #6b4131;
  color:#fff;
}

/* === SINGLE ROOM HERO === */
.room-hero {
  position: relative;
  padding: 200px 30px 60px;
  text-align: center;
  width: 100%;
  margin-top: -200px;
  overflow: hidden;
}

.room-hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: url("<?php echo get_the_post_thumbnail_url(get_the_ID(), 'full'); ?>") no-repeat center center;
  background-size: cover;
  filter: grayscale(100%) blur(0px);
  z-index: -2;
}

.room-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#ffffff 9.24%, rgba(0, 0, 0, 0) 48.32%, #ffffff 77.73%);
  z-index: -1;
}

.room-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.room-hero-thumbnail {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}



/* === ROOM DETAILS SECTION === */
.room-details {
  background: #fff;
  padding: 40px 80px;
  margin-top: -40px; /* overlap hero */
  border-radius: 12px;
  max-width: 1200px;
  position: relative;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-left: auto;
  margin-right: auto;
}

.room-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.room-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.room-detail h3 {
  font-size: 20px;
  font-weight: 700;
  color: #946553;
  margin: 0 0 10px;
}

.room-detail p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.room-description {
  margin: 20px 0px;
  font-size: 15px;
  line-height: 1.6; 
  font-family: 'Montserrat', sans-serif;
}

.room-book-btn {
  display: inline-block;  
  background: #946553;
  color: #fff;
  padding: 12px 24px;
  font-size:15px!important;
  border-radius: 3px;
  font-weight:600;
  text-decoration: none;
  transition: background 0.3s ease;
  line-height:1em;
}

.room-book-btn:hover {
  background: #6b4131;
  color: #fff;
}

/* === ROOM GALLERY === */
.room-gallery h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #00105e;
  font-weight: 700;
  text-align: center;
}


/* === RELATED ROOMS === */
.related-rooms-section {
  padding-top: 50px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.related-rooms-container h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #946553;
}

/* Room hero – teeb slideri suureks ja ilusaks */
.room-hero {
  position: relative;
  padding: 200px 30px 60px;
  text-align: center;
  width: 100%;
  margin-top: -200px;
  overflow: hidden;
}

.room-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}



.room-card .room-content .event-register-btn,
.room-card .room-content .room-readmore {
  margin-top: auto; /* tagab, et nupp püsib all */
}



























/* Hoia slider alati 16:9 formaadis */
.room-hero-thumbnail .room-gallery-swiper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 kuvasuhe */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* venitab wrapperi raami sisse */
.room-gallery-swiper .swiper-wrapper {
  position: absolute;
  inset: 0;
}

/* iga slide täidab kogu raami */
.room-gallery-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

/* pilt hoiab kuvasuhet, täidab raami */
.room-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}






.swiper-button-next,
.swiper-button-prev {
  color: #946553!important; /* sinu brändivärv */
}

.swiper-pagination-bullet {
  background: #946553!important;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}






