/* ============================================
   PURAVANKARA — PROJECT PAGE CSS
   ============================================ */

/* ── Hero Spec Strip ── */
.spec-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 243, 236, 0.9); /* Ivory transparent */
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-gold-border);
  padding: 1.5rem 0;
}

.spec-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}

.spec-strip__item {
  position: relative;
  padding: 0 1rem;
}

.spec-strip__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--color-gold-border);
}

.spec-strip__value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.spec-strip__label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  text-transform: uppercase;
}

/* ── Floor Plan Tabs ── */
.tabs__nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--color-gold-border);
  margin-bottom: 2rem;
}

.tabs__btn {
  background: none;
  border: none;
  font-family: var(--font-label);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
}

.tabs__btn.active {
  color: var(--color-gold);
  font-weight: 600;
}

.tabs__btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
}

.tabs__panel {
  display: none;
}

.tabs__panel.active {
  display: block;
  animation: fadeIn var(--transition-base);
}

/* ── Amenities Grid ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.amenity-card {
  background: var(--color-white);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  padding: 2rem 1rem;
  text-align: center;
  transition: all var(--transition-base);
}

.amenity-card:hover {
  background: var(--color-gold-pale);
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.amenity-card svg {
  width: 32px;
  height: 32px;
  fill: var(--color-gold);
  margin-bottom: 1rem;
}

.amenity-card span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-charcoal);
}

/* ── Price Table ── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-gold-border);
}

.price-table th {
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.25rem 1rem;
  text-align: left;
}

.price-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-gold-border);
  font-family: var(--font-body);
  color: var(--color-charcoal);
}

.price-table tr:nth-child(even) td {
  background: var(--color-ivory);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 4, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ── Sticky Lead Bar ── */
.sticky-lead {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
}

.sticky-lead__btn {
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  padding: 1rem 0.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-label);
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: 4px 0 0 4px;
}

.sticky-lead__panel {
  width: 0;
  overflow: hidden;
  background: var(--color-white);
  border-left: 1px solid var(--color-gold);
  transition: width var(--transition-base);
  padding: 0;
}

.sticky-lead.open .sticky-lead__panel {
  width: 320px;
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .spec-strip__grid { grid-template-columns: 1fr 1fr; }
  .tabs__nav { overflow-x: auto; white-space: nowrap; }
  .sticky-lead { display: none; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
