/* RUBY WANG RW58 — targeted UI corrections. All original brand/media styles retained. */

/* Responsive primary navigation: switch to an accessible dropdown before items overflow. */
@media (min-width:1501px) {
  html body .site-header .nav-links a:not(.btn) {
    font-size:clamp(12px,.8vw,12.9px)!important;
    letter-spacing:.012em!important;
  }
  html body .site-header .nav-links:not(.open),
  html body .site-header .nav-links.open {gap:clamp(8px,1vw,17px)!important;}
}
@media (min-width:1121px) and (max-width:1500px) {
  html body .site-header .nav {position:relative!important;gap:12px!important;}
  html body .site-header .ruby-wordmark {margin-right:auto!important;flex-shrink:1!important;min-width:0;}
  html body .site-header .ruby-wordmark img {max-width:min(210px,31vw);height:auto;}
  html body .site-header .menu-toggle {
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    flex:none!important;min-width:46px!important;min-height:46px!important;
    border:1px solid rgba(236,217,170,.42)!important;
  }
  html body .site-header .nav-cta {display:inline-flex!important;flex:none!important;}
  html body .site-header .nav-links,
  html body .site-header .nav-links:not(.open) {
    display:none!important;position:absolute!important;z-index:1250!important;
    top:calc(100% + 6px)!important;left:auto!important;right:0!important;
    width:min(390px,calc(100vw - 36px))!important;max-height:calc(100dvh - 85px)!important;
    overflow-y:auto!important;padding:12px 18px 18px!important;
    flex-direction:column!important;align-items:stretch!important;gap:2px!important;
    background:#581020!important;box-shadow:0 14px 25px rgba(25,0,10,.24)!important;
  }
  html body .site-header .nav-links.open {display:flex!important;}
  html body .site-header .nav-links a:not(.btn) {
    display:block!important;width:100%!important;padding:11px 9px!important;
    font-size:14px!important;letter-spacing:.02em!important;line-height:1.55!important;
    min-height:43px!important;border-bottom:1px solid rgba(240,220,180,.14)!important;
    white-space:normal!important;
  }
  html body .site-header .nav-links .nav-cta-mobile {display:none!important;}
}
@media (max-width:1120px) {
  html body .site-header .nav-links {max-height:calc(100dvh - 70px)!important;}
  html body .site-header .menu-toggle {min-width:44px;min-height:44px;}
}

/* Smaller, editorial-size atmosphere thumbnails; click for a dedicated large view. */
html body #space .experience-grid,
html body #space:not(.rw8-open) .experience-grid,
html body #space.rw8-open .experience-grid {
  display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;
  width:100%;max-width:920px!important;gap:12px!important;
  margin:22px auto 0!important;
}
html body #space .experience-grid .exp,
html body #space .experience-grid .exp-main,
html body #space .experience-grid .experience-side .exp {
  min-height:0!important;height:245px!important;max-height:245px!important;
  border-radius:5px!important;
}
html body #space .experience-side,
html body #space .experience-side:has(.exp[hidden]) {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:1fr!important;gap:12px!important;
}
html body #space .rw58-space-item:not([hidden]) {cursor:zoom-in;}
html body #space .rw58-space-item:focus-visible {outline:3px solid #a67b46;outline-offset:4px;}
html body #space .rw58-space-item img {transition:transform .26s ease;}
@media (hover:hover) {html body #space .rw58-space-item:hover img {transform:scale(1.035);}}
html body #space .exp figcaption {left:17px!important;bottom:16px!important;right:13px!important;font-size:clamp(18px,1.8vw,23px)!important;line-height:1.3!important;}
html body #space .rw58-expand {
  display:block;margin-top:5px;color:#fff1d2;font:500 11px/1.4 'Be Vietnam Pro',sans-serif;
  letter-spacing:.025em;
}
@media (max-width:720px) {
  html body #space .experience-grid,
  html body #space:not(.rw8-open) .experience-grid,
  html body #space.rw8-open .experience-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  html body #space .experience-grid .exp,
  html body #space .experience-grid .exp-main,
  html body #space .experience-grid .experience-side .exp {height:188px!important;max-height:188px!important;}
  html body #space .exp figcaption {font-size:16px!important;left:11px!important;right:9px!important;bottom:12px!important;}
  html body #space .rw58-expand {font-size:10px!important;}
}
@media (max-width:420px) {
  html body #space .experience-grid .exp,
  html body #space .experience-grid .exp-main,
  html body #space .experience-grid .experience-side .exp {height:164px!important;max-height:164px!important;}
}
/* The dialog is in the space section, but must overlay the viewport independently. */
html body #rw58-space-dialog {
  box-sizing:border-box;position:fixed;width:min(95vw,1040px);height:auto;
  max-width:95vw;max-height:92dvh;overflow:auto;
  margin:auto;padding:46px 14px 16px;border:1px solid rgba(220,186,130,.64);
  border-radius:7px;background:#171311;color:#f7eddb;box-shadow:0 20px 70px rgba(0,0,0,.4);
}
html body #rw58-space-dialog:not([open]) {display:none!important;}
html body #rw58-space-dialog[open] {display:flex!important;flex-direction:column;align-items:center;}
html body #rw58-space-dialog::backdrop {background:rgba(16,12,11,.88);}
html body #rw58-space-dialog img {display:block;max-width:100%;width:auto;max-height:calc(85dvh - 100px);object-fit:contain;}
html body #rw58-space-dialog .rw58-space-close {
  position:absolute;right:10px;top:9px;min-width:75px;min-height:32px;
  border:1px solid #cab289;border-radius:3px;background:#49201f;color:#fff3e0;
  font:500 13px 'Be Vietnam Pro',sans-serif;cursor:pointer;
}
html body #rw58-space-dialog .rw58-space-caption {
  text-align:center;font:400 14px/1.55 'Be Vietnam Pro',sans-serif;
  color:#f3e7d3;margin:10px 0 0;
}

/* Compact contact panel with clear restaurant label, shorter map, and a precise location link. */
html body #contact .contact-grid {
  grid-template-columns:minmax(0,1fr) minmax(0,.98fr)!important;
  align-items:start!important;max-width:1140px!important;
  gap:clamp(22px,3vw,42px)!important;
}
html body #contact .map-box,
html body #contact .map-box .rw58-map-card {
  min-height:0!important;height:auto!important;
  border-radius:5px;overflow:hidden;
}
html body #contact .map-box {
  border:1px solid rgba(123,29,28,.2)!important;
  box-shadow:0 10px 28px rgba(55,38,32,.09)!important;
  background:#fffaf2!important;
}
html body #contact .rw58-map-top {
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:15px 17px;border-bottom:1px solid rgba(123,29,28,.16);
}
html body #contact .rw58-map-top span {
  display:block;font:500 11px/1.5 'Be Vietnam Pro',sans-serif;
  letter-spacing:.08em;text-transform:uppercase;color:#866e5b;
}
html body #contact .rw58-map-top strong {
  display:block;font:500 clamp(19px,2vw,24px)/1.35 'Playfair Display',serif;
  color:#7b1d1c;
}
html body #contact .rw58-map-top a {
  flex:none;color:#772725;font:600 12px/1.45 'Be Vietnam Pro',sans-serif;
  text-decoration:underline;text-underline-offset:3px;
}
html body #contact .map-box iframe {
  display:block!important;width:100%!important;height:284px!important;min-height:284px!important;
  border:0!important;border-radius:0!important;
}
html body #contact .rw58-map-address {
  margin:0!important;padding:11px 16px 13px!important;
  color:#6a5547!important;font:400 12.5px/1.65 'Be Vietnam Pro',sans-serif!important;
}
html body #contact .rw58-map-address a {color:#772725!important;text-decoration:underline;text-underline-offset:2px;}
@media (max-width:900px) {
  html body #contact .contact-grid {grid-template-columns:1fr!important;gap:18px!important;}
  html body #contact .map-box {max-width:700px;width:100%;margin:0 auto;}
  html body #contact .map-box iframe {height:248px!important;min-height:248px!important;}
}
@media(max-width:500px){
  html body #contact .rw58-map-top {align-items:flex-start;flex-direction:column;gap:7px;padding:12px 14px;}
  html body #contact .rw58-map-top a {font-size:12.5px;}
}

/* Booking: show instructions before opening Zalo, make the send status unambiguous. */
html body #dat-ban .rw58-zalo-help {
  color:#5c3d34;font:400 13.5px/1.7 'Be Vietnam Pro',sans-serif;
  background:#fff9e9;border-left:3px solid #9d7a41;
  padding:10px 13px;margin:9px 0 15px;
}
html body #dat-ban .rw58-zalo-help strong {font-weight:600;}
html body #dat-ban #res-message {font-size:14px;line-height:1.65;}
