/* ============================================
   DENTON PHARMACY NAVIGATION — PREMIUM DARK
   Three-tier design: trust bar + utility bar + menu bar
   ============================================ */

:root {
  --dp-primary: #3f73ae;
  --dp-primary-dark: #2a507a;
  --dp-green: #79bc2e;
  --dp-green-dark: #65a324;
  --dp-nav-bg: #0a6dd4;
  --dp-nav-bottom-bg: #085db5;
  --dp-nav-text: rgba(255, 255, 255, 0.75);
  --dp-nav-text-hover: #ffffff;
  --dp-nav-border: rgba(255, 255, 255, 0.15);
  --dp-white: #ffffff;
  --dp-dropdown-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);
  --dp-text: #1e293b;
  --dp-text-light: #64748b;
  --dp-border: #e5e7eb;
}

/* ── RESET ── */
.denton-nav * {
  box-sizing: border-box;
}

/* ── MAIN WRAPPER ── */
.denton-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* ── TRUST BAR (topmost strip, desktop only) ── */
.denton-nav-trust-bar {
  background: linear-gradient(180deg, #0b75e0 0%, var(--dp-nav-bg) 100%);
  height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .denton-nav-trust-bar {
    height: 38px;
  }
}

.denton-nav-trust-bar .denton-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1280px) {
  .denton-nav-trust-bar .denton-container {
    padding: 0 3.5rem;
  }
}

.denton-trust-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── TOP BAR ── */
.denton-nav-top {
  background: linear-gradient(180deg, var(--dp-nav-bg) 0%, var(--dp-nav-bottom-bg) 100%);
  height: 112px; /* mobile default */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Compact top bar at 1024–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-nav-top {
    height: 100px;
  }
}

.denton-nav.scrolled .denton-nav-top {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.denton-nav-top .denton-container {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 2.5rem;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.denton-nav-top .denton-logo {
  justify-self: start;
  transform: translateY(-8px);
}

/* Nudge the logo left on desktop so it doesn't crowd the phone pill */
@media (min-width: 1024px) {
  .denton-nav-top .denton-logo {
    margin-left: -0.75rem;
  }
}

.denton-nav-top .denton-top-actions {
  justify-self: center;
}

.denton-nav-top .denton-mobile-toggle {
  justify-self: end;
}

@media (max-width: 1023px) {
  .denton-nav-top .denton-container {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1280px) {
  .denton-nav-top .denton-container {
    padding: 0 3.5rem;
  }
}

/* ── LOGO ── */
.denton-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.denton-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}

.denton-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.12));
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smaller logo at 1024–1279px to free up space for action buttons */
@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-logo-img {
    height: 140px;
  }
}

/* Logo text (pharmacy name beside the mark) */
.denton-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-left: 0.625rem;
}

.denton-logo-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.denton-logo-sub {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
  .denton-logo-name {
    font-size: 1.25rem;
  }

  .denton-logo-sub {
    font-size: 0.875rem;
  }
}

/* ── COMPACT NAV (on scroll) ── */

/* Hide trust bar when compact */
.denton-nav.nav-compact .denton-nav-trust-bar {
  height: 0 !important;
}

/* Shrink top bar — mobile */
.denton-nav.nav-compact .denton-nav-top {
  height: 80px;
}

/* Shrink logo — mobile compact.
   Logo image must be smaller than the 80px compact bar to leave room for
   the .denton-logo's translateY(-8px) optical-centering offset; otherwise
   the top of the logo clips above the nav. 56px keeps the same ~4px top
   breathing room the 80px logo has in the 112px default bar. */
.denton-nav.nav-compact .denton-logo-img {
  height: 56px;
}

/* Desktop 1024–1279px compact */
@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-nav.nav-compact .denton-nav-top {
    height: 90px;
  }
  .denton-nav.nav-compact .denton-logo-img {
    height: 90px;
  }
}

/* Desktop 1280px+ compact */
@media (min-width: 1280px) {
  .denton-nav.nav-compact .denton-nav-top {
    height: 100px;
  }
  .denton-nav.nav-compact .denton-logo-img {
    height: 100px;
  }
}

/* Tighten action button padding in compact mode */
@media (min-width: 1024px) {
  .denton-nav.nav-compact .denton-top-link {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
  .denton-nav.nav-compact .denton-book-btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
  .denton-nav.nav-compact .denton-search-btn {
    padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  }
}


.denton-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.denton-trust-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.denton-trust-item--rating svg {
  color: #F59E0B;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}

.denton-trust-item strong {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.denton-trust-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ── TOP ACTIONS (desktop) ── */
.denton-top-actions {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .denton-top-actions {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .denton-top-actions {
    gap: 0.625rem;
  }
}

.denton-top-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
}

/* Tighter buttons at 1024–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-top-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
}

.denton-top-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Phone button — ghost/outline */
.denton-top-link--phone {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-weight: 600;
}

.denton-top-link--phone:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* NHS Nominate button — White with NHS blue text */
.denton-top-link--nhs {
  background: #ffffff;
  border-color: #ffffff;
  color: #005EB8;
  font-weight: 700;
}

.denton-top-link--nhs:hover {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #004a93;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ── BOOK BUTTON ── */
.denton-book-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  background: var(--dp-green);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-book-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
}

.denton-book-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.denton-book-btn:hover {
  background: var(--dp-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* ── MOBILE TOGGLE ── */
.denton-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.denton-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 1024px) {
  .denton-mobile-toggle {
    display: none;
  }
}

/* ── BOTTOM NAV BAR ── */
.denton-nav-bottom {
  background: linear-gradient(180deg, var(--dp-nav-bottom-bg) 0%, #054a91 100%);
  height: 50px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}

@media (min-width: 1024px) {
  .denton-nav-bottom {
    display: block;
  }
}

.denton-nav-bottom .denton-container {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1280px) {
  .denton-nav-bottom .denton-container {
    padding: 0 3.5rem;
  }
}

/* ── DESKTOP MENU ── */
.denton-desktop-menu {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.denton-menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.denton-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0 1rem;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
}

/* Active underline indicator */
.denton-menu-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: var(--dp-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 2px 2px 0 0;
}

.denton-menu-item:hover .denton-menu-btn,
.denton-menu-btn:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
}

.denton-menu-btn.active {
  color: #ffffff;
}

.denton-menu-item:hover .denton-menu-btn::after {
  transform: scaleX(1);
}

.denton-menu-btn .arrow {
  width: 0.6875rem;
  height: 0.6875rem;
  color: currentColor;
  transition: transform 0.25s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.denton-menu-item:hover .arrow {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* ── DROPDOWN ── */
.denton-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 22rem;
  background: var(--dp-white);
  border-radius: 0.875rem;
  box-shadow: var(--dp-dropdown-shadow);
  border: 1px solid rgba(0, 0, 0, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  overflow: hidden;
  z-index: 100;
}

/* Nav dropdowns use the UI font (DM Sans), not the editorial heading font */
.denton-dropdown,
.denton-dropdown h1,
.denton-dropdown h2,
.denton-dropdown h3,
.denton-dropdown h4,
.denton-dropdown h5,
.denton-dropdown h6,
.denton-dropdown p,
.denton-dropdown a,
.denton-dropdown span {
  font-family: 'DM Sans', sans-serif;
}

.denton-dropdown.wide {
  width: 44rem;
  display: flex;
  flex-direction: column;
}

.denton-dropdown-row {
  display: flex;
  flex: 1;
}

.denton-dropdown-col {
  flex: 1;
  padding: 0.5rem;
}

.denton-dropdown-col.bg-gray {
  background-color: #f8fafc;
  border-left: 1px solid var(--dp-border);
}

.denton-menu-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--dp-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1rem 1rem 0.5rem;
}

.denton-destinations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.5rem 0.5rem;
}

/* Stack to a single column below 1024px so each destination has the
   full width to breathe. Currently dormant - the wide dropdown lives
   inside .denton-nav-bottom which is display:none on mobile - but kept
   so the layout is correct if that ever changes. */
@media (max-width: 1023px) {
  .denton-destinations-grid {
    grid-template-columns: 1fr;
  }
}

.denton-destination-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dp-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

/* Hover matches .denton-dropdown-link:hover for visual consistency
   with the other dropdown items in the menu. */
.denton-destination-link:hover {
  background-color: #f1f5f9;
}

.denton-destination-flag {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.denton-menu-item:hover .denton-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.denton-dropdown-header {
  background: #1e293b;
  padding: 1rem 1.25rem;
}

.denton-dropdown-header.teal {
  background: linear-gradient(135deg, var(--dp-primary) 0%, var(--dp-primary-dark) 100%);
}

.denton-dropdown-header h3 {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.2rem 0;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
}

.denton-dropdown-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  margin: 0;
}

.denton-dropdown-content {
  padding: 0.625rem;
}

.denton-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.denton-dropdown-link:hover {
  background-color: #f1f5f9;
}

.denton-link-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.denton-dropdown-link:hover .denton-link-icon {
  background: rgba(63, 115, 174, 0.1);
}

.denton-link-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--dp-primary);
}

/* Font Awesome icon support in dropdown icon boxes */
.denton-link-icon i {
  font-size: 1rem;
  color: var(--dp-primary);
}

.denton-link-text h4 {
  color: var(--dp-text);
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 0 0.125rem 0;
  transition: color 0.15s ease;
}

.denton-dropdown-link:hover .denton-link-text h4 {
  color: var(--dp-primary);
}

.denton-link-text p {
  color: var(--dp-text-light);
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.45;
}

.denton-dropdown-footer {
  background: #f8fafc;
  padding: 0.625rem 1.25rem;
  border-top: 1px solid var(--dp-border);
}

.denton-footer-link {
  color: var(--dp-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease;
}

.denton-footer-link:hover {
  gap: 0.625rem;
}

/* ── MOBILE MENU ── */
.denton-mobile-menu {
  position: fixed;
  top: 112px; /* matches mobile top bar height */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dp-nav-bottom-bg);
  z-index: 9998;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.denton-mobile-menu.active {
  transform: translateX(0);
}

/* Adjust mobile menu position when nav is compact (scrolled) */
.denton-nav.nav-compact .denton-mobile-menu {
  top: 80px;
}

/* Mobile Nav Links */
.denton-mobile-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.denton-mobile-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.01em;
}

.denton-mobile-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  padding-left: 1.75rem;
}

/* Mobile Accordion */
.denton-mobile-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.denton-mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.denton-mobile-accordion-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.denton-mobile-accordion-arrow {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.denton-mobile-accordion.open .denton-mobile-accordion-arrow {
  transform: rotate(180deg);
  opacity: 0.9;
}

.denton-mobile-accordion.open .denton-mobile-accordion-btn {
  color: #ffffff;
}

.denton-mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.08);
}

.denton-mobile-accordion.open .denton-mobile-accordion-content {
  max-height: 700px;
}

.denton-mobile-sub-link {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 2.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.denton-mobile-sub-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2.5rem;
}

.denton-mobile-sub-divider {
  padding: 0.75rem 1.5rem 0.25rem 2.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Mobile CTAs */
.denton-mobile-cta {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.denton-mobile-cta-phone,
.denton-mobile-cta-nhs,
.denton-mobile-cta-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.denton-mobile-cta-phone {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.denton-mobile-cta-phone:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.denton-mobile-cta-nhs {
  background: var(--dp-primary);
  color: #ffffff;
}

.denton-mobile-cta-nhs:hover {
  background: var(--dp-primary-dark);
  color: #ffffff;
}

.denton-mobile-cta-book {
  background: var(--dp-green);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(121, 188, 46, 0.35);
}

.denton-mobile-cta-book:hover {
  background: var(--dp-green-dark);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(121, 188, 46, 0.5);
}

/* ── SEARCH BUTTON ── */
.denton-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem 0.5625rem 0.875rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.22s ease;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

/* Icon-only search button at 1024–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-search-btn {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
    gap: 0;
  }

  .denton-search-btn-text {
    display: none;
  }
}

.denton-search-btn-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.denton-search-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.denton-search-btn:hover .denton-search-btn-text {
  color: rgba(255, 255, 255, 0.65);
}

/* ── SEARCH OVERLAY ── */
.denton-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.denton-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.denton-search-close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.denton-search-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.denton-search-inner {
  width: 100%;
  max-width: 720px;
  padding: 0 1.5rem;
}

.denton-search-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

.denton-search-input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  transition: border-color 0.25s ease;
}

.denton-search-input-row:focus-within {
  border-color: var(--dp-green);
}

.denton-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 2.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.2;
}

.denton-search-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.denton-search-submit {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.denton-search-submit:hover {
  color: #ffffff;
}

.denton-search-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  margin-top: 1.25rem;
  font-family: 'DM Sans', sans-serif;
}

.denton-search-hint strong {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ── WORDPRESS ADMIN BAR SUPPORT ── */
body.admin-bar .denton-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .denton-nav {
    top: 46px;
  }
}

body.admin-bar .denton-mobile-menu {
  top: calc(112px + 46px);
}

body.admin-bar .denton-nav.nav-compact .denton-mobile-menu {
  top: calc(64px + 46px);
}

@media screen and (min-width: 783px) {
  body.admin-bar .denton-mobile-menu {
    top: calc(112px + 32px);
  }
  body.admin-bar .denton-nav.nav-compact .denton-mobile-menu {
    top: calc(64px + 32px);
  }
}

/* ── PATIENT PORTAL BUTTONS ── */
.denton-portal-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.denton-portal-btn svg {
  flex-shrink: 0;
}

.denton-portal-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .denton-portal-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

.denton-mobile-cta-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.denton-mobile-cta-portal:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

/* Private Services mega-menu sits near the right edge — anchor the wide panel
   to the right so the 44rem panel doesn't overflow off-screen. */
.denton-ps-menu .denton-dropdown.wide {
  left: auto;
  right: 0;
}

/* Compact "Vaccinations" column (name only) — tighter rows */
.denton-dropdown-link--compact {
  align-items: center;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.denton-dropdown-link--compact .denton-link-icon {
  width: 1.65rem;
  height: 1.65rem;
}
.denton-dropdown-link--compact .denton-link-icon i {
  font-size: 0.7rem;
}

/* Mobile accordion: subheading before the vaccinations list
   (aligned with sub-links, light text for contrast on the blue drawer) */
.denton-mobile-sub-heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  padding: 1rem 1.5rem 0.35rem 2.25rem;
}
