/* ==========================================================================
   Admin inline CSS migrated to code (D8-3394 audit)
   ========================================================================== */

/* Gallery thumbnails — scoped to this page */
#our-hospital .gallery-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#our-hospital .gallery-thumb:hover {
  opacity: 0.85;
}

/* Lightbox — page-level (outside the row wrapper) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: default;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Image block callout — used on 14 service pages */
.gv-image-block {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gv-image-block-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.gv-image-block h2,
.gv-image-block p,
.gv-image-block strong {
  color: #fff;
}

/* Body-content floated images — responsive default (see D8-3409 for platform promotion) */
body:not(.page-node-type-smile-gallery) #block-content img.float-right {
  float: right !important;
  margin-left: 20px !important;
  margin-bottom: 10px !important;
  max-width: 40% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  body:not(.page-node-type-smile-gallery) #block-content img.float-right {
    float: none !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Footer logo */
#footer .logo {
  width: var(--footer-logo-width, 250px);
  background-color: white;
  padding: 12px;
  border-radius: 12px;
}

/* Navbar logo — shrink slightly in the 1200-1250px range so the
   Appointments button in the menu doesn't get cut off. */
@media (min-width: 1200px) and (max-width: 1250px) {
  header .logo {
    width: 270px;
  }
}

/* Mobile menubar — on very narrow screens (≤424px) stack the CTA buttons
   full-width so the row doesn't push the hamburger off-screen. */
@media (max-width: 424px) {
  .mobile-menubar-holder .d-flex.gap-3 {
    flex-wrap: wrap;
    flex: 1;
  }
  .mobile-menubar-holder .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Careers benefits section — /about-us/careers */
.benefits-section .benefit-card {
  min-height: 220px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.benefits-section .benefit-icon {
  max-width: 52px;
  filter: brightness(0.85);
}

.benefits-section .benefit-card h4 {
  line-height: 1.2;
}

.benefits-section .benefit-card p {
  padding-top: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .benefits-section .benefit-card {
    min-height: 190px;
    padding: 20px 14px !important;
  }
}

#block-views-block-careers-careers-block {
  margin-bottom: 1rem;
}

/* Teal utility */
.badge-teal,
.bg-teal {
  background-color: #28bbb8;
}

/* Emergency red button — positional in header, slider left as URL match (see D8-3411 for platform promotion) */
.btn-emergency,
#block-homepageslider a[href="/services/pets/pet-emergency-care-petaluma"],
header .d-none.d-xl-flex.gap-2 > a:first-of-type,
header .mobile-menubar-holder .d-flex > a:first-of-type {
  --bs-btn-bg: #CE3E2E;
  --bs-btn-border-color: #CE3E2E;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #a8321f;
  --bs-btn-hover-border-color: #a8321f;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #a8321f;
  --bs-btn-active-border-color: #a8321f;
  --bs-btn-active-color: #fff;
}

/* Urgent orange button (see D8-3411 for platform promotion) */
.btn-urgent {
  background-color: #CC5501;
  border-color: #CC5501;
  color: #fff;
}

.btn-urgent:hover,
.btn-urgent:active {
  background-color: #a34401;
  border-color: #a34401;
  color: #fff;
}

.diagnostic-link:hover {
  color: #ffffff;
}
