/* =========================================================
   MotoPress – SINGLE ROOM TYPE (vh-room)
   Safari compatible — slider fix
   ========================================================= */

/* =========================================================
   1) SCOPE / VARIÁVEIS / BASE
   ========================================================= */
.vh-room {
  --gap: 18px;
  --line: rgba(0,0,0,.10);
  --shadow: 0 12px 34px rgba(0,0,0,.08);
  --text: #111;
  --muted: rgba(0,0,0,.70);

  color: var(--text);
}

.vh-room-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 36px;
}


/* =========================================================
   2) HERO / GALERIA — OWL Carousel
   ========================================================= */
.vh-room-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.vh-room-hero .vh-hero-owl {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.vh-room-hero .owl-stage-outer {
  overflow: hidden !important;
  position: relative !important;
}

.vh-room-hero .owl-stage {
  position: relative !important;
}

.vh-room-hero .owl-item,
.vh-room-hero .vh-hero-slide {
  overflow: hidden;
}

.vh-room-hero .vh-hero-owl img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover;
  object-fit: cover;
}

/* setas — não herdam estilo dos botões do tema */
.vh-room-hero .owl-prev,
.vh-room-hero .owl-next,
.vh-room-hero .owl-nav button {
  position: absolute !important;
  top: 50% !important;
  -webkit-transform: translateY(-50%) !important;
  transform: translateY(-50%) !important;
  z-index: 10;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.85) !important;
  border: 0 !important;
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.vh-room-hero .owl-prev { left: 12px !important; }
.vh-room-hero .owl-next { right: 12px !important; }

/* dots */
.vh-room-hero .owl-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.vh-room-hero .owl-dot {
  pointer-events: all;
}

.vh-room-hero .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.55) !important;
  border-radius: 50%;
  -webkit-transition: background .2s ease;
  transition: background .2s ease;
}

.vh-room-hero .owl-dot.active span {
  background: #fff !important;
}

/* fallback */
.vh-room-hero .vh-hero-fallback {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
  .vh-room-hero .vh-hero-fallback {
    height: 0;
    padding-top: 56.25%;
  }
}

.vh-room-hero .vh-hero-fallback img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover;
  object-fit: cover;
}

.vh-room-hero .t-overlay,
.vh-room-hero .overlay,
.vh-room-hero [class*="overlay"] {
  pointer-events: none;
}

@media (max-width: 600px) {
  .vh-room-hero {
    padding: 12px 12px 0;
  }
}

.vh-room-hero .owl-item {
  height: 100% !important;
}

.vh-room-hero .vh-hero-slide {
  height: 100% !important;
  overflow: hidden;
}

.vh-room-hero .vh-hero-owl img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover;
  object-fit: cover;
}

/* =========================================================
   3) HEADER (TÍTULO + META)
   ========================================================= */
.vh-room-header {
  border: 1px solid var(--line);
  background: #fff;
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 18px;
}

.vh-room-title {
  margin: 0 0 10px !important;
  letter-spacing: .01em;
}

.vh-room-meta ul,
.vh-room-meta .mphb-room-type-attributes,
.vh-room-meta .mphb-loop-room-type-attributes {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-gap: 8px 14px;
  gap: 8px 14px;
}

.vh-room-meta li {
  margin: 0 !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid var(--line);
}

.vh-room-meta .mphb-attribute-title {
  opacity: .75;
  margin-right: 6px;
}

/* =========================================================
   4) LAYOUT: ESQUERDA (TABS) + DIREITA (SIDEBAR)
   ========================================================= */
.vh-room-layout {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-gap: var(--gap);
  gap: var(--gap);
  -webkit-box-align: start;
  align-items: start;
  margin-top: var(--gap);
}

.vh-room-main,
.vh-room-sidebar .vh-bookbox {
  border: 1px solid var(--line);
  background: #fff;
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
  border-radius: 0 !important;
  text-align: justify;
}

/* =========================================================
   5) TABS
   ========================================================= */
.vh-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--line);
}

.vh-tab {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  margin: 0;
  cursor: pointer;

  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.vh-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.vh-tabpanel {
  display: none;
  padding: 14px;
}

.vh-tabpanel.is-active {
  display: block;
}

.vh-prose p {
  margin: 0 0 12px !important;
}

.vh-muted {
  opacity: .75;
  margin: 0 !important;
}

/* =========================================================
   6) AMENITIES
   ========================================================= */
.vh-amenities {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-gap: 10px 14px;
  gap: 10px 14px;
}

.vh-amenity {
  margin: 0 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   7) LOCATION (mapa)
   ========================================================= */
.vh-location-address {
  margin: 0 0 12px !important;
}

.vh-map {
  border: 1px solid var(--line);
}

.vh-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* =========================================================
   8) SIDEBAR / BOOKBOX
   ========================================================= */
.vh-bookbox {
  padding: 16px;
}

.vh-price {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.vh-bookform .mphb-room-type-reservation-form,
.vh-bookform form {
  margin: 0 !important;
}

.vh-bookform input[type="text"],
.vh-bookform input[type="email"],
.vh-bookform input[type="tel"],
.vh-bookform input[type="number"],
.vh-bookform input[type="date"],
.vh-bookform select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0 !important;
  padding: 10px 12px;
  height: 44px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.vh-bookform label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .8;
}

.vh-bookform .mphb-required-fields-tip,
.vh-bookform .mphb-errors-wrapper,
.vh-bookform .mphb-message {
  margin: 10px 0 0 !important;
}

/* =========================================================
   9) BOTÕES
   ========================================================= */
.vh-room .button,
.vh-room button,
.vh-room input[type="submit"],
.vh-room .mphb-button {
  background: #fff !important;
  color: #111 !important;
  border: 1.5px solid #111 !important;

  padding: 14px 28px !important;
  font-size: 14px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;

  border-radius: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;

  -webkit-transition: background .2s ease, color .2s ease, border-color .2s ease;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.vh-room .button:hover,
.vh-room button:hover,
.vh-room input[type="submit"]:hover,
.vh-room .mphb-button:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.vh-room-sidebar input[type="submit"],
.vh-room-sidebar .button,
.vh-room-sidebar button,
.vh-room-sidebar .mphb-button {
  width: 100%;
}

/* excepção: setas do OWL não herdam o estilo de botão do tema */
.vh-room-hero .owl-prev,
.vh-room-hero .owl-next,
.vh-room-hero .owl-nav button {
  background: rgba(255,255,255,.85) !important;
  color: #111 !important;
  border: 0 !important;
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

/* =========================================================
   10) RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .vh-room-layout {
    grid-template-columns: 1fr 340px;
  }
}

@media (max-width: 900px) {
  .vh-room-layout {
    grid-template-columns: 1fr;
  }

  .vh-room-sidebar { -webkit-box-ordinal-group: 3; order: 2; }
  .vh-room-main    { -webkit-box-ordinal-group: 2; order: 1; }

  .vh-room-meta ul,
  .vh-room-meta .mphb-room-type-attributes,
  .vh-room-meta .mphb-loop-room-type-attributes,
  .vh-amenities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vh-room-container {
    padding: 14px 12px 28px;
  }

  .vh-room-hero {
    padding: 12px 12px 0;
  }

  .vh-tabs {
    grid-gap: 8px;
    gap: 8px;
  }

  .vh-tab {
    font-size: 12px;
  }

  .vh-map iframe {
    height: 260px;
  }
}