/* =========================================================
   SHREE JI LIBRARY — WARM NEUMORPHISM (SOFT UI) SYSTEM
   ========================================================= */

:root {
  --bg-base: #F3EEE8;
  --surface: #F3EEE8;
  --shadow-light: #FFFFFF;
  --shadow-dark: #D6CEC2;

  --neu-extruded: -6px -6px 14px var(--shadow-light), 6px 6px 14px var(--shadow-dark);
  --neu-extruded-sm: -4px -4px 9px var(--shadow-light), 4px 4px 9px var(--shadow-dark);
  --neu-inset: inset -4px -4px 8px var(--shadow-light), inset 4px 4px 8px var(--shadow-dark);

  --accent-rose: #C47368;
  --accent-rose-hover: #B06055;
  --accent-sage: #6E8F7A;
  --accent-amber: #C98A3D;
  --accent-red: #B8524C;
  --accent-muted: #9D938A;

  --text-primary: #2D2723;
  --text-secondary: #6E645C;

  --font-heading: "Lora", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.25;
}

a {
  color: var(--accent-rose);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 0.45rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

/* Neumorphic Surfaces & Buttons */
.neu-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-extruded);
  padding: 1.5rem;
}

.neu-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--neu-inset);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.neu-input:focus {
  box-shadow: var(--neu-inset), 0 0 0 2px rgba(196, 115, 104, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--accent-rose);
  color: #FFFFFF;
  box-shadow: -4px -4px 10px var(--shadow-light), 4px 4px 12px rgba(176, 96, 85, 0.35);
}

.btn-primary:hover {
  background: var(--accent-rose-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-soft {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--neu-extruded-sm);
}

.btn-soft:hover {
  color: var(--accent-rose);
}

.btn-soft:active {
  box-shadow: var(--neu-inset);
}

.btn-sage {
  background: var(--accent-sage);
  color: #FFFFFF;
  box-shadow: var(--neu-extruded-sm);
}

.btn-danger {
  background: var(--accent-red);
  color: #FFFFFF;
  box-shadow: var(--neu-extruded-sm);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--surface);
  box-shadow: var(--neu-extruded-sm);
}

.pill-rose {
  color: var(--accent-rose);
}

.pill-sage {
  color: var(--accent-sage);
}

.accent-text {
  color: var(--accent-rose);
}

.sage-text {
  color: var(--accent-sage);
}

/* =========================================================
   STICKY TOP BAR & BOOK-OPENING ANIMATED MENU ICON
   ========================================================= */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(243, 238, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 206, 194, 0.45);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--neu-extruded-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-rose);
  font-size: 1.05rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-rose);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.desktop-nav {
  display: none;
  gap: 1.6rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--accent-rose);
}

/* Book-Opening Menu Button — Higher z-index than Slide-out Drawer */
/* Book-Opening Menu Button (Default Closed -> Tap to Open) */
.book-menu-btn {
  position: relative;
  z-index: 1200;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  border: none;
  background: var(--surface);
  box-shadow: var(--neu-extruded-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: box-shadow 0.25s ease;
}

.book-menu-btn.is-open {
  box-shadow: var(--neu-inset);
}

.book-icon {
  position: relative;
  width: 30px;
  height: 22px;
  perspective: 180px;
  /* Closed state mein book button ke exact center mein rahegi */
  transform: translateX(-7px);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Open hone par spine exact center mein aa jayega */
.book-menu-btn.is-open .book-icon {
  transform: translateX(0);
}

/* Right Page (Cover ke neeche) */
.book-page-right {
  position: absolute;
  top: 1px;
  left: 15px;
  width: 14px;
  height: 20px;
  border-radius: 1px 3px 3px 1px;
  border: 1.5px solid var(--accent-rose);
  border-left: 1px solid #964E44;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(110, 100, 92, 0.35) 3px,
      rgba(110, 100, 92, 0.35) 4.5px
    ),
    #FFFDF9;
  background-origin: content-box;
  padding: 3px 2.5px;
  /* Closed book ke side mein white pages ki thickness dikhane ke liye */
  box-shadow: 2px 1px 0 #FFFFFF, 3px 1px 0 #C5B9AB;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.book-menu-btn.is-open .book-page-right {
  box-shadow: none;
}

/* Front Cover (Default Band -> Tap par Left ko 3D Open hoga) */
.book-cover {
  position: absolute;
  top: 1px;
  left: 15px;
  width: 14px;
  height: 20px;
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Band Book ka Front Cover */
.book-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px 3px 3px 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-rose) 0%,
    var(--accent-rose) 28%,
    #F3EEE8 28%,
    #F3EEE8 38%,
    var(--accent-rose) 38%,
    var(--accent-rose) 100%
  );
  border-left: 3px solid #964E44;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Khulne par Left Page (Cover ke peeche ka hissa) */
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px 1px 1px 3px;
  border: 1.5px solid var(--accent-rose);
  border-right: 1px solid #964E44;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(110, 100, 92, 0.35) 3px,
      rgba(110, 100, 92, 0.35) 4.5px
    ),
    #FFFDF9;
  background-origin: content-box;
  padding: 3px 2.5px;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Tap State: Book Khul Jayegi */
.book-menu-btn.is-open .book-cover {
  transform: rotateY(-165deg);
}

/* Slide-Out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(45, 39, 35, 0.32);
  backdrop-filter: blur(3px);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(310px, 84vw);
  height: 100dvh;
  z-index: 1050;
  background: var(--bg-base);
  box-shadow: -8px 0 24px rgba(45, 39, 35, 0.14);
  padding: 5.5rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Jab side panel khula ho toh piche ka home page scroll nahi hoga */
body.drawer-open {
  overflow: hidden;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-secondary);
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}

.drawer-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.drawer-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.96rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.drawer-link:hover {
  box-shadow: var(--neu-inset);
  color: var(--accent-rose);
}

.admin-subtle-link {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* =========================================================
   1. HERO SECTION WITH SEAMLESS BOTTOM GRADIENT MASK
   ========================================================= */
.hero-section {
  padding: 2.5rem 0 1.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  order: -1;
}

/* Seamless Bottom Dissolve into #F3EEE8 (No Hard Border or Box Edge) */
.hero-image-mask-box {
  position: relative;
  width: min(460px, 100%);
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.hero-image-mask-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 238, 232, 0) 58%, #F3EEE8 100%);
}

.hero-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================================================
   2. AMENITIES, TIMINGS, PRICING & RULES
   ========================================================= */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.amenity-card {
  padding: 1.35rem;
}

.amenity-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--neu-inset);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.amenity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.amenity-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.timings-panel {
  margin-top: 1.75rem;
  text-align: center;
}

.timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.timing-pill {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-inset);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timing-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-rose);
  font-weight: 700;
}

/* Pricing Table */
.table-card {
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.table-responsive {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(214, 206, 194, 0.55);
  font-size: 0.92rem;
}

.pricing-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.price-cell {
  font-weight: 700;
  color: var(--accent-rose);
  white-space: nowrap;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.rule-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}

.rule-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.rule-card li + li {
  margin-top: 0.45rem;
}

/* =========================================================
   3. INTERACTIVE STRICT 1:1 SQUARE FLOOR MAP
   ========================================================= */
.map-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.35rem;
}

.control-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--neu-inset);
  gap: 4px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: var(--accent-rose);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(196, 115, 104, 0.35);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-available { background: var(--accent-sage); }
.dot-pending { background: var(--accent-amber); }
.dot-booked { background: var(--accent-red); }

/* Strict 1:1 Equal Width & Height Architectural Container */
.floor-map-shell {
  width: min(680px, 100%);
  margin: 0 auto;
}

.floor-map-board {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-extruded);
  padding: clamp(8px, 2vw, 18px);
  display: grid;
  grid-template-columns: 18% 1fr 16%;
  grid-template-rows: 42% 11% 37% 10%;
  gap: clamp(5px, 1.1vw, 10px);
  position: relative;
  user-select: none;
}

.arch-zone {
  background: var(--bg-base);
  border-radius: clamp(8px, 1.5vw, 14px);
  box-shadow: var(--neu-inset);
  padding: clamp(4px, 1vw, 10px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.arch-label {
  font-size: clamp(0.56rem, 1.55vw, 0.78rem);
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.03em;
}

.vertical-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Grid Placement of Every Architectural Zone */
.zone-washroom {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.zone-main-hall {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  justify-content: space-between;
  align-items: stretch;
}

.zone-lunch {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
}

.zone-corridor {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  flex-direction: row;
  justify-content: space-between;
  padding-inline: clamp(6px, 1.5vw, 14px);
  box-shadow: none;
  border: 1.5px dashed rgba(110, 100, 92, 0.35);
}

.zone-study-room {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  justify-content: space-between;
  align-items: stretch;
  border: 2px solid rgba(110, 100, 92, 0.35);
}

.zone-stairs {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  justify-content: space-between;
}

.zone-balcony {
  grid-column: 1 / 4;
  grid-row: 4 / 5;
  border-top: 1.5px dashed rgba(110, 100, 92, 0.35);
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.58rem, 1.5vw, 0.78rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.zone-sub-tag {
  font-size: clamp(0.52rem, 1.3vw, 0.7rem);
  color: var(--accent-rose);
  font-weight: 700;
}

/* Main Hall: 8 Seats Top, Table Bar, 7 Seats Bottom */
.hall-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(3px, 0.8vw, 6px);
}

.seat-row {
  display: grid;
  gap: clamp(3px, 0.7vw, 6px);
}

.seat-row-8 {
  grid-template-columns: repeat(8, 1fr);
}

.seat-row-7 {
  grid-template-columns: repeat(7, 1fr);
  padding-inline: 4%;
}

.study-table-bar {
  text-align: center;
  font-size: clamp(0.5rem, 1.25vw, 0.68rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(214, 206, 194, 0.45);
  border-radius: 6px;
  padding: clamp(2px, 0.5vw, 5px) 0;
}

/* Corridor & Door Badges */
.corridor-text {
  font-size: clamp(0.5rem, 1.2vw, 0.68rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.door-badge {
  font-size: clamp(0.46rem, 1.15vw, 0.64rem);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-rose);
  color: #FFFFFF;
  white-space: nowrap;
}

.door-inner {
  background: var(--text-primary);
}

.door-balcony {
  position: absolute;
  bottom: 2px;
  left: 6px;
  background: var(--accent-sage);
  font-size: clamp(0.42rem, 1.05vw, 0.58rem);
  padding: 1px 5px;
}

/* Study Room 9 Perimeter Seats (Left 3, Top 3, Right 3 around open center) */
.room-perimeter-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(3px, 0.7vw, 6px);
  padding-bottom: clamp(10px, 2.2vw, 18px);
}

.room-center-aisle {
  grid-column: 2 / 5;
  grid-row: 2 / 4;
  border-radius: 8px;
  background: rgba(214, 206, 194, 0.25);
  display: grid;
  place-items: center;
  font-size: clamp(0.48rem, 1.2vw, 0.64rem);
  color: var(--text-secondary);
  font-weight: 600;
}

/* Stairs Graphic */
.stair-lines {
  width: 100%;
  flex: 1;
  margin-top: 4px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(110, 100, 92, 0.3) 0px,
    rgba(110, 100, 92, 0.3) 2px,
    transparent 2px,
    transparent 10px
  );
}

/* Individual Interactive Seat Tiles */
.seat-tile {
  border: none;
  border-radius: clamp(5px, 1vw, 9px);
  font-family: var(--font-body);
  font-size: clamp(0.52rem, 1.35vw, 0.74rem);
  font-weight: 700;
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  line-height: 1;
}

.seat-available {
  background: var(--accent-sage);
  color: #FFFFFF;
  box-shadow: -2px -2px 5px var(--shadow-light), 2px 2px 5px rgba(110, 143, 122, 0.4);
}

.seat-available:hover {
  transform: scale(1.07);
}

.seat-pending {
  background: var(--accent-amber);
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.92;
}

.seat-booked {
  background: var(--accent-red);
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.9;
}

.seat-maintenance {
  background: var(--accent-muted);
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.8;
}

/* =========================================================
   4. FREE NCERT BOOKS SECTION
   ========================================================= */
.ncert-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ncert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-field .neu-input {
  width: auto;
  min-width: 150px;
  padding: 0.55rem 0.9rem;
}

.ncert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.book-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.book-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-inset);
  color: var(--text-secondary);
}

.book-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.book-actions {
  display: flex;
  gap: 0.6rem;
}

.book-actions .btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
}

/* =========================================================
   5. GALLERY & LOCATION
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.gallery-card {
  padding: 0.75rem;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery-caption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0.6rem 0.2rem 0.1rem;
  text-align: center;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.map-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--neu-inset);
  height: 290px;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(214, 206, 194, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 0.3rem;
}

.footer-tagline {
  color: var(--accent-rose);
  font-weight: 600;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.footer-address, .footer-phone, .footer-note {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0.3rem 0;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li + li {
  margin-top: 0.45rem;
}

.footer-links-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links-col a:hover {
  color: var(--accent-rose);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(214, 206, 194, 0.45);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

/* =========================================================
   MODALS, FORMS & TOAST
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(45, 39, 35, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(490px, 100%);
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
}

.privacy-modal-card {
  width: min(600px, 100%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  box-shadow: var(--neu-extruded-sm);
  font-size: 1.35rem;
  color: var(--text-primary);
  cursor: pointer;
}

.stage-stepper {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding-right: 2.2rem;
}

.step-dot {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-inset);
  color: var(--text-secondary);
}

.step-dot.active {
  background: var(--accent-rose);
  color: #FFFFFF;
  box-shadow: none;
}

.seat-summary-bar {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-inset);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500 !important;
  font-size: 0.84rem !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.22rem;
  accent-color: var(--accent-rose);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.inline-text-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  color: var(--accent-rose);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.form-error {
  color: var(--accent-red);
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0.4rem 0 0.85rem;
}

.hold-timer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(201, 138, 61, 0.16);
  color: #8A5A1E;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.payment-amount-box {
  text-align: center;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-inset);
  margin-bottom: 1rem;
}

.payment-amount-box span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.payment-amount-box strong {
  font-size: 1.8rem;
  color: var(--accent-rose);
}

.qr-container {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.qr-container img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: var(--radius-md);
  padding: 0.6rem;
  background: #FFFFFF;
  box-shadow: var(--neu-extruded-sm);
}

.qr-placeholder {
  width: 200px;
  height: 120px;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-inset);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.upi-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-inset);
  margin-bottom: 1rem;
}

.upi-id-text {
  font-weight: 700;
  font-size: 0.9rem;
  word-break: break-all;
}

.stage-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.privacy-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.privacy-body h4 {
  font-size: 0.98rem;
  margin: 1rem 0 0.35rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(45, 39, 35, 0.25);
}

/* =========================================================
   ADMIN PANEL EXTENSIONS
   ========================================================= */
.admin-shell {
  padding: 2rem 0 4rem;
}

.admin-login-card {
  width: min(420px, 92%);
  margin: 10vh auto;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.queue-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.queue-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
}

.status-available { background: var(--accent-sage); }
.status-pending { background: var(--accent-amber); }
.status-booked { background: var(--accent-red); }
.status-maintenance { background: var(--accent-muted); }

.admin-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-seat-card {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-extruded-sm);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.15s ease;
}

.admin-seat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-rose);
}

.admin-seat-num {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.35rem;
}

.mini-slots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.due-soon {
  color: var(--accent-amber);
  font-weight: 700;
}

.overdue {
  color: var(--accent-red);
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
/* Mobile par Image Upar aur Text Neeche (Single Full-Width Column) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1.75rem;
}

.hero-visual-wrapper {
  order: -1;
}

/* Sirf Laptop/Desktop (860px se badi screen) par 2 Columns */
@media (min-width: 860px) {
  .desktop-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 3rem;
  }

  .hero-visual-wrapper {
    order: 0;
  }

  .location-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
/* Netlify floating badge hide */
iframe[src*="netlify"],
iframe[title*="Netlify"],
div[id*="netlify"],
a[href*="netlify.com"][style*="fixed"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}