/* ==========================================================================
   Polish layer (Node build). Loaded after the site CSS; nothing here changes
   content or structure - only tablet layout fixes, hover/focus feedback and
   small accessibility touches. Remove this one <link> to switch it all off.
   ========================================================================== */

/* ---- 1. Tablets (541-991px): property page gets the stacked layout phones already had.
           Before: booking box squeezed to ~150px beside the gallery, text overlapping. ---- */
@media (min-width: 541px) and (max-width: 991px) {
  body:has(.property-detail-sec) header.mob-header,
  body:has(.property-detail-sec) header.mob-header.fixed { position: relative; background: var(--territiary-color, #14110f); }
  .property-detail-sec .detail-sec { flex-direction: column; }
  .property-detail-sec .detail-left { width: 100%; }
  .property-detail-sec .detail-right { width: 100%; max-width: 560px; margin: 25px auto 0; padding-left: 12px; padding-right: 12px; position: relative; top: 0; z-index: 1; }
  .property-detail-sec .side-sec { padding: 20px; }
  .property-detail-sec .amn-listing { flex-wrap: wrap; row-gap: 12px; }
  .property-detail-sec .amn-listing ul { flex: 1 1 100%; gap: 10px 22px; }
}

/* ---- 1b. Small laptops / tablets in landscape (981-1139px): the desktop menu was ~50px wider than
            the screen, so every page scrolled sideways. Same menu, slightly tighter spacing. ---- */
@media (min-width: 981px) and (max-width: 1139px) {
  .latest-header .header-logo { width: 150px; flex: 0 0 150px; }
  .latest-header .header-logo img { width: 132px; height: auto; }
  .latest-header ul.navbar-nav { gap: 2px; }
  .latest-header ul.navbar-nav > li > a.main-btn { white-space: nowrap; }
  .latest-header ul.navbar-nav > li { padding: 0 3px; }
  .latest-header ul.navbar-nav > li > a.nav-link { letter-spacing: .5px; }
}
@media (min-width: 981px) and (max-width: 1099px) {
  .latest-header { padding-left: 16px; padding-right: 16px; }
  .latest-header .header-logo { width: 132px; flex-basis: 132px; }
  .latest-header ul.navbar-nav > li { padding: 0 1px; }
  .latest-header ul.navbar-nav > li > a.nav-link { letter-spacing: .2px; padding-left: 4px; padding-right: 4px; font-size: 11px; }
  .latest-header ul.navbar-nav > li > a.main-btn { padding-left: 10px; padding-right: 10px; font-size: 12px; }
}

/* ---- 1c. Large phones / small tablets (541-767px): stat tiles and footer icons stay inside the screen ---- */
@media (max-width: 767px) {
  .footer-info ul.social-list { flex-wrap: wrap; }
  .experiences-bottom-list { max-width: 100%; }
  .experiences-bottom-item, .experiences-bottom-content { min-width: 0; }
  .experiences-bottom-content p, .experiences-bottom-content h5, .experiences-bottom-content h6 { overflow-wrap: break-word; }
  .full-service-content, .proven-list-item, .proven-list-cont { min-width: 0; }
  .full-service-content h3, .full-service-content p, .proven-list-cont p, .proven-list-cont h5 { overflow-wrap: break-word; }
  /* safety net: a stray carousel arrow can no longer make the whole page scroll sideways (sticky bars keep working) */
  html, body { overflow-x: clip; }
}

/* long e-mail addresses never push a box wider than the screen */
.about-owner-section a, .footer-contact-text p, .contact-transition { overflow-wrap: anywhere; }
.property-detail-sec .amn-listing ul li { min-width: 0; }

/* ---- 2. Cards: gentle lift + photo zoom on hover (desktop pointers only) ---- */
@media (hover: hover) and (pointer: fine) {
  .pro-item .pro-info, .local-card-item, .bottom-item { transition: transform .35s ease, box-shadow .35s ease; }
  .pro-item .pro-info:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(34, 24, 12, .16); }
  .pro-item .pro-images, .local-card-img { overflow: hidden; }
  .pro-item .pro-images img, .local-card-img img { transition: transform .7s cubic-bezier(.2, .6, .2, 1); will-change: transform; }
  .pro-item .pro-info:hover .pro-images img, .local-card-item:hover .local-card-img img { transform: scale(1.06); }
  .main-btn { transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
  .main-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(164, 126, 79, .28); }
  .main-btn:active { transform: translateY(0); box-shadow: none; }
  .fixed-icon .fix-btn { transition: transform .2s ease; }
  .fixed-icon .fix-btn:hover { transform: scale(1.06); }
}

/* ---- 3. Keyboard users: a visible focus ring in the brand colour ---- */
a:focus-visible, button:focus-visible, .main-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #a47e4f; outline-offset: 3px; border-radius: 3px;
}
::selection { background: #a47e4f; color: #fff; }

/* ---- 4. Comfort ---- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
.pro-content h3, .local-card-cont h3 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
