/* Homepage rooms carousel — aligned with Luviana / Getwid block styles */

.vm-rooms {
  --vm-rooms-ink: #222222;
  --vm-rooms-muted: #5f6060;
  --vm-rooms-accent: #c1b086;
  --vm-rooms-hover: #252e59;
  --vm-rooms-dot: #b6b7bb;
  --vm-rooms-line: #dadada;
  --vm-rooms-tab-bg: #edf2f7;
  margin: 0 0 2.5rem;
  position: relative;
}

/* Heading row layout only — button keeps theme / block styles */
.vm-rooms-head.wp-block-columns,
.vm-rooms-head {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px 16px !important;
  margin-bottom: 8px !important;
}

.vm-rooms-head > .wp-block-column {
  margin: 0 !important;
  flex-grow: 0 !important;
  flex-shrink: 1 !important;
}

.vm-rooms-head > .wp-block-column:first-child {
  flex: 1 1 auto !important;
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.vm-rooms-head > .wp-block-column:last-child {
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-end;
}

.vm-rooms-head .wp-block-spacer,
.vm-rooms-head-spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

.vm-rooms-head .wp-block-getwid-advanced-heading {
  margin-bottom: 0 !important;
}

.vm-rooms-head .wp-block-button {
  margin: 0 !important;
}

.vm-rooms-head .wp-block-button.alignright {
  text-align: right;
  float: none;
}

.vm-rooms-head .wp-block-button__link {
  white-space: nowrap;
}

/* Category tabs — Getwid tabs / theme accent */
.vm-rooms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--vm-rooms-tab-bg);
}

.vm-rooms-tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 1px solid transparent !important;
  border-bottom: none !important;
  background: transparent !important;
  color: var(--vm-rooms-ink) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 14px 22px;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none !important;
  line-height: 1.2;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.vm-rooms-tab:hover,
.vm-rooms-tab:focus {
  color: var(--vm-rooms-accent) !important;
  background: transparent !important;
  outline: none;
}

.vm-rooms-tab.is-active,
.vm-rooms-tab.is-active:hover,
.vm-rooms-tab.is-active:focus {
  color: var(--vm-rooms-ink) !important;
  background: #fff !important;
  border-color: var(--vm-rooms-tab-bg) !important;
  border-bottom-color: #fff !important;
  margin-bottom: -1px;
}

.vm-rooms-track {
  margin: 0;
}

.vm-rooms-track .slick-list {
  margin: 0 -14px;
}

.vm-rooms-track .slick-track {
  display: flex !important;
  align-items: stretch;
}

.vm-rooms-track .slick-slide {
  height: auto;
  float: none;
  padding: 0 14px;
  box-sizing: border-box;
}

.vm-rooms-track .slick-slide > div {
  height: 100%;
}

.vm-rooms-track:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

.vm-rooms-track:not(.slick-initialized) .vm-rooms-card {
  margin: 0;
}

.vm-rooms-track.slick-dotted.slick-slider {
  margin-bottom: 50px;
}

/* Cards — like MPHB room loop */
.vm-rooms-card {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  height: 100%;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  box-shadow: none;
}

.vm-rooms-media {
  display: block;
  position: relative;
  flex: 0 0 240px;
  height: 240px;
  overflow: hidden;
  background: #edf2f7;
  text-decoration: none !important;
}

.vm-rooms-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.vm-rooms-card:hover .vm-rooms-media img {
  transform: scale(1.03);
}

.vm-rooms-media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #edf2f7;
}

/* United capacity badge: adult N + child N */
.vm-rooms-guests {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--vm-rooms-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.vm-rooms-guest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vm-rooms-guest svg {
  width: 16px;
  height: 16px;
  fill: none;
  flex: 0 0 auto;
  display: block;
}

.vm-rooms-guest b {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.vm-rooms-guest--child svg {
  width: 12px;
  height: 12px;
}

.vm-rooms-guest-sep {
  color: var(--vm-rooms-muted);
  font-weight: 700;
  padding: 0 1px;
}

.vm-rooms-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 0;
  flex: 1 1 auto;
}

.vm-rooms-cats {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vm-rooms-accent);
  line-height: 1.2;
}

.vm-rooms-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vm-rooms-title a {
  color: var(--vm-rooms-ink);
  text-decoration: none;
}

.vm-rooms-title a:hover {
  color: var(--vm-rooms-accent);
  text-decoration: none;
}

.vm-rooms-price {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--vm-rooms-muted);
}

.vm-rooms-price .mphb-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--vm-rooms-ink);
}

.vm-rooms-price strong {
  font-weight: 600;
  color: var(--vm-rooms-muted);
  font-size: 0.8125rem;
}

.vm-rooms-actions {
  margin-top: auto;
  padding-top: 14px;
}

/* Details — compact outline (shared sizing in child style.css) */
.vm-rooms-btn.button,
.vm-rooms-btn {
  width: auto;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--vm-rooms-muted) !important;
  border: 1px solid var(--vm-rooms-line) !important;
  text-transform: uppercase;
}

.vm-rooms-btn.button:hover,
.vm-rooms-btn.button:focus,
.vm-rooms-btn:hover,
.vm-rooms-btn:focus {
  color: #fff !important;
  background: var(--vm-rooms-hover) !important;
  background-color: var(--vm-rooms-hover) !important;
  border-color: var(--vm-rooms-hover) !important;
  text-decoration: none !important;
  outline: none;
}

/* Arrows — Getwid images-slider style */
.vm-rooms .slick-prev,
.vm-rooms .slick-next {
  width: 40px;
  height: 40px;
  z-index: 3;
  top: 120px;
  transform: translateY(-50%);
  background: #fff !important;
  background-color: #fff !important;
  color: #222 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vm-rooms .slick-prev:hover,
.vm-rooms .slick-next:hover,
.vm-rooms .slick-prev:focus,
.vm-rooms .slick-next:focus {
  color: #fff !important;
  background: var(--vm-rooms-accent) !important;
  background-color: var(--vm-rooms-accent) !important;
}

.vm-rooms .slick-prev:before,
.vm-rooms .slick-next:before {
  display: block;
  margin: 0;
  border-radius: 0;
  color: inherit;
  content: "";
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  font-size: 1rem;
  line-height: 40px;
  text-shadow: none;
  opacity: 1;
  width: 100%;
  height: 100%;
}

.vm-rooms .slick-next:before {
  content: "\f054";
}

.vm-rooms .slick-prev:before {
  content: "\f053";
}

.vm-rooms .slick-prev {
  left: 10px;
}

.vm-rooms .slick-next {
  right: 10px;
}

/* Dots — Getwid images-slider style */
.vm-rooms .slick-dots {
  bottom: -50px;
}

.vm-rooms .slick-dots li {
  margin: 0 0.5rem;
  width: 14px;
  height: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.vm-rooms .slick-dots li button {
  padding: 0;
  width: 10px;
  height: 10px;
  text-shadow: none;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--vm-rooms-dot);
  opacity: 1;
  transition: all 0.2s ease;
}

.vm-rooms .slick-dots li button:before {
  display: none;
  content: none;
}

.vm-rooms .slick-dots li button:hover,
.vm-rooms .slick-dots li.slick-active button {
  border-color: var(--vm-rooms-dot);
  background: transparent;
  height: 14px;
  width: 14px;
}

.vm-rooms-empty {
  text-align: center;
  color: var(--vm-rooms-muted);
  padding: 24px 12px;
}

@media (max-width: 991px) {
  .vm-rooms-track:not(.slick-initialized) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-rooms-media {
    flex-basis: 210px;
    height: 210px;
  }

  .vm-rooms .slick-prev,
  .vm-rooms .slick-next {
    top: 105px;
  }
}

@media (max-width: 781px) {
  .vm-rooms-head.wp-block-columns,
  .vm-rooms-head {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
  }

  .vm-rooms-head > .wp-block-column,
  .vm-rooms-head > .wp-block-column:first-child,
  .vm-rooms-head > .wp-block-column:last-child {
    flex-basis: auto !important;
    width: auto !important;
  }
}

@media (max-width: 640px) {
  .vm-rooms-head {
    align-items: flex-end !important;
    margin-bottom: 4px !important;
  }

  .vm-rooms-head .wp-block-getwid-advanced-heading h2,
  .vm-rooms-head h2.wp-block-getwid-advanced-heading__content {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    margin: 0 !important;
  }

  .vm-rooms-tabs {
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vm-rooms-tab {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .vm-rooms-track:not(.slick-initialized) {
    grid-template-columns: 1fr;
  }

  .vm-rooms-media {
    flex-basis: 220px;
    height: 220px;
  }

  .vm-rooms .slick-prev,
  .vm-rooms .slick-next {
    width: 36px;
    height: 36px;
    top: 110px;
  }

  .vm-rooms .slick-prev:before,
  .vm-rooms .slick-next:before {
    line-height: 36px;
    font-size: 0.9rem;
  }

  .vm-rooms .slick-prev { left: 6px; }
  .vm-rooms .slick-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-rooms-media img,
  .vm-rooms-btn,
  .vm-rooms-tab,
  .vm-rooms .slick-prev,
  .vm-rooms .slick-next {
    transition: none;
  }
}
