/* Static conversion fixes.
   Loaded after the theme stylesheet so these win without !important wars. */

/* Listify hides listing cards until its AJAX call finishes and strips the
   "loading" class. With no server that never happens, so force them visible. */
ul.job_listings.loading li,
ul.job_listings > li.job_listing {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* The interactive Google map pane is not part of the static build. */
.job_listings-map-wrapper,
.job_listings-map,
.archive-job_listing-toggle-wrapper {
  display: none !important;
}

/* With the map removed the results column takes the full width. */
body.static-no-map .site-content > .row > .site-main,
body.static-no-map .site-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

body.static-no-map ul.job_listings {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  list-style: none;
}

body.static-no-map ul.job_listings > li.job_listing {
  flex: 1 1 340px;
  max-width: 420px;
}

/* Video gallery: real iframes instead of the plugin's custom elements. */
.static-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.ayg-thumb-link {
  display: block;
  text-decoration: none;
}

/* Photo-gallery viewer (the plugin's own lightbox needs admin-ajax) */
.static-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  padding: 2rem;
}

.static-lightbox.is-open {
  display: flex;
}

.static-lightbox .static-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.static-lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.static-lb-btn:hover {
  background: rgba(255, 255, 255, .25);
}

.static-lb-close { top: 1.5rem; right: 1.5rem; }
.static-lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.static-lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

html.static-lb-open { overflow: hidden; }

/* Belt and braces: the plugin's AJAX spinners must never show. */
.bwg_loading_div_1, .bwg_loading_div_2, .bwg_loading_div_3,
.bwg_spider_ajax_loading, .spider_popup_wrap, .bwg_lightbox_hover {
  display: none !important;
}

/* Gallery lightbox wrapper: the theme already links each thumbnail to its
   full-size original, so no extra styling is needed. */

/* Contact page */
.static-contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.static-contact-list li {
  display: flex;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  flex-wrap: wrap;
}

.static-contact-label {
  min-width: 110px;
  font-weight: 600;
  opacity: .8;
}

/* Testimonials (recovered from the old WordPress database) */
.static-testimonials {
  margin-top: 1.5rem;
}

.static-testimonials-rating {
  font-size: .95rem;
  letter-spacing: .01em;
  margin-bottom: 1.75rem;
  opacity: .9;
}

.static-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .static-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.static-testimonial {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.static-testimonial-quote {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: #333;
}

.static-testimonial-quote::before {
  content: "\201C";
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .25rem;
  opacity: .25;
  font-style: normal;
}

.static-testimonial-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, .07);
  padding-top: .85rem;
}

.static-testimonial-name {
  font-weight: 600;
  letter-spacing: .02em;
}

.static-testimonial-stars {
  color: #e8a33d;
  letter-spacing: .12em;
}

/* Client-side search */
.static-search-results {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.static-search-results li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.static-search-results a {
  font-size: 1.15rem;
  font-weight: 600;
}

.static-search-results p {
  margin: .35rem 0 0;
  opacity: .85;
}

.static-search-form {
  display: flex;
  gap: .5rem;
  max-width: 640px;
  margin-top: 1.25rem;
}

.static-search-form input[type="search"] {
  flex: 1;
  padding: .7rem .9rem;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 3px;
}

.static-search-form button {
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: #1f4b8e;
  color: #fff;
  cursor: pointer;
}
