/* Vatoran website — mobile & tablet responsive overrides.
   Uses !important to override inline layout styles from JSX. */

@media (min-width: 901px) {
  .vt-header-nav-mobile {
    display: none !important;
  }

  .vt-header-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  #vt-scroll {
    overflow-x: clip;
  }

  .vt-booking-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .vt-booking-nav-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .vt-booking-nav-row button {
    width: 100% !important;
    justify-content: center !important;
  }

  .vt-policy-card {
    padding: 20px 18px !important;
  }

  .vt-header-bar {
    gap: 12px !important;
    height: 64px !important;
  }

  .vt-header-nav-desktop {
    display: none !important;
  }

  .vt-header-nav-mobile {
    display: none !important;
  }

  .vt-header-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 12px var(--gutter) 16px !important;
    background: rgba(22, 46, 75, 0.98) !important;
    border-top: 1px solid rgba(224, 176, 74, 0.2) !important;
  }

  .vt-header-nav-mobile.is-open a {
    padding: 12px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .vt-header-toggle {
    display: grid !important;
    margin-inline-start: auto !important;
  }

  .vt-header-actions {
    gap: 8px !important;
  }

  .vt-header-phone {
    display: none !important;
  }

  .vt-header-divider {
    display: none !important;
  }

  .vt-header-wordmark-sub {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .vt-header-actions .vt-btn-book-text {
    display: none !important;
  }
}

.vt-header-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(224, 176, 74, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sand-50);
  cursor: pointer;
  place-items: center;
  flex: none;
}

@media (max-width: 900px) {
  .vt-hero {
    min-height: 520px !important;
    margin-top: -64px !important;
    padding-top: 64px !important;
  }

  .vt-hero-inner {
    padding: 32px 0 24px !important;
  }

  .vt-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .vt-hero-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  .vt-section {
    padding: 56px 0 !important;
  }

  .vt-section-head h2,
  .vt-page-head h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .vt-page-head {
    padding-top: 96px !important;
    padding-bottom: 32px !important;
  }

  .vt-page-head h1.display {
    font-size: clamp(2rem, 7vw, 2.75rem) !important;
  }

  .vt-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 24px var(--gutter) !important;
  }

  .vt-stat-grid > div {
    border-inline-start: none !important;
    padding: 8px 0 !important;
  }

  .vt-stat-grid > div:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding-top: 16px !important;
  }

  .vt-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .vt-grid-2 {
    grid-template-columns: 1fr !important;
  }

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

  .vt-grid-2-1,
  .vt-grid-1-2,
  .vt-grid-asymmetric {
    grid-template-columns: 1fr !important;
  }

  .vt-grid-branch-row {
    grid-template-columns: 1fr !important;
  }

  .vt-grid-branch-row > div {
    order: unset !important;
    min-height: 220px !important;
  }

  .vt-grid-branch-row > div:last-child {
    padding: 28px 24px !important;
  }

  .vt-grid-offer-card {
    grid-template-columns: 1fr !important;
    min-height: unset !important;
  }

  .vt-grid-offer-card > div:last-child {
    min-height: 200px !important;
  }

  .vt-offer-actions {
    flex-wrap: wrap !important;
  }

  .vt-grid-footer {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .vt-search-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .vt-search-fields {
    flex-direction: column !important;
  }

  .vt-search-fields > div {
    padding: 12px 16px !important;
  }

  .vt-search-divider {
    display: none !important;
  }

  .vt-search-bar > button {
    width: 100% !important;
    justify-content: center !important;
  }

  .vt-info-bar {
    grid-template-columns: 1fr 1fr !important;
  }

  .vt-info-bar > div:nth-child(odd) {
    border-inline-start: none !important;
  }

  .vt-info-bar > div:nth-child(n+3) {
    border-top: 1px solid var(--border-subtle) !important;
  }

  .vt-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    height: auto !important;
    min-height: unset !important;
  }

  .vt-gallery-grid > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 240px !important;
  }

  .vt-gallery-grid > div:not(:first-child) {
    min-height: 120px !important;
  }

  .vt-booking-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .vt-booking-summary {
    position: static !important;
    top: auto !important;
  }

  .vt-booking-room {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .vt-booking-room-photo {
    width: 100% !important;
  }

  .vt-booking-room-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .vt-booking-room-price {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .vt-stepper {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .vt-stepper-segment {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .vt-stepper-line {
    display: none !important;
  }

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

  .vt-form-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .vt-confirm-rows {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px 16px !important;
  }

  .vt-confirm-rows > div {
    border-inline-start: none !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding-top: 12px !important;
  }

  .vt-confirm-rows > div:first-child {
    border-top: none !important;
    padding-top: 0 !important;
  }

  .vt-confirm-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .vt-confirm-actions button {
    width: 100% !important;
  }

  .vt-confirm-body {
    padding: 32px 24px 40px !important;
  }

  .vt-contact-card {
    grid-template-columns: 1fr !important;
  }

  .vt-contact-card img {
    min-height: 160px !important;
  }

  .vt-contact-card > div:last-child {
    padding: 18px !important;
  }

  .vt-map-contact {
    grid-template-columns: 1fr !important;
  }

  .vt-help-link-card {
    grid-template-columns: 1fr !important;
  }

  .vt-help-link-card > div:last-child {
    display: none !important;
  }

  .vt-cta-block {
    padding: 40px 24px !important;
  }

  .vt-cta-block h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  }

  .vt-branch-hero {
    height: 360px !important;
  }

  .vt-branch-hero-inner {
    padding-top: 80px !important;
  }

  .vt-featured-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .vt-lightbox-nav {
    inset-inline-start: 8px !important;
    inset-inline-end: 8px !important;
  }

  .vt-lightbox-nav.vt-lightbox-prev {
    inset-inline-start: 8px !important;
    inset-inline-end: auto !important;
  }

  .vt-lightbox-nav.vt-lightbox-next {
    inset-inline-end: 8px !important;
    inset-inline-start: auto !important;
  }
}

@media (max-width: 480px) {
  .vt-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .vt-info-bar {
    grid-template-columns: 1fr !important;
  }

  .vt-info-bar > div {
    border-inline-start: none !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  .vt-info-bar > div:first-child {
    border-top: none !important;
  }

  .vt-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .vt-pay-grid {
    grid-template-columns: 1fr !important;
  }

  .vt-branch-price-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}
