/* Top bar contact buttons (owner, 2 Dec 2026): WhatsApp + Call, and the Call panel with the numbers.
   Markup: resources/views/partials/site-nav-contact.blade.php. Behaviour: website-v2/js/site-contact.js.
   Our own look: dark glass, white icons, yellow accents (#FCDF2B / #f4b400). Loaded last on each public page. */

.snc {
  --snc-yellow: #FCDF2B;
  --snc-amber: #f4b400;
  --snc-ink: #1b1b1b;
  --snc-glass: rgba(77, 77, 73, 0.82);
  --snc-line: rgba(255, 255, 255, 0.38);
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

/* ---- the two round icon buttons */
.snc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--snc-line);
  background: var(--snc-glass);
  color: #fff;
  box-shadow: inset -1px -1px 4px rgba(255, 255, 255, 0.18), 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.snc-btn .snc-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.snc-btn:hover,
.snc-btn:focus-visible {
  color: var(--snc-yellow);
  border-color: var(--snc-yellow);
  background: rgba(40, 40, 37, 0.9);
}

.snc-btn:focus-visible {
  outline: 2px solid var(--snc-yellow);
  outline-offset: 2px;
}

.snc-btn:active {
  transform: scale(0.94);
}

.snc-btn--call[aria-expanded="true"] {
  background: var(--snc-yellow);
  border-color: var(--snc-yellow);
  color: var(--snc-ink);
}

/* ---- the Call panel (dark glass, same family as the bar) */
.snc-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 1000;
  width: 300px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 16px 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(24, 24, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset -2px -2px 8px rgba(255, 255, 255, 0.06), 0 22px 48px -18px rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: left;
  white-space: normal;
  font-family: inherit;
}

.snc-panel[hidden] {
  display: none !important;
}

.snc-panel:focus {
  outline: none;
}

.snc-panel:focus-visible {
  outline: 2px solid var(--snc-yellow);
  outline-offset: 2px;
}

.snc-label {
  margin: 0 0 2px;
  padding: 0 6px;
  color: var(--snc-yellow);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.snc-label--sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.snc-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 12px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  transition: background 0.2s ease;
}

.snc-line:hover,
.snc-line:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.snc-line:focus-visible {
  outline: 2px solid var(--snc-yellow);
  outline-offset: 0;
}

.snc-line--main {
  min-height: 52px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.snc-line--wa {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  font-size: 17px;
}

.snc-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.snc-line--wa .snc-icon {
  flex: 0 0 auto;
  color: var(--snc-yellow);
}

.snc-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(252, 223, 43, 0.7);
  color: var(--snc-yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.snc-chip--solid {
  height: 30px;
  padding: 0 14px;
  background: var(--snc-yellow);
  border-color: var(--snc-yellow);
  color: var(--snc-ink);
  font-size: 15px;
}

.snc-line:hover .snc-chip:not(.snc-chip--solid) {
  background: rgba(252, 223, 43, 0.14);
}

.snc-line--main:hover .snc-chip--solid {
  background: var(--snc-amber);
  border-color: var(--snc-amber);
}

@media (prefers-reduced-motion: no-preference) {
  .snc-panel:not([hidden]) {
    animation: snc-in 0.18s ease-out;
  }

  @keyframes snc-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- laptops (>= 992px): [WhatsApp] [Call] sit in the menu just before Book Now */
@media (min-width: 992px) {
  .navbar .navbar-collapse .ms-lg-3 {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* small laptops (992-1199px): the centred menu links come close to the icons; smaller icons and the links a little
   to the left so nothing touches */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .navbar-collapse .ms-lg-3 {
    gap: 8px;
  }

  .snc {
    gap: 6px;
  }

  .snc-btn {
    width: 36px;
    height: 36px;
  }

  .snc-btn .snc-icon {
    width: 18px;
    height: 18px;
  }

  .navbar .navbar-collapse .navbar-nav {
    transform: translate(calc(-50% - 16px), -50%);
  }
}

/* ---- phones and tablets (< 992px): the icons sit in the bar next to the hamburger; the panel opens below the bar,
   full width minus 16px gutters (left / top / width set by site-contact.js from the bar's position) */
@media (max-width: 991.98px) {
  .navbar > .container {
    position: relative;
  }

  .snc--bar {
    position: static;
    margin-left: auto;
    margin-right: 14px;
  }

  .snc--bar .snc-panel {
    right: auto;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 359.98px) {
  .snc {
    gap: 6px;
  }

  .snc-btn {
    width: 38px;
    height: 38px;
  }

  .snc--bar {
    margin-right: 10px;
  }

  .snc-line--main {
    font-size: 25px;
  }
}


/* Owner, 2 Dec: WhatsApp, Call and Book Now in our yellow with dark icons / text; a lighter yellow on hover and a
   strong amber with a ring when pressed or open (never a faint grey). Loaded last, so it wins over the older
   dark-grey Book Now rules. */
html body .snc-btn {
  background: #FCDF2B;
  border-color: #FCDF2B;
  color: #1b1b1b;
}

html body .snc-btn:hover,
html body .snc-btn:focus-visible {
  background: #ffe95c;
  border-color: #ffe95c;
  color: #1b1b1b;
}

html body .snc-btn:active,
html body .snc-btn--call[aria-expanded="true"] {
  background: #f4b400;
  border-color: #fff3b0;
  color: #1b1b1b;
  box-shadow: 0 0 0 3px rgba(252, 223, 43, 0.4);
}

html body .navbar a.custom-btn[data-book-now] {
  background: #FCDF2B !important;
  border-color: #FCDF2B !important;
  color: #1b1b1b !important;
}

html body .navbar a.custom-btn[data-book-now]:hover,
html body .navbar a.custom-btn[data-book-now]:focus-visible {
  background: #ffe95c !important;
  border-color: #ffe95c !important;
  color: #1b1b1b !important;
}

html body .navbar a.custom-btn[data-book-now]:active,
html body .navbar a.custom-btn[data-book-now]:focus {
  background: #f4b400 !important;
  border-color: #fff3b0 !important;
  color: #1b1b1b !important;
  box-shadow: 0 0 0 3px rgba(252, 223, 43, 0.4) !important;
}

/* Over the light yellow page (html.nav-on-light, set by site-contact.js) the buttons turn grey with yellow / white
   icons and text, so they stay visible; over dark heroes / sections they stay yellow (owner, 2 Dec). */
html body .snc-btn,
html body .navbar a.custom-btn[data-book-now] {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

html.nav-on-light body .snc-btn {
  background: #4d4d49;
  border-color: #4d4d49;
  color: #FCDF2B;
}

html.nav-on-light body .snc-btn:hover,
html.nav-on-light body .snc-btn:focus-visible {
  background: #3a3a37;
  border-color: #3a3a37;
  color: #FCDF2B;
}

html.nav-on-light body .snc-btn:active,
html.nav-on-light body .snc-btn--call[aria-expanded="true"] {
  background: #1b1b1b;
  border-color: #FCDF2B;
  color: #FCDF2B;
  box-shadow: 0 0 0 3px rgba(77, 77, 73, 0.35);
}

html.nav-on-light body .navbar a.custom-btn[data-book-now] {
  background: #4d4d49 !important;
  border-color: #4d4d49 !important;
  color: #ffffff !important;
}

html.nav-on-light body .navbar a.custom-btn[data-book-now]:hover,
html.nav-on-light body .navbar a.custom-btn[data-book-now]:focus-visible {
  background: #3a3a37 !important;
  border-color: #3a3a37 !important;
  color: #ffffff !important;
}

html.nav-on-light body .navbar a.custom-btn[data-book-now]:active,
html.nav-on-light body .navbar a.custom-btn[data-book-now]:focus {
  background: #1b1b1b !important;
  border-color: #FCDF2B !important;
  color: #FCDF2B !important;
  box-shadow: 0 0 0 3px rgba(77, 77, 73, 0.35) !important;
}
