/* ══════════════════════════════════════════════════════════════════════
   style.css — Universal stylesheet for all inner pages
   (properties, property-detail, about, contact, blogs, admin)
   NOTE: navbar.css already covers: reset, body, navbar, hero, footer
   This file adds everything else the inner pages need.
   ══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   1. PAGE HEADER BANNER
   Used on: properties, about, contact, blogs pages (replaces hero)
   ────────────────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2e2e50 100%);
  padding: 60px 20px 50px;
  text-align: center;
  color: #ffffff;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────
   2. BREADCRUMB
   Used on: property-detail
   ────────────────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #1a1a2e;
}

.breadcrumb span {
  color: #1a1a2e;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────────────
   3. PROPERTIES SECTION (all pages — grid, cards, filters, pagination)
   Shared: index.php, properties.php, blogs.php
   ────────────────────────────────────────────────────────────────────── */

/* Already in navbar.css: .properties-section, .properties-container,
   .properties-header, .properties-title, .filter-tabs, .filter-btn,
   .properties-grid, .property-card, .card-*, .view-more-wrap, .btn-view-more */

/* Inner pages get extra top padding (no hero above them) */
.properties-page {
  padding-top: 56px;
}

/* No-results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 0.95rem;
}

.no-results a {
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e8;
  background: #ffffff;
  color: #555;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s ease;
}

.page-btn:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
  background: #f0f0f7;
}

.page-btn.active {
  background: #1a1a2e;
  color: #ffffff;
  border-color: #1a1a2e;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────
   4. PROPERTY DETAIL PAGE
   Used on: property-detail.php
   ────────────────────────────────────────────────────────────────────── */
.property-detail-section {
  padding: 48px 20px 80px;
  background: #f8f9fb;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.detail-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.detail-image-wrap .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.8rem;
  padding: 5px 14px;
}

.detail-info {
  position: sticky;
  top: 90px;
}

.detail-info .card-location {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.detail-info .card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  display: block;
  margin-bottom: 16px;
}

.detail-info .card-features {
  gap: 16px;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.detail-info .card-features span {
  font-size: 0.88rem;
}

.detail-description {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

/* ──────────────────────────────────────────────────────────────────────
   5. ENQUIRY / CONTACT FORM
   Used on: property-detail.php, contact.php
   ────────────────────────────────────────────────────────────────────── */
.enquiry-form {
  background: #ffffff;
  border: 1px solid #e8e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.enquiry-form h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e8;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1a1a2e;
  background: #fafafa;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: #1a1a2e;
  background: #ffffff;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 90px;
}

.enquiry-form .btn-explore {
  width: 100%;
  justify-content: center;
  background: #1a1a2e;
  color: #ffffff;
  padding: 13px 24px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.enquiry-form .btn-explore:hover {
  background: #2e2e50;
  transform: translateY(-1px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ──────────────────────────────────────────────────────────────────────
   6. CONTACT PAGE
   Used on: contact.php
   ────────────────────────────────────────────────────────────────────── */
.contact-section {
  padding: 60px 20px 80px;
  background: #f8f9fb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e8e8f0;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info-item i {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-top: 2px;
  flex-shrink: 0;
  width: 22px;
}

.contact-info-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────
   7. ABOUT PAGE — Stats bar
   Used on: about.php
   ────────────────────────────────────────────────────────────────────── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e8e8f0;
  border-radius: 14px;
  padding: 28px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: #888;
}

/* ──────────────────────────────────────────────────────────────────────
   8. BLOG PAGE
   Uses .properties-grid / .property-card from navbar.css
   Extra blog-specific styles below
   ────────────────────────────────────────────────────────────────────── */
.blog-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 6px;
  display: block;
}

.blog-excerpt {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.7;
  margin-top: 8px;
}

.blog-read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  border-bottom: 1.5px solid #1a1a2e;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.blog-read-more:hover {
  opacity: 0.65;
}

/* ──────────────────────────────────────────────────────────────────────
   9. SITE FOOTER (for pages that use footer.php)
   Different from the homepage's .footer class in navbar.css
   ────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #ccc;
  padding: 56px 20px 0;
}

.site-footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.site-footer .footer-brand .nav-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer .footer-brand .nav-logo span {
  color: #ffffff;
}

.site-footer .footer-brand .nav-logo img {
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.82rem;
  color: #8892a0;
  line-height: 1.7;
  max-width: 260px;
}

.site-footer .footer-links h4,
.site-footer .footer-contact h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.site-footer .footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: #8892a0;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

.site-footer .footer-contact p {
  font-size: 0.82rem;
  color: #8892a0;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-contact i {
  color: #ffffff;
  width: 14px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #6b7280;
}

/* ──────────────────────────────────────────────────────────────────────
   10. SHARED UTILITY CLASSES
   ────────────────────────────────────────────────────────────────────── */

/* Section title variant (centered, dark background) */
.section-title-centered {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.92rem;
  color: #888;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Alert / success message box */
.alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Generic inner page container (matches properties-container width) */
.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

/* ══════════════════════════════════════════════════════════════════════
   11. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .property-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-info {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Mobile (≤620px) ── */
@media (max-width: 620px) {
  .property-detail-section {
    padding: 32px 16px 60px;
  }

  .contact-section {
    padding: 40px 16px 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .enquiry-form {
    padding: 22px 18px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .page-banner {
    padding: 44px 16px 36px;
  }

  .pagination {
    gap: 6px;
  }

  .page-btn {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

/* ── Small phones (≤400px) ── */
@media (max-width: 400px) {
  .contact-info-item {
    padding: 16px 14px;
  }
}
