/* ==========================================================================
   JIM CORBETT - INNER PAGES (MATCHES JUNGLE GREEN SOFT NEO-BRUTALIST BENTO)
   Loaded exclusively when $currentPage !== 'index.php'. Zero sidebars.
   Uses exact site palette (--brand-green, --brand-forest, --bento-bg, --nb-*),
   Plus Jakarta Sans + Inter, 2px solid #000 borders & solid offset shadows.
   ========================================================================== */

@property --ip-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --ip-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --ip-emerald: var(--brand-green-dark, #15803D);
  --ip-font-display: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  --ip-hairline: #000000;
  --ip-radius-lg: 20px;
  --ip-shadow-soft: var(--nb-shadow, 5px 5px 0 #000000);
  --ip-header-h: 94.5px;
}

@media (max-width: 991.98px) {
  :root {
    --ip-header-h: 84.5px;
  }
}

body.ip-body {
  background-color: var(--bento-bg, #F6FAF4);
  color: #000000;
  font-family: var(--font-body, "Inter", sans-serif);
}

.ip-main {
  position: relative;
  color: #000000;
}

.ip-main :is(h1, h2, h3, h4) {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  color: #000000;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ip-main p,
.ip-main li {
  font-size: clamp(0.97rem, 0.95rem + 0.12vw, 1.03rem);
  font-weight: 500;
  line-height: 1.2;
  color: #111814;
}

.ip-prose {
  max-inline-size: 70ch;
}

/* Signature Neo-Brutalist Eyebrow Pill Badge */
.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nb-sage, #DCFCE7);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-block-end: 12px;
}

.ip-band--dark .ip-eyebrow {
  background: var(--brand-green, #22C55E);
  color: #000000;
  border-color: #000000;
  box-shadow: 2px 2px 0 #000000;
}

.ip-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-block-end: 2rem;
}

.ip-section-head h2,
#overview h2 {
  position: relative;
  padding-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #000000;
}

.ip-section-head h2::after,
#overview h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 5px;
  background: var(--brand-green, #22C55E);
  border: 1.5px solid #000000;
  border-radius: 999px;
}

.ip-band--dark .ip-section-head h2 {
  color: #FFFFFF;
}

.ip-section-sub {
  max-inline-size: 64ch;
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: #111814;
}

.ip-band--dark .ip-section-sub {
  color: #E2EFE7;
}

.ip-main section[id],
.ip-main div[id] {
  scroll-margin-top: calc(var(--ip-header-h) + 74px);
}

/* ==========================================================================
   1. READING PROGRESS BAR
   ========================================================================== */
.ip-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3.5px;
  z-index: 1100;
  background: var(--brand-green, #22C55E);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes ip-grow-progress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }

    .ip-progress {
      animation: ip-grow-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ip-progress {
    display: none;
  }
}

/* ==========================================================================
   2. CLEAN BREADCRUMB SUB-BANNER: PAGE IMAGE IN BG + TITLE FIRST + NAV SECOND
   ========================================================================== */
.ip-banner {
  position: relative;
  background-color: var(--brand-forest, #0E2417);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  border-bottom: 3px solid #000000;
  text-align: center;
  color: #FFFFFF;
}

.ip-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.ip-banner h1 {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.95rem, 3.6vw, 2.95rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF !important;
  margin: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.ip-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(14, 36, 23, 0.86);
  border: 2px solid var(--brand-green, #22C55E);
  box-shadow: 3px 3px 0 #000000;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
}

.ip-breadcrumb a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.14s ease;
}

.ip-breadcrumb a:hover {
  color: var(--brand-green, #22C55E);
}

.ip-breadcrumb .ip-bc-sep {
  font-size: 0.7rem;
  color: var(--brand-green, #22C55E);
}

.ip-breadcrumb [aria-current="page"] {
  color: var(--brand-green, #22C55E);
}

/* ==========================================================================
   3. BENTO BUTTONS MATCHING THEME (2px solid #000 + 3px offset shadow)
   ========================================================================== */
.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0 #000000;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ip-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000000;
}

.ip-btn-primary,
.ip-btn-primary:hover {
  background: var(--brand-green, #22C55E);
  color: #000000;
}

.ip-btn-dark,
.ip-btn-dark:hover {
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
}

.ip-btn-ghost,
.ip-btn-ghost:hover {
  background: #FFFFFF;
  color: #000000;
}

.ip-btn-outline {
  background: #FFFFFF;
  color: #000000;
}

.ip-btn-outline:hover {
  background: var(--brand-green, #22C55E);
  color: #000000;
}

/* ==========================================================================
   4. STICKY HORIZONTAL CHAPTER NAV (NO SIDEBAR)
   ========================================================================== */
.ip-subnav {
  position: sticky;
  top: var(--ip-header-h);
  z-index: 950;
  background: rgba(249, 252, 248, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2.5px solid #000000;
  box-shadow: 0 4px 14px rgba(14, 36, 23, 0.08);
}

.ip-subnav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-target-group: auto;
  scroll-padding-inline: 2.2rem;
  --fade-size: 2.2rem;
  padding-block: 8px;
}

.ip-subnav-links::-webkit-scrollbar {
  display: none;
}

@supports (animation-timeline: scroll()) {
  @keyframes ip-reveal-fade-start { to { --ip-fade-start: 2.2rem; } }
  @keyframes ip-hide-fade-end { from { --ip-fade-end: 2.2rem; } }

  .ip-subnav-links {
    mask:
      linear-gradient(black, black) no-clip subtract,
      linear-gradient(to right, black, transparent) 0 0 / var(--ip-fade-start) 100% no-repeat no-clip,
      linear-gradient(to right, transparent, black) 100% 0 / var(--ip-fade-end) 100% no-repeat no-clip;
    animation: ip-reveal-fade-start linear both, ip-hide-fade-end linear both;
    animation-timeline: scroll(self inline);
    animation-range: 0 2.2rem, calc(100% - 2.2rem) 100%;
  }
}

.ip-subnav-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 800;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ip-subnav-link:hover {
  background: var(--nb-sage, #DCFCE7);
  border-color: #000000;
}

.ip-subnav-link:is(:target-current, .target-current) {
  background: var(--brand-green, #22C55E);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
}

/* ==========================================================================
   5. FULL-WIDTH THEME BANDS, OVERVIEW & FIELD DOSSIER
   ========================================================================== */
.ip-band {
  padding-block: clamp(2.6rem, 4.5vw, 4rem);
}

.ip-band--white { background: #FFFFFF; }
.ip-band--cream { background: var(--bento-bg, #F6FAF4); }
.ip-band--sage  { background: var(--nb-cream, #F1F8EC); }
.ip-band--sand  { background: #FFFFFF; }

.ip-band--dark {
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
  border-block: 3px solid #000000;
}

.ip-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 3.5vw, 2.8rem);
  align-items: start;
}

.ip-narrative h3 {
  font-size: 1.24rem;
  margin: 1.65rem 0 0.65rem;
}

.ip-callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  background: var(--nb-mint, #BBF7D0);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  color: #000000;
  font-weight: 700;
}

.ip-dossier {
  background: #FFFFFF;
  border: 2.5px solid #000000;
  border-radius: 22px;
  box-shadow: var(--nb-shadow-lg, 7px 7px 0 #000000);
  overflow: hidden;
}

@media (min-width: 992px) {
  .ip-dossier {
    position: sticky;
    top: calc(var(--ip-header-h) + var(--ip-subnav-h, 54px) + 16px);
  }
}

.ip-dossier-head {
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
  border-bottom: 2.5px solid #000000;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ip-dossier-head h3 {
  color: #FFFFFF !important;
  font-size: 1.04rem;
  margin: 0;
}

.ip-dossier-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  background: var(--brand-green, #22C55E);
  color: #000000;
  border: 1.5px solid #000000;
  padding: 4px 10px;
  border-radius: 999px;
}

.ip-dossier-list {
  list-style: none;
  margin: 0;
  padding: 8px 20px 14px;
}

.ip-dossier-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ip-dossier-list li:last-child {
  border-bottom: none;
}

.ip-dl-k {
  color: #374151;
  font-weight: 700;
  flex-shrink: 0;
}

.ip-dl-v {
  color: #000000;
  font-weight: 800;
  text-align: end;
}

.ip-dossier-foot {
  padding: 4px 20px 20px;
}

/* ==========================================================================
   6. ACCESSIBLE TABS MATCHING THEME BENTO CONTAINERS
   ========================================================================== */
.ip-tabs-wrap {
  background: #FFFFFF;
  border: 2.5px solid #000000;
  border-radius: 22px;
  box-shadow: var(--nb-shadow-lg, 7px 7px 0 #000000);
  overflow: hidden;
}

.ip-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  padding: 12px 18px 0;
  background: var(--nb-cream, #F1F8EC);
  border-bottom: 2px solid #000000;
}

.ip-tablist::-webkit-scrollbar {
  display: none;
}

.ip-tab-btn {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 13px;
  background: #FFFFFF;
  border: 2px solid #000000;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #000000;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease;
}

.ip-tab-btn:hover {
  background: var(--nb-sage, #DCFCE7);
}

.ip-tab-btn[aria-selected="true"] {
  background: var(--brand-green, #22C55E);
  color: #000000;
}

.ip-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid #000000;
}

.ip-tabpanel-inner {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.ip-tab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.ip-tab-facts {
  background: var(--nb-sage, #DCFCE7);
  border: 2px solid #000000;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000000;
  padding: 18px 20px;
}

.ip-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ip-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
  color: #000000;
}

.ip-check-list i {
  color: var(--brand-green-dark, #15803D);
  margin-top: 4px;
  flex-shrink: 0;
}

.ip-cross-list i {
  color: #B91C1C;
}

/* ==========================================================================
   7. RESPONSIVE DATA TABLES (CONTAINER QUERIES + STICKY HEADERS)
   ========================================================================== */
.ip-table-wrap {
  background: #FFFFFF;
  border: 2.5px solid #000000;
  border-radius: 20px;
  box-shadow: var(--nb-shadow-lg, 7px 7px 0 #000000);
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80vh);
  container-type: inline-size;
}

.ip-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: start;
  font-size: 0.93rem;
  font-weight: 600;
}

.ip-table caption {
  caption-side: top;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: #000000;
  text-align: start;
  background: var(--nb-mint, #BBF7D0);
  border-bottom: 2px solid #000000;
}

.ip-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.ip-table thead th {
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 2.5px solid var(--brand-green, #22C55E);
  white-space: nowrap;
}

.ip-table tbody th,
.ip-table tbody td {
  padding: 14px 18px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
  vertical-align: top;
  color: #000000;
}

.ip-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: #F6FAF4;
  font-weight: 800;
}

.ip-table tbody tr:hover td,
.ip-table tbody tr:hover th {
  background: var(--nb-sage, #DCFCE7);
}

@container (width < 600px) {
  .ip-table,
  .ip-table caption,
  .ip-table thead,
  .ip-table tbody,
  .ip-table tr,
  .ip-table th,
  .ip-table td {
    display: block;
    width: 100%;
  }

  .ip-table caption {
    box-sizing: border-box;
  }

  .ip-table thead {
    display: none;
  }

  .ip-table tbody tr {
    margin: 12px;
    border: 2px solid #000000;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 3px 3px 0 #000000;
  }

  .ip-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--brand-forest, #0E2417);
    color: #FFFFFF;
    padding: 11px 14px;
  }

  .ip-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  }

  .ip-table tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--brand-green-dark, #15803D);
    margin-inline-end: 6px;
  }
}

/* ==========================================================================
   8. BENTO CARDS (MINT / SAGE / MIST ROTATION), DARK CARDS, TIMELINE & GALLERY
   ========================================================================== */
.ip-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ip-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ip-card {
  background: #FFFFFF;
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--nb-shadow, 5px 5px 0 #000000);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ip-cards-3 > .ip-card:not(.p-0):nth-child(3n + 1) { background: var(--nb-mint, #BBF7D0); }
.ip-cards-3 > .ip-card:not(.p-0):nth-child(3n + 2) { background: var(--nb-sage, #DCFCE7); }
.ip-cards-3 > .ip-card:not(.p-0):nth-child(3n + 3) { background: var(--nb-mist, #E0F2FE); }

.ip-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow-lg, 7px 7px 0 #000000);
}

.ip-dark-card {
  background: #143623;
  border: 2px solid var(--brand-green, #22C55E);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--brand-green, #22C55E);
  padding: 22px;
  color: #FFFFFF;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ip-dark-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--brand-green, #22C55E);
}

.ip-dark-card h3 {
  color: #FFFFFF !important;
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.ip-dark-card p {
  color: #E5EFE9 !important;
  font-size: 0.93rem !important;
  margin: 0;
}

.ip-dark-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-green, #22C55E);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Route / Trail Stepper */
.ip-timeline {
  display: grid;
  gap: 14px;
}

.ip-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #FFFFFF;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #000000;
  padding: 18px 20px;
}

.ip-step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-green, #22C55E);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  font-family: var(--font-heading);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Strip & Lightbox Thumbnails */
.ip-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ip-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  aspect-ratio: 4 / 3;
  background: var(--brand-forest);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ip-photo-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
}

.ip-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ip-photo-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(14, 36, 23, 0.9), transparent);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: start;
}

/* Gallery Page Grid + Filters */
.ip-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 1.75rem;
}

.ip-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  background: #FFFFFF;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.ip-filter-btn:hover {
  background: var(--nb-sage, #DCFCE7);
}

.ip-filter-btn[aria-pressed="true"] {
  background: var(--brand-green, #22C55E);
  color: #000000;
}

.ip-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.ip-gallery-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-forest);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
}

.ip-gallery-tile[hidden] {
  display: none;
}

/* ==========================================================================
   9. HORIZONTAL BOOKING STUDIO & POST-INTERACTION FORM VALIDATION
   ========================================================================== */
.ip-booking-box {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  background: #FFFFFF;
  border: 2.5px solid #000000;
  border-radius: 22px;
  box-shadow: var(--nb-shadow-lg, 7px 7px 0 #000000);
  overflow: hidden;
}

.ip-booking-aside {
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
  border-right: 2.5px solid #000000;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.ip-booking-aside h2,
.ip-booking-aside h3 {
  color: #FFFFFF !important;
}

.ip-booking-aside p,
.ip-booking-aside li {
  color: #FFFFFF !important;
}

.ip-booking-aside .ip-check-list i {
  color: var(--brand-green, #22C55E);
}

.ip-booking-form-wrap {
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.ip-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ip-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.ip-field--full {
  grid-column: 1 / -1;
}

.ip-field label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #000000;
  padding: 6px 0;
  margin: -6px 0;
}

.ip-field .ip-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4B5563;
  margin-bottom: 2px;
}

.ip-field :is(input, select, textarea) {
  font: inherit;
  font-size: max(1rem, 1em);
  font-weight: 600;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #000000;
  background: #FFFFFF;
  color: #000000;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (pointer: coarse) {
  .ip-field :is(input, select, textarea) {
    min-height: 52px;
  }
}

.ip-field textarea {
  min-height: 108px;
  resize: vertical;
}

.ip-field :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-green, #22C55E);
  outline-offset: 2px;
}

.ip-error-msg {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #B91C1C;
  margin-top: 3px;
}

.ip-field :is(:user-invalid, .user-invalid-fallback) {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.ip-field :is(:user-invalid, .user-invalid-fallback) + .ip-error-msg {
  display: block;
}

.ip-field :is(:user-valid, .user-valid-fallback) {
  border-color: var(--brand-green-dark, #15803D);
}

/* ==========================================================================
   10. NATIVE ACCESSIBLE FAQ ACCORDION MATCHING .faq-item IN style.css
   ========================================================================== */
.ip-faq-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 1.6rem;
}

.ip-faq-toggle-all[aria-expanded="true"] .ip-lbl-expand,
.ip-faq-toggle-all[aria-expanded="false"] .ip-lbl-collapse {
  display: none;
}

.ip-faq-list {
  display: grid;
  gap: 12px;
}

.ip-faq-item {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 3px 3px 0 #000000;
  overflow: hidden;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.ip-faq-item[open] {
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0 var(--brand-green, #22C55E);
}

.ip-faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: #000000;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.ip-faq-item > summary::-webkit-details-marker {
  display: none;
}

.ip-faq-item > summary:hover {
  background: var(--bento-bg, #F6FAF4);
}

.ip-faq-item > summary::before {
  content: "";
  inline-size: 1.05em;
  block-size: 1.05em;
  flex-shrink: 0;
  background-color: #000000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M3.5 6L8 10.5L12.5 6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M3.5 6L8 10.5L12.5 6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.ip-faq-item[open] > summary::before {
  rotate: 0deg;
}

.ip-faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.ip-faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ip-faq-item > summary::before {
    transition: rotate 0.2s ease;
  }

  .ip-faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.ip-faq-ans {
  padding: 0 20px 18px 46px;
}

.ip-faq-ans p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #000000;
}

/* ==========================================================================
   11. NATIVE TOP-LAYER LIGHTBOX <dialog>
   ========================================================================== */
.ip-lightbox {
  border: 2.5px solid #000000;
  border-radius: 20px;
  background: var(--brand-forest, #0E2417);
  color: #FFFFFF;
  padding: 0;
  max-width: min(94vw, 980px);
  max-height: 92vh;
  margin: auto;
  box-shadow: 8px 8px 0 var(--brand-green, #22C55E);
}

.ip-lightbox:modal {
  overscroll-behavior: contain;
}

.ip-lightbox::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(8, 22, 14, 0.88);
  backdrop-filter: blur(8px);
}

.ip-lb-frame {
  display: flex;
  flex-direction: column;
}

.ip-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 2px solid #000000;
}

.ip-lb-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0;
}

.ip-lb-close,
.ip-lb-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  background: #FFFFFF;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ip-lb-close:hover,
.ip-lb-nav-btn:hover {
  background: var(--brand-green, #22C55E);
  color: #000000;
}

.ip-lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08160E;
  padding: 14px;
}

.ip-lb-stage img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.ip-lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
}

@media (prefers-reduced-motion: no-preference) {
  .ip-reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), translate 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ip-reveal.is-in {
    opacity: 1;
    translate: none;
  }
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS & PHONE VIEW POLISH
   ========================================================================== */
.ip-main section,
.ip-overview-grid > *,
.ip-tab-grid > *,
.ip-booking-box > *,
.ip-cards-3 > *,
.ip-cards-2 > *,
.ip-faq-list > *,
.ip-tabs-wrap,
.ip-table-wrap,
.ip-booking-box,
.ip-dossier,
.ip-card,
.ip-dark-card,
.ip-step-card,
.ip-faq-item {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .ip-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ip-overview-grid,
  .ip-tab-grid,
  .ip-booking-box,
  .ip-cards-3,
  .ip-cards-2 {
    grid-template-columns: 1fr;
  }
  .ip-booking-aside {
    border-right: 0;
    border-bottom: 2.5px solid #000000;
  }
}

@media (max-width: 575.98px) {
  .ip-form-grid,
  .ip-photo-grid {
    grid-template-columns: 1fr;
  }

  /* Compact Hero Breadcrumb Banner */
  .ip-banner {
    padding-block: 1.65rem 1.85rem;
  }
  .ip-banner-inner {
    gap: 0.65rem;
  }
  .ip-banner h1 {
    font-size: clamp(1.38rem, 5.5vw, 1.75rem);
    overflow-wrap: anywhere;
  }
  .ip-breadcrumb {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.38;
    gap: 5px 7px;
    max-width: 100%;
    box-shadow: 2px 2px 0 #000000;
  }

  /* Compact KPI Strip & Email Wrapping */
  .ip-body .bento-trust-strip {
    padding: 1.1rem 0 0.45rem;
  }
  .ip-body .bento-trust-grid {
    gap: 8px;
  }
  .ip-body .bento-trust-tile {
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
    border-radius: 13px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-body .bento-trust-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 9px;
  }
  .ip-body .bento-trust-val {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ip-body .bento-trust-lbl {
    font-size: 0.72rem;
  }

  /* Compact Subnav Tabs & Panel Tabs */
  .ip-subnav-links {
    padding-block: 6px;
    gap: 4px;
  }
  .ip-subnav-link {
    padding: 5px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
  }
  .ip-tabs-wrap {
    border-radius: 16px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-tablist {
    padding: 8px 10px 0;
    gap: 5px;
  }
  .ip-tab-btn {
    padding: 8px 11px 10px;
    font-size: 0.79rem;
    gap: 6px;
    border-radius: 10px 10px 0 0;
  }
  .ip-tabpanel-inner {
    padding: 14px;
  }
  .ip-tab-facts {
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
  }

  /* Compact Cards, Bands, Dossiers & Stacked Table */
  .ip-band {
    padding-block: 1.65rem;
  }
  .ip-section-head {
    margin-block-end: 1.1rem;
    gap: 8px;
  }
  .ip-section-head h2,
  #overview h2 {
    font-size: 1.38rem;
    padding-bottom: 8px;
    margin-bottom: 0.4rem;
  }
  .ip-card,
  .ip-dark-card,
  .ip-step-card,
  .ip-callout {
    padding: 14px;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-dossier {
    border-radius: 16px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-dossier-head {
    padding: 12px 14px;
  }
  .ip-dossier-list {
    padding: 4px 14px 8px;
  }
  .ip-dossier-list li {
    padding: 8px 0;
    font-size: 0.84rem;
    gap: 10px;
  }
  .ip-dl-v {
    overflow-wrap: anywhere;
  }
  .ip-dossier-foot {
    padding: 2px 14px 14px;
  }
  .ip-cards-3,
  .ip-cards-2,
  .ip-timeline,
  .ip-overview-grid,
  .ip-tab-grid {
    gap: 12px;
  }
  .ip-table-wrap {
    border-radius: 16px;
    box-shadow: 3px 3px 0 #000000;
    max-block-size: none;
  }
  .ip-table caption {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .ip-table tbody tr {
    margin: 10px;
  }

  /* Compact Mobile Booking Studio Form */
  .ip-booking-box {
    border-radius: 16px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-booking-aside {
    padding: 14px;
    gap: 10px;
  }
  .ip-booking-aside h2 {
    font-size: 1.28rem;
    margin-bottom: 6px;
  }
  .ip-booking-aside p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .ip-booking-aside .ip-check-list {
    gap: 5px;
    margin-top: 8px !important;
  }
  .ip-booking-aside .ip-check-list li {
    font-size: 0.8rem;
    line-height: 1.36;
  }
  .ip-booking-aside .d-flex {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .ip-booking-aside .ip-btn {
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: 0.78rem;
    min-height: 38px;
  }
  .ip-booking-form-wrap {
    padding: 14px;
  }
  .ip-form-grid {
    gap: 9px;
  }
  .ip-field label {
    font-size: 0.8rem;
    padding: 2px 0;
    margin: -2px 0;
  }
  .ip-field .ip-hint {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-bottom: 1px;
  }
  .ip-field :is(input, select, textarea) {
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 10px;
  }
  .ip-field textarea {
    min-height: 76px;
  }
  .ip-booking-form-wrap button[type="submit"] {
    width: 100%;
    min-height: 42px;
    font-size: 0.86rem;
  }

  /* Compact FAQ Accordion */
  .ip-faq-header {
    margin-block-end: 0.9rem;
    gap: 8px;
  }
  .ip-faq-header h2 {
    font-size: 1.32rem !important;
  }
  .ip-faq-toggle-all {
    padding: 6px 12px;
    min-height: 36px;
    font-size: 0.78rem;
  }
  .ip-faq-list {
    gap: 8px;
  }
  .ip-faq-item {
    border-radius: 12px;
    box-shadow: 3px 3px 0 #000000;
  }
  .ip-faq-item[open] {
    box-shadow: 3px 3px 0 var(--brand-green, #22C55E);
  }
  .ip-faq-item > summary {
    padding: 10px 12px;
    font-size: 0.86rem;
    line-height: 1.36;
    gap: 8px;
    overflow-wrap: anywhere;
  }
  .ip-faq-ans {
    padding: 0 12px 10px 30px;
  }
  .ip-faq-ans p {
    font-size: 0.84rem;
    line-height: 1.48;
  }
}
