/* =============================================
   VARMA HOMES – Project Detail Page Styles
   Shared by queens-gateway.html & kovilakom.html
   ============================================= */

/* ---- DETAIL PAGE HERO ---- */
.dp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.dp-hero-slides {
  position: relative;
  height: calc(100dvh - 100px);
  min-height: 580px;
  overflow: hidden;
}

.dp-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.85s ease;
}
.dp-slide.active { opacity: 1; z-index: 1; animation: kenburns 8s ease-out forwards; }

.dp-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}

.dp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.dp-slide-btn.prev { left: 20px; }
.dp-slide-btn.next { right: 20px; }
.dp-slide-btn:hover { background: var(--rose); border-color: var(--rose); }

.dp-slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.dp-dot.active { background: var(--rose); width: 24px; border-radius: 4px; }

/* Hero content overlay */
.dp-hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 80px;
  pointer-events: none;
}
.dp-hero-content > * { pointer-events: auto; }

.dp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.dp-back:hover { color: var(--rose); }

.dp-hero-left .section-tag { margin-bottom: 12px; }

.dp-hero-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.dp-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.dp-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.dp-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 16px;
}
.dp-fact > i { font-size: 1.1rem; color: var(--gold); flex-shrink: 0; }
.dp-fact strong { display: block; font-size: 0.95rem; color: #fff; font-weight: 700; }
.dp-fact span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.6); }

.dp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Side form */
.dp-hero-form {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  overflow-y: auto;
  max-height: calc(100dvh - 140px);
}
.dp-hero-form h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.4;
}
.dp-hero-form h3 span { color: var(--rose); }
.dp-hero-form .lead-form .form-group { margin-bottom: 10px; }
.dp-hero-form .lead-form input,
.dp-hero-form .lead-form select { padding: 10px 14px; font-size: 0.84rem; }

/* ---- SECTION BASE ---- */
.dp-section { padding: 80px 0; }
.dp-section:nth-child(even) { background: var(--dark-2); }
.dp-section:nth-child(odd) { background: var(--dark); }

/* ---- OVERVIEW ---- */
.dp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.dp-overview-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}
.dp-overview-text p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 14px; }

.dp-highlights-box {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.dp-highlights-box h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-highlights { display: flex; flex-direction: column; gap: 10px; }
.dp-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.dp-highlights li:last-child { border-bottom: none; }
.dp-highlights li i { color: var(--rose); font-size: 0.8rem; flex-shrink: 0; }

/* RERA badge */
.dp-rera-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-top: 20px;
}
.dp-rera-badge > i { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.dp-rera-badge strong { display: block; color: var(--gold); font-size: 0.85rem; }
.dp-rera-badge span { display: block; font-size: 0.72rem; color: var(--text-muted); }

/* Additional info */
.dp-additional-info { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.dp-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.dp-info-item i { color: var(--rose); font-size: 0.9rem; flex-shrink: 0; }
.dp-info-item strong { display: block; font-size: 0.85rem; color: var(--text-primary); }
.dp-info-item span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- TABLE ACTION BUTTON ---- */
.dp-table-btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.dp-table-btn:hover { background: var(--rose-dark); }

/* ---- AMENITIES GRID ---- */
.dp-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dp-amenity {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
}
.dp-amenity:hover { border-color: var(--rose); transform: translateY(-4px); }
.dp-am-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  background: rgba(237,49,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--rose);
  transition: var(--transition);
}
.dp-amenity:hover .dp-am-icon { background: var(--rose); color: #fff; }
.dp-amenity h5 { font-size: 0.83rem; font-weight: 600; color: var(--text-primary); }

/* ---- LOCATION — see updated block below ---- */

/* ---- GALLERY ---- */
.dp-gallery { background: var(--dark-2) !important; }
.dp-gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 320px 220px;
  gap: 10px;
}
/* Main large image spans 2 rows on the left */
.dp-gallery-main {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
/* Right column spans both rows */
.dp-gallery-side {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dp-gallery-side .dp-gallery-thumb { flex: 1; }
/* Bottom row thumbnails */
.dp-gallery-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
/* Bottom 3 thumbs fill the second row */
.dp-gallery-grid > .dp-gallery-thumb:nth-child(3) { grid-row: 2; grid-column: 1; }
.dp-gallery-grid > .dp-gallery-thumb:nth-child(4) { grid-row: 2; grid-column: 1; }
.dp-gallery-grid > .dp-gallery-thumb:nth-child(5) { grid-row: 2; grid-column: 2; }

/* Simplify: use a cleaner separate grid for bottom row */
.dp-gallery-grid {
  display: grid;
  grid-template-areas:
    "main side"
    "b1   b2   ";
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 300px 200px;
  gap: 10px;
}
.dp-gallery-main  { grid-area: main; }
.dp-gallery-side  { grid-area: side; display: flex; flex-direction: column; gap: 10px; }
.dp-gallery-side .dp-gallery-thumb { flex: 1; min-height: 0; }
/* Bottom row — 3 thumbs across full width */
.dp-gallery-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.dp-gallery-main:hover img,
.dp-gallery-thumb:hover img { transform: scale(1.04); }
.dp-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dp-gallery-main:hover .dp-gallery-overlay,
.dp-gallery-thumb:hover .dp-gallery-overlay { opacity: 1; }
.dp-gallery-overlay span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(237,49,90,0.85);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---- LOCATION (stacked: centered header → boxes grid → full map) ---- */
.dp-location-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dp-location-grid .section-header { margin-bottom: 0; }
.dp-location-grid .section-header p { max-width: 640px; }
.dp-location-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dp-location-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  transition: var(--transition);
}
.dp-location-list li:hover {
  border-color: var(--rose);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(237,49,90,0.12);
}
.dp-location-list li > i {
  width: 44px;
  height: 44px;
  background: rgba(237,49,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--rose);
  flex-shrink: 0;
  transition: var(--transition);
}
.dp-location-list li:hover > i {
  background: var(--rose);
  color: #fff;
}
.dp-location-list li strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.dp-location-list li span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.dp-location-list li div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* Full-width map below location content */
.dp-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}
.dp-map-wrap iframe {
  width: 100%;
  height: 420px;
  display: block;
}

/* ---- CONTACT SECTION ---- */
.dp-contact-section {
  background: linear-gradient(135deg, var(--dark), #150508) !important;
  border-top: 1px solid var(--border-rose);
}
.dp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.dp-contact-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  line-height: 1.2;
}
.dp-contact-left p { color: var(--text-secondary); margin-bottom: 28px; line-height: 1.8; }
.dp-contact-btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.dp-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
  text-decoration: none;
}
.dp-contact-item:hover { border-color: var(--rose); }
.dp-contact-item i { font-size: 1.2rem; color: var(--rose); flex-shrink: 0; }
.dp-contact-item strong { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.dp-contact-item span { color: var(--text-primary); font-size: 0.92rem; font-weight: 500; }

/* ---- FOOTER ---- */
.dp-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.dp-footer-inner { text-align: center; }
.dp-footer-inner .footer-logo { justify-content: center; margin-bottom: 10px; display: flex; }
.dp-footer-inner .footer-logo .site-logo-img { height: 38px; }
.dp-footer-inner > p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 16px; }
.dp-footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.dp-footer-links a { font-size: 0.83rem; color: var(--text-muted); transition: var(--transition); }
.dp-footer-links a:hover { color: var(--rose); }
.dp-footer-note { font-size: 0.72rem; color: var(--text-muted); line-height: 1.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .dp-hero-content { grid-template-columns: 1fr; padding: 40px 32px 100px; }
  .dp-hero-form { display: none; }
  .dp-overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .dp-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .dp-amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .dp-gallery-grid { grid-template-rows: 260px 180px; }
}

@media (max-width: 768px) {
  .dp-hero-slides { height: calc(100dvh - 100px); min-height: 480px; }
  .dp-hero-content { padding: 32px 20px 90px; }
  .dp-hero-left h1 { font-size: 2.2rem; }
  .dp-hero-sub { font-size: 0.92rem; }
  .dp-quick-facts { gap: 8px; }
  .dp-fact { padding: 8px 12px; }
  .dp-fact strong { font-size: 0.85rem; }
  .dp-hero-ctas { flex-direction: column; gap: 8px; }
  .dp-hero-ctas .btn { width: 100%; justify-content: center; }
  .dp-section { padding: 56px 0; }
  .dp-amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  /* Gallery: single column on mobile */
  .dp-gallery-grid {
    grid-template-areas: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .dp-gallery-main { height: 240px; }
  .dp-gallery-side { flex-direction: row; height: 160px; }
  .dp-gallery-bottom { grid-template-columns: 1fr 1fr; height: 140px; }
  .dp-gallery-bottom .dp-gallery-thumb:last-child { display: none; }
  /* Location: 2 col boxes on mobile */
  .dp-location-list { grid-template-columns: repeat(2, 1fr); }
  .dp-map-wrap iframe { height: 300px; }
  body { padding-bottom: 62px; }
}

@media (max-width: 480px) {
  .dp-hero-left h1 { font-size: 1.9rem; }
  .dp-quick-facts { flex-direction: column; gap: 8px; }
  .dp-fact { width: 100%; }
  .dp-amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-amenity { padding: 20px 12px; }
  .dp-amenity h5 { font-size: 0.75rem; }
  .dp-location-list { grid-template-columns: 1fr; }
  .dp-gallery-side { flex-direction: column; height: auto; }
  .dp-gallery-side .dp-gallery-thumb { height: 150px; }
  .dp-gallery-bottom { grid-template-columns: 1fr; height: auto; }
  .dp-gallery-bottom .dp-gallery-thumb { height: 150px; display: block !important; }
}
