/* ==========================================================================
   Acme Support Services — SIL property hub + property detail pages.
   Loaded ONLY by sil-vacancies.php and property-*.php, after style.css.
   Kept in its own file so the existing site's stylesheet is untouched.
   Uses the design tokens already defined in style.css :root.
   ========================================================================== */

/* --- Shared bits ---------------------------------------------------------- */
.prop-eyebrow{
  display:inline-block;font-family:var(--font-heading);font-weight:700;
  font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--color-primary);margin-bottom:10px;
}
.prop-lede{font-size:1.05rem;line-height:1.75;color:var(--color-body-text);max-width:70ch}
.section-head{max-width:70ch;margin-bottom:32px}
.section-head h2{margin-bottom:10px}

/* --- Vacancy badge -------------------------------------------------------- */
.prop-badge{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--font-heading);font-weight:700;font-size:.75rem;
  letter-spacing:.04em;padding:7px 14px;border-radius:999px;white-space:nowrap;
}
.prop-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.prop-badge.is-available{background:rgba(0,221,96,.12);color:#067A3C}
.prop-badge.is-eoi{background:rgba(0,221,96,.12);color:#00264C}

/* --- Hub: summary strip --------------------------------------------------- */
.prop-stats{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:16px;margin:0 0 40px;
}
.prop-stat{
  background:var(--color-white);border:1px solid var(--color-border-light);
  border-radius:var(--radius-lg);padding:20px 18px;text-align:center;
  box-shadow:var(--shadow-sm);
}
.prop-stat .num{
  display:block;font-family:var(--font-heading);font-weight:800;
  font-size:2rem;line-height:1.1;color:var(--color-primary);
}
.prop-stat .lbl{display:block;margin-top:6px;font-size:.85rem;color:#667085}

/* --- Hub: filter chips ---------------------------------------------------- */
.prop-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.prop-filter{
  font-family:var(--font-heading);font-weight:600;font-size:.85rem;
  padding:9px 18px;border-radius:999px;cursor:pointer;
  background:var(--color-white);color:var(--color-secondary);
  border:1px solid var(--color-border);transition:all .18s ease;
}
.prop-filter:hover{border-color:var(--color-primary);color:var(--color-primary)}
.prop-filter.is-active{background:var(--color-secondary);border-color:var(--color-secondary);color:#fff}

/* --- Hub: listing grid ---------------------------------------------------- */
.prop-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
  gap:26px;
}
.prop-card{
  display:flex;flex-direction:column;background:var(--color-white);
  border:1px solid var(--color-border-light);border-radius:var(--radius-lg);
  overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.prop-card:hover{
  transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,38,76,.13);
  border-color:var(--color-primary);
}

/* Photo placeholder — swap .prop-figure for a real <img> when photos arrive. */
.prop-figure{
  position:relative;aspect-ratio:16/10;
  background:linear-gradient(135deg,#00264C 0%,#0A3A66 55%,#00DD60 100%);
  display:flex;align-items:center;justify-content:center;
}
.prop-figure img{width:100%;height:100%;object-fit:cover;display:block}
.prop-figure .glyph{opacity:.42;color:#fff}
.prop-figure .prop-badge{position:absolute;top:14px;left:14px;background:#fff}
.prop-figure .prop-badge.is-available{color:#067A3C}
.prop-figure .prop-badge.is-eoi{color:#00264C}

.prop-card-body{padding:22px 22px 0;flex:1 1 auto}
.prop-loc{
  display:flex;align-items:center;gap:6px;font-size:.82rem;
  color:var(--color-primary);font-weight:600;margin-bottom:8px;
}
.prop-card h3{font-size:1.12rem;line-height:1.4;margin:0 0 12px}
.prop-card h3 a{color:var(--color-secondary);text-decoration:none}
.prop-card h3 a:hover{color:var(--color-primary)}
.prop-card p{font-size:.92rem;line-height:1.65;color:#667085;margin:0 0 16px}

.prop-specs{
  display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:0;list-style:none;
}
.prop-specs li{
  display:inline-flex;align-items:center;gap:5px;font-size:.8rem;font-weight:600;
  color:var(--color-secondary);background:var(--color-alt-bg);
  border-radius:6px;padding:6px 11px;
}
.prop-card-foot{
  padding:16px 22px 22px;margin-top:4px;border-top:1px solid var(--color-border-light);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.prop-link{
  font-family:var(--font-heading);font-weight:700;font-size:.88rem;
  color:var(--color-primary);text-decoration:none;white-space:nowrap;flex:none;
}
.prop-link:hover{text-decoration:underline}
.prop-addr{font-size:.78rem;color:#667085;line-height:1.4;min-width:0}

/* --- Image placeholder (used anywhere a real photo is missing) ------------- */
.img-ph{
  position:relative;width:100%;height:100%;display:flex;
  flex-direction:column;align-items:center;justify-content:center;gap:9px;
  color:#fff;
}
.img-ph .glyph{opacity:.4}
.img-ph-label{
  font-family:var(--font-heading);font-weight:700;font-size:.66rem;
  letter-spacing:.11em;text-transform:uppercase;color:rgba(255,255,255,.62);
}
.prop-photocount{
  position:absolute;right:12px;bottom:12px;z-index:2;
  background:rgba(0,38,76,.72);color:#fff;font-size:.72rem;font-weight:600;
  padding:5px 11px;border-radius:999px;backdrop-filter:blur(3px);
}

/* --- Detail: breadcrumb strip --------------------------------------------- */
.prop-crumb{background:var(--color-alt-bg);border-bottom:1px solid var(--color-border-light);padding:14px 0}
.prop-crumb .breadcrumb{margin:0;color:var(--color-body-text)}
.prop-crumb .breadcrumb a{color:var(--color-primary)}

/* --- Detail: photo gallery ------------------------------------------------ */
.pgal-wrap{padding:22px 0 0}
.pgal{
  display:grid;grid-template-columns:1.3fr 1fr;gap:10px;
  border-radius:var(--radius-lg);overflow:hidden;
}
.pgal-main,.pgal-thumb{
  position:relative;display:block;padding:0;border:0;cursor:pointer;
  background:#00264C;overflow:hidden;
}
.pgal-main{aspect-ratio:16/10}
/* The side column mirrors the feature image's height exactly: two equal rows,
   each split into two thumbs. Thumbs stretch to fill — no aspect-ratio here,
   or they'd size themselves and leave a gap in the middle. */
.pgal-side{display:grid;grid-template-rows:1fr 1fr;gap:10px;min-height:0}
.pgal-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0}
.pgal-thumb{height:100%;min-height:0}
.pgal-main img,.pgal-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.pgal-main:hover img,.pgal-thumb:hover img{transform:scale(1.045)}
.pgal-main .prop-badge{position:absolute;top:16px;left:16px;background:#fff;z-index:2}
.pgal-more{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(0,38,76,.62);color:#fff;font-family:var(--font-heading);
  font-weight:700;font-size:1.05rem;backdrop-filter:blur(2px);
}
.pgal-all{
  position:absolute;right:16px;bottom:16px;z-index:2;
  background:#fff;color:var(--color-secondary);border:0;cursor:pointer;
  font-family:var(--font-heading);font-weight:700;font-size:.82rem;
  padding:10px 16px;border-radius:8px;box-shadow:var(--shadow);
  display:inline-flex;align-items:center;gap:7px;
}
.pgal-all:hover{background:var(--color-secondary);color:#fff}
.pgal-all svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8}

/* --- Detail: listing headline block --------------------------------------- */
.plisting-head{padding:30px 0 8px}
.plisting-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}
.plisting-loc{
  display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.88rem;
  color:var(--color-primary);
}
.plisting-head h1{font-size:2.1rem;line-height:1.22;margin:0 0 14px;max-width:24ch;color:var(--color-secondary)}
.plisting-sub{font-size:1.05rem;line-height:1.75;color:#667085;max-width:66ch;margin:0}
.plisting-specs{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 0;padding:0;list-style:none}
.plisting-specs li{
  display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:.88rem;
  color:var(--color-secondary);background:var(--color-alt-bg);
  border:1px solid var(--color-border-light);border-radius:8px;padding:9px 14px;
}
.plisting-specs svg{width:17px;height:17px;stroke:var(--color-primary);fill:none;stroke-width:1.7}

/* --- Detail: main + sticky aside ------------------------------------------ */
.plisting-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:44px;align-items:start}
.plisting-main > section{padding:34px 0;border-top:1px solid var(--color-border-light)}
.plisting-main > section:first-child{border-top:0;padding-top:10px}
.plisting-main h2{font-size:1.55rem;margin:0 0 8px}
.plisting-main h3{font-size:1.12rem;margin:26px 0 8px;color:var(--color-secondary)}
.plisting-main p{line-height:1.78;color:#1A2B3C;margin:0 0 14px}

.penq{position:sticky;top:22px;display:grid;gap:16px}
.penq-card{
  background:var(--color-white);border:1px solid var(--color-border-light);
  border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow);
}
.penq-card .penq-badge{margin-bottom:14px}
.penq-card h3{margin:0 0 4px;font-size:1.08rem;color:var(--color-secondary)}
.penq-card .penq-addr{margin:0 0 18px;font-size:.88rem;color:#667085}
.penq-facts{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:0}
.penq-facts li{
  display:flex;justify-content:space-between;gap:14px;padding:10px 0;
  border-bottom:1px dashed var(--color-border-light);font-size:.87rem;
}
.penq-facts li:last-child{border-bottom:0}
.penq-facts .k{color:#667085}
.penq-facts .v{font-weight:700;color:var(--color-secondary);text-align:right}
.penq-actions{display:grid;gap:10px}
.penq-actions .btn{width:100%;text-align:center}
/* Tertiary action — a link, not a third button competing with the two above. */
.penq-link{
  display:block;text-align:center;margin-top:2px;padding:4px 0;
  font-family:var(--font-heading);font-weight:700;font-size:.87rem;
  color:var(--color-primary);text-decoration:none;
}
.penq-link:hover{text-decoration:underline}
.penq-note{margin:16px 0 0;font-size:.78rem;color:#667085;line-height:1.55;text-align:center}

/* --- Detail: key facts (legacy strip, kept for reuse) --------------------- */
.prop-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1px;background:var(--color-border-light);
  border:1px solid var(--color-border-light);border-radius:var(--radius-lg);
  overflow:hidden;position:relative;z-index:2;box-shadow:var(--shadow);
}
.prop-fact{background:var(--color-white);padding:18px 20px}
.prop-fact .k{
  display:block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  color:#667085;font-weight:700;margin-bottom:5px;
}
.prop-fact .v{display:block;font-family:var(--font-heading);font-weight:700;color:var(--color-secondary);font-size:1rem}

/* --- Lightbox ------------------------------------------------------------- */
.lb{
  position:fixed;inset:0;z-index:9999;background:rgba(8,20,33,.94);
  display:none;align-items:center;justify-content:center;
}
.lb.is-open{display:flex}
.lb-stage{max-width:min(1180px,92vw);max-height:86vh;position:relative}
.lb-stage img{max-width:100%;max-height:86vh;display:block;border-radius:10px;object-fit:contain}
.lb-stage .img-ph{width:min(1180px,92vw);aspect-ratio:16/10;border-radius:10px}
.lb-close,.lb-prev,.lb-next{
  position:absolute;z-index:2;background:rgba(255,255,255,.14);border:0;color:#fff;
  cursor:pointer;border-radius:50%;width:46px;height:46px;font-size:1.4rem;line-height:1;
  display:flex;align-items:center;justify-content:center;transition:background .18s ease;
}
.lb-close:hover,.lb-prev:hover,.lb-next:hover{background:rgba(255,255,255,.3)}
.lb-close{top:22px;right:22px}
.lb-prev{left:22px;top:50%;transform:translateY(-50%)}
.lb-next{right:22px;top:50%;transform:translateY(-50%)}
.lb-count{
  position:absolute;bottom:22px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.8);font-size:.85rem;font-weight:600;letter-spacing:.04em;
}

/* --- Detail: why this location ------------------------------------------- */
.why-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;
}
.why-card{
  background:var(--color-white);border:1px solid var(--color-border-light);
  border-left:3px solid var(--color-primary);
  border-radius:var(--radius);padding:22px 22px 20px;box-shadow:var(--shadow-sm);
}
.why-card h4{margin:0 0 8px;font-size:1rem;color:var(--color-secondary)}
.why-card p{margin:0;font-size:.9rem;line-height:1.68;color:#667085}

/* --- Detail: features ----------------------------------------------------- */
.feat-cols{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.feat-panel{
  background:var(--color-white);border:1px solid var(--color-border-light);
  border-radius:var(--radius-lg);padding:26px;box-shadow:var(--shadow-sm);
}
.feat-panel h3{margin:0 0 4px;font-size:1.12rem;color:var(--color-secondary)}
.feat-panel .feat-note{margin:0 0 18px;font-size:.86rem;color:#667085}
.feat-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.feat-list li{
  position:relative;padding-left:26px;font-size:.92rem;line-height:1.55;color:#1A2B3C;
}
.feat-list li::before{
  content:"\2713";position:absolute;left:0;top:0;
  color:var(--color-primary);font-weight:700;
}

/* --- Detail: next steps --------------------------------------------------- */
.prop-next{
  background:var(--color-alt-bg);border:1px solid var(--color-border-light);
  border-radius:var(--radius-lg);padding:34px;text-align:center;
}
.prop-next h2{margin:0 0 12px}
.prop-next p{max-width:62ch;margin:0 auto 24px;color:#667085;line-height:1.72}
.prop-next-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* --- Homepage accommodation block ---------------------------------------- */
.acc-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-bottom:36px}
.acc-card{
  background:var(--color-white);border:1px solid var(--color-border-light);
  border-radius:var(--radius-lg);padding:32px;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;
}
.acc-card .acc-tag{
  display:inline-block;align-self:flex-start;font-family:var(--font-heading);
  font-weight:800;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--color-primary);background:var(--color-primary-light);
  padding:6px 12px;border-radius:6px;margin-bottom:14px;
}
.acc-card h3{margin:0 0 12px;font-size:1.3rem;color:var(--color-secondary)}
.acc-card p{margin:0 0 18px;line-height:1.72;color:#667085}
.acc-card ul{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:9px}
.acc-card ul li{position:relative;padding-left:24px;font-size:.93rem;color:#1A2B3C;line-height:1.5}
.acc-card ul li::before{content:"\2713";position:absolute;left:0;color:var(--color-primary);font-weight:700}
.acc-card .acc-foot{margin-top:auto}

.acc-banner{
  background:linear-gradient(135deg,#00264C 0%,#0A3A66 100%);
  border-radius:var(--radius-lg);padding:34px 38px;color:#fff;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;
}
.acc-banner h3{color:#fff;margin:0 0 8px;font-size:1.35rem}
.acc-banner p{margin:0;color:rgba(255,255,255,.84);line-height:1.65;max-width:60ch}
.acc-banner .acc-banner-num{
  font-family:var(--font-heading);font-weight:800;font-size:2.6rem;
  color:#3BE886;line-height:1;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width:1040px){
  /* Aside drops below the content and stops sticking. */
  .plisting-grid{grid-template-columns:1fr;gap:0}
  .penq{position:static;margin-top:8px}
  .plisting-main > section:first-child{padding-top:24px}
}
@media (max-width:860px){
  /* 5 facts in a 2-col grid leaves a dead cell on the last row — let the
     final fact span the full width so no empty panel shows. */
  .prop-facts{grid-template-columns:1fr 1fr}
  .prop-fact:last-child{grid-column:1 / -1}
  .feat-cols{grid-template-columns:1fr}
  .acc-grid{grid-template-columns:1fr}
  .plisting-head h1{font-size:1.7rem}
  .acc-banner{padding:26px}
  /* Gallery stacks: feature on top, thumbs in a scrollable row beneath. */
  .pgal{grid-template-columns:1fr;gap:8px}
  .pgal-side{grid-template-rows:none;gap:8px}
  .pgal-row{gap:8px}
  /* Stacked: thumbs no longer mirror the feature height, so give them a shape. */
  .pgal-thumb{height:auto;aspect-ratio:4/3}
}
@media (max-width:560px){
  .prop-grid{grid-template-columns:1fr}
  .prop-next{padding:26px 20px}
  .pgal-main{aspect-ratio:4/3}
  .pgal-all{right:10px;bottom:10px;padding:8px 12px;font-size:.76rem}
  .lb-prev{left:8px}.lb-next{right:8px}
  .lb-close{top:10px;right:10px}
}


/* --- "How it works" on the vacancies hub: fixed 3-across grid ------------
   interior.css uses auto-fit for .steps-grid site-wide; this section is
   explicitly 3 columns so the 6 steps read as a tidy 3 x 2 block. */
#how-it-works .steps-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#how-it-works .step-card{height:100%}
@media (max-width:900px){#how-it-works .steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){#how-it-works .steps-grid{grid-template-columns:1fr}}
