/* MDIX Hotel Prima — perbaikan audit template (design QA 2026-10-12) */

:root {
  --mdix-gold: #fab740;          /* warna merek (latar tombol) */
  --mdix-gold-text: #8f6100;     /* emas gelap untuk teks di latar terang (AA 5.4:1) */
  --mdix-navy: #15223f;
  --mdix-gray-text: #666666;     /* abu teks isi (AA 5.7:1, tema #848484 = 3.7:1) */
}

/* ---------- Peta: embed tanpa kunci API (kunci Google Maps milik penjual dihapus) ---------- */
.google-map-area .mdix-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 767px) {
  .google-map-area .mdix-map { height: 300px; }
}

/* ---------- Header desktop: menu + tombol tetap satu baris ---------- */
@media (min-width: 992px) {
  .main-header .info-box a { padding: 9px 18px; }
  .main-menu .navigation > li { margin-right: 0; }
}
@media (min-width: 1200px) {
  .main-menu .navigation > li > a { margin: 0 14px; }
}

/* ---------- Header ≤991px: logo kiri, tombol Pesan + menu HP kanan ---------- */
@media (max-width: 991px) {
  .main-header { margin-bottom: 0; }
  .main-header .container > .row > [class*="col-"] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    min-height: 72px;
  }
  .main-header .logo {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 12px 8px 12px 0;
  }
  .main-header .logo figure { margin: 0; }
  .main-header .logo a { display: inline-block; }
  .main-header .logo img { display: block; max-width: 160px; height: auto; }
  .main-header .info-box,
  .sticky-header .info-box {
    order: 2;
    position: static;
    float: none;
    margin: 0 12px 0 0;
    padding: 0;
    top: auto;
    right: auto;
  }
  .main-header .info-box a {
    padding: 9px 16px;
    font-size: 13px;
    line-height: 22px;
    white-space: nowrap;
  }
  .main-header .more-option { display: none !important; }
  .main-header .menu-bar {
    order: 3;
    position: static;
    display: block;
    flex: 0 0 auto;
    margin: 0;
  }
  .main-header .main-menu {
    position: static;
    display: block;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .main-header .main-menu .navbar-header {
    position: static;
    display: block;
    top: auto;
    right: auto;
    padding: 0;
    margin: 0;
  }
  .main-header .main-menu .navbar-header .navbar-toggle {
    display: block;
    position: relative;
    float: none;
    top: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 12px 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #071740;
  }
  .main-header .main-menu .navbar-header .navbar-toggle .icon-bar { width: 20px; background: #fff; }
  /* dropdown menu melayang di bawah header, bisa digulir bila panjang */
  .main-header .main-menu .navbar-collapse {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 100%;
    z-index: 30;
    margin: 0 !important;
    padding: 0 !important;
    max-height: calc(100vh - 90px);
    overflow-y: auto !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  /* tertutup = benar-benar tersembunyi (tidak bisa difokus) */
  .main-header .navbar-collapse.collapse { display: none !important; }
  .main-header .navbar-collapse.collapse.in,
  .main-header .navbar-collapse.collapsing { display: block !important; }

  /* gaya menu bertumpuk (tema hanya memberinya di ≤767px) */
  .main-header .main-menu .navbar-collapse > .navigation {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: none;
    background: #071740;
  }
  .main-header .main-menu .navbar-collapse > .navigation > li {
    display: block;
    float: none !important;
    width: 100%;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .main-header .main-menu .navbar-collapse > .navigation > li:first-child { border-top: none; }
  .main-header .main-menu .navbar-collapse > .navigation > li > a,
  .main-header .main-menu .navbar-collapse > .navigation > li > ul > li > a {
    margin: 0 !important;
    padding: 11px 56px 11px 14px !important;
    line-height: 22px;
    color: #fff;
    background: #071740;
    text-align: left;
  }
  .main-header .main-menu .navbar-collapse > .navigation > li.current > a,
  .main-header .main-menu .navbar-collapse > .navigation > li:hover > a { color: var(--mdix-gold) !important; }
  .main-header .main-menu .navigation > li > a:before,
  .main-header .main-menu .navigation > li > a:after { display: none !important; }
  .main-header .main-menu .navbar-collapse > .navigation > li > ul {
    position: relative;
    display: none;
    float: none;
    visibility: visible;
    opacity: 1;
    top: auto !important;
    left: auto !important;
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    transition: none;
  }
  .main-header .main-menu .navbar-collapse > .navigation > li > ul > li > a { padding-left: 28px !important; }
  .main-header .main-menu .navbar-collapse > ul li.dropdown .dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    color: #fff;
  }
}
@media (max-width: 399px) {
  .main-header .logo img { max-width: 128px; }
  .main-header .info-box { margin-right: 8px; }
  .main-header .info-box a { padding: 9px 12px; }
}

/* ---------- Hero (Revolution Slider) ---------- */
.slotholder:after { opacity: 0.38 !important; }           /* teks putih terbaca di foto terang */
.banner .banner-title { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.banner .banner-text { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
@media (max-width: 1023px) {
  .banner .banner-title { font-size: 56px !important; line-height: 64px !important; }
  .banner .banner-text { font-size: 18px !important; line-height: 28px !important; }
}
@media (max-width: 479px) {
  .banner .banner-title { font-size: 30px !important; line-height: 38px !important; }
  .banner .banner-text {
    width: 300px;
    white-space: normal !important;
    text-align: center;
    font-size: 15px !important;
    line-height: 22px !important;
  }
  .banner .banner-btn a {
    display: inline-block;
    font-size: 13px !important;
    line-height: 20px !important;
    padding: 11px 22px !important;
  }
  .tp-leftarrow.tparrows, .tp-rightarrow.tparrows { display: none !important; }
}

/* ---------- Form cek ketersediaan ---------- */
.search-service .search-service-bg i.fa-calendar { display: none; }
.search-service .search-service-bg .service-content input.hasDatepicker,
.search-service .search-service-bg .service-content input[id^="datepicker"] {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M5 1v1h6V1h1v1h2.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5H4V1h1zM2 6v8h12V6H2zm1 1h2v2H3V7zm4 0h2v2H7V7zm4 0h2v2h-2V7zm-8 4h2v2H3v-2zm4 0h2v2H7v-2z'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.search-service .ui-selectmenu-button span.ui-selectmenu-text { color: #555; }
.search-service .search-service-bg a { color: var(--mdix-navy); }
.search-service .search-service-bg a:hover { color: var(--mdix-gold); }
@media (max-width: 1199px) {
  .search-service { margin-top: -40px; z-index: 5; }
  .search-service .search-service-bg { padding: 24px; }
  .search-service .search-service-bg .service-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: center;
  }
  .search-service .search-service-bg .service-content input,
  .search-service .search-service-bg .service-content .ui-selectmenu-button {
    width: 100% !important;
    margin: 0 !important;
  }
  .search-service .search-service-bg .service-content a { margin: 0; white-space: nowrap; }
}
@media (max-width: 991px) {
  .search-service .search-service-bg .service-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-service .search-service-bg .service-content a { grid-column: 1 / -1; display: block; }
}
@media (max-width: 479px) {
  .search-service { margin-top: 0; }
  .search-service .container { padding-left: 0; padding-right: 0; }
  .search-service .search-service-bg { padding: 24px 16px; }
  .search-service .search-service-bg .service-content { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Kontras AA: tombol kuning pakai teks navy, teks kuning/abu dipergelap ---------- */
.main-header .info-box a,
.btn-one,
.about-page .about-content a.about-btn,
.rooms-grid .rooms-btn li.active a,
.more-option .search-box .form-group button { color: var(--mdix-navy); }
.main-header .info-box a:hover,
.btn-one:hover,
.about-page .about-content a.about-btn:hover { color: var(--mdix-gold); }
.service-section .service-content .text span,
.rooms-list .rooms-content .text span,
.rooms-details .lower-content .text span,
.testimonials-section .autor-content span,
.about-section .about-content .section-title span,
.section-title span { color: var(--mdix-gold-text); }
.title,
.testimonials-section .testimonials-title .text,
.about-section .about-content p,
.about-section .about-content .list li,
.testimonials-section .single-item .text { color: var(--mdix-gray-text); }
.testimonials-section .testimonials-title .text {
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  line-height: 26px;
  text-align: center;
}
.img-gallery .owl-nav [class*="owl-"],
.img-gallery .owl-nav [class*="owl-"] i { color: var(--mdix-navy) !important; }

/* ---------- Fasilitas: judul putih terbaca di foto terang ---------- */
.our-speciality .inner-box:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(7, 23, 64, 0.75), rgba(7, 23, 64, 0));
  pointer-events: none;
}
.our-speciality .single-item .img-title { z-index: 2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }

/* ---------- Galeri: foto persegi tidak dipipihkan ---------- */
.img-gallery .single-item .img-holder img { object-fit: cover; }

/* ---------- Target sentuh: link pembungkus gambar/judul jadi blok ---------- */
.service-section .img-box a,
.news-section .img-box a,
.news-section .news-content > a,
.news-section .sidbar-news .single-item > a,
.service-section .service-content > a { display: block; }
.footer-section .logo-widget .footer-social li a {
  width: 44px;
  height: 44px;
  line-height: 42px;
  text-align: center;
  padding: 0;
}

/* ---------- Kamar & Suite: kartu ke-3 di tengah pada tablet ---------- */
@media (min-width: 768px) and (max-width: 991px) {
  .service-section .row > .col-sm-6:last-child:nth-child(odd) { float: none; margin: 0 auto; }
}

/* ---------- Statistik: 2 kolom di HP ---------- */
@media (max-width: 767px) {
  .fact-counter .row { display: flex; flex-wrap: wrap; }
  .fact-counter .row > [class*="col-"] { width: 50%; }
  .fact-counter .single-item,
  .fact-counter .single-item.one,
  .fact-counter .single-item.two,
  .fact-counter .single-item.three,
  .fact-counter .single-item.four { width: auto; padding: 0 0 24px; text-align: center; }
}

/* ---------- Tentang (beranda) di HP: kartu teks dengan jarak tepi 16px ---------- */
@media (max-width: 767px) {
  .about-section:not(.about-page) { padding: 0; background: none; }
  .about-section:not(.about-page):before { position: relative; display: block; width: 100%; height: 220px; }
  .about-section:not(.about-page):after { display: none; }
  .about-section:not(.about-page) .about-content {
    float: none;
    width: 100%;
    margin: -40px 0 40px;
    padding: 28px 20px 24px;
  }
  .about-section .about-content p { padding: 0; }
  .about-section .about-content .section-title { width: auto; height: auto; font-size: 32px; line-height: 40px; }
}


/* 768–991px: tema memaksa submenu display:block !important; tampilkan submenu terbuka
   (daftar menu bisa digulir) dan sembunyikan panah buka-tutup yang tidak berfungsi */
@media (min-width: 768px) and (max-width: 991px) {
  .main-header .main-menu .navbar-collapse > .navigation > li > ul { visibility: visible; opacity: 1; }
  .main-header .main-menu .navbar-collapse > ul li.dropdown .dropdown-btn { display: none !important; }
}

/* CLS: slider baru mendapat tinggi setelah JS jalan (konten di bawahnya melompat ±780px).
   Sisakan tinggi yang sama dengan hasil akhir slider (gridheight × lebar / gridwidth), sedikit di bawahnya. */
.main-banner { min-height: calc(100vw * 1.188); }
@media (min-width: 480px) { .main-banner { min-height: min(calc(100vw * 0.895), 700px); } }
@media (min-width: 778px) { .main-banner { min-height: min(calc(100vw * 0.853), 840px); } }
@media (min-width: 1024px) { .main-banner { min-height: min(calc(100vw * 0.707), 840px); } }
@media (min-width: 1240px) { .main-banner { min-height: 840px; } }

/* Target sentuh ≥24px untuk link teks di footer */
.footer-section .contact-widget a,
.footer-section .footer-bottom .copyright a,
.footer-bottom .copyright a {
  display: inline-block;
  padding: 4px 0;
}

/* Foto berita utama selebar kolom; ikon tombol ke-atas navy di atas kuning (kontras) */
.news-section .img-box img { width: 100%; height: auto; }
.scroll-to-top { color: var(--mdix-navy); }
/* HP: teks hak cipta tidak tertutup tombol ke-atas yang melayang */
@media (max-width: 767px) {
  .footer-bottom { padding-bottom: 64px; }
}

/* Tombol cari (ikon) di sidebar berita & halaman 404: area sentuh 44px */
.sidebar .search-box button,
.error-section .search-box button {
  min-width: 44px;
  min-height: 44px;
}
/* Kontak: telepon & email bisa disentuh (≥24px) */
.contact-section .contact-info .text a { display: inline-block; padding: 4px 0; }

/* Halaman Tentang (HP): blok teks dengan jarak tepi 16px */
@media (max-width: 767px) {
  .about-page .about-content { padding: 24px 1px 0; }
  .about-page .about-content .section-title { width: auto; height: auto; font-size: 32px; line-height: 40px; }
}

/* 404 di HP: kotak cari punya jarak tepi 16px */
@media (max-width: 767px) {
  .error-section .search-box { padding-left: 16px; padding-right: 16px; }
}

/* Header lengket 992–1200px: jarak menu sama dengan header utama (ikon cari tidak menimpa tombol) */
@media (min-width: 992px) {
  .sticky-header .main-menu .navigation > li { margin-right: 0; }
}
@media (min-width: 992px) and (max-width: 1200px) {
  .sticky-header .more-option { left: -1%; }
}

/* Judul hero ditulis apa adanya (tema memakai capitalize → "Resort Di Tengah Kota") */
.banner .banner-title { text-transform: none; }
