/* --- BRANDING & VARIABLES --- */
:root {
    --primary-blue: #ffd700;
    --accent-blue: #e8f2fa;
    --text-dark: #1e1e1e;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --light-bg: #f5f7fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- HEADER --- */
.navbar {
    background-color: var(--primary-blue);
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #fff !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-icon {
    color: white;
    font-size: 1.4rem;
    margin-left: 15px;
    cursor: pointer;
}

/* --- STEP 1: HERO SECTION STYLES --- */
.hero-section {
    padding-top: 50px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.hero-heading {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.hero-subheading {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #333;
    display: flex;
    align-items: center;
}

.check-icon {
    color: var(--success-green);
    margin-right: 12px;
    font-size: 1.1rem;
}

.hero-illustration {
    width: 100%;
    max-width: 550px;
    display: block;
    margin-top: 20px;
    min-height: 250px;
    background: url('https://placehold.co/600x350/e8f2fa/005ca8?text=Peace+Realty+Illustration') no-repeat center center;
    background-size: contain;
    border-radius: 10px;
}

/* Form Card */
.property-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: block;
}

/* Pills & Chips */
.pill-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.custom-pill {
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 20px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-pill:hover { background-color: #f8f9fa; }

.custom-pill.active {
    background-color: var(--accent-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.radio-group {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}
.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.chip {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #555;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover { border-color: #999; }

.chip.active {
    border-color: var(--primary-blue);
    background-color: white;
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--primary-blue);
}

.more-link {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 25px;
}

.form-control {
    border-radius: 4px;
    padding: 10px;
    border: 1px solid #ccc;
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

.login-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--text-muted);
}

.btn-cta {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 20px;
    border: none;
}
.btn-cta:hover { background-color: #d8b600; color: white; }

/* --- STEP 2: LOCATION PAGE STYLES --- */
.location-section {
    min-height: calc(100vh - 60px);
}

/* Sidebar Left (Stepper) */
.sidebar-left {
    background: white;
    padding: 30px;
    border-right: 1px solid #eee;
    min-height: calc(100vh - 60px);
}

.stepper-wrapper {
    margin-bottom: 40px;
    position: relative;
}

/* Vertical Line */
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 30px;
    left: 11px;
    width: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.step-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ccc;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    padding-top: 0px;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.edit-link {
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

/* Completed Step */
.step-item.completed .step-marker {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-size: 1rem;
}

/* Active Step */
.step-item.active .step-marker {
    border-color: var(--primary-blue);
    background: white;
}
.step-item.active .step-marker::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
}
.step-item.active .step-title {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Property Score */
.property-score-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}
.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#28a745 27%, #e0e0e0 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.score-circle span {
    background: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.score-title { font-weight: 700; font-size: 0.9rem; }
.score-text { font-size: 0.75rem; color: var(--text-muted); }

/* Center Content */
.content-center {
    padding: 40px;
}
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}
.form-heading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-subheading {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.form-label-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Right Sidebar */
.sidebar-right {
    background: #f9f9f9;
    padding: 40px 30px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.map-illustration {
    background: #e9ecef;
    height: 150px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
}
.info-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.info-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.help-box {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .sidebar-left, .sidebar-right {
        display: none !important;
    }
    .content-center {
        padding: 20px;
    }
}

/* =========================================================
   ADMIN SIDEBAR + TABLE (ADDED)
   ========================================================= */

/* ===== LAYOUT ===== */
.admin-content {
    margin-left: 240px;
    padding: 25px;
    width: auto;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.admin-sidebar {
    width: 240px;
    background: #1e1e1e;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    padding-top: 15px;
    z-index: 1000;
    transition: 0.3s ease;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.08);
    color: var(--primary-blue);
}

.admin-sidebar i {
    font-size: 1.1rem;
}

/* ===== TABLE SCROLL ===== */


/* ===== MOBILE SIDEBAR ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {

    .admin-sidebar {
        left: -240px;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-content {
        margin-left: 0;
        padding: 15px;
        width: 100%;
    }
    
    /* Fix filter row on mobile */
    .admin-content .row.g-2 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .admin-content .row.g-2 > [class*='col-'] {
        padding-left: 4px;
        padding-right: 4px;
    }
}


.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.table-scroll table {
    min-width: 1200px;
}

/* ADMIN TABLE – MOBILE FIX */
@media (max-width: 768px) {

  .table-scroll {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .table-scroll table {
    display: table;
    min-width: 1100px;
  }

  /* hide mobile cards completely */
  .property-card-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .admin-content .form-control,
  .admin-content select {
    width: 100%;
    font-size: 0.9rem;
  }

  .admin-content .btn-cta {
    width: 100%;
  }
}

/* Ensure navbar is always clickable */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100; /* higher than sidebar + overlay */
}

.sidebar-overlay {
    z-index: 1050;
}


.pill-group input[type="radio"] {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 32px;
  border: 0.50px solid #ddd;
  border-radius: 40%;
  cursor: pointer;
  margin-right: 8px;
  font-weight: 500;
}

.pill-group input[type="radio"]:checked + .pill {
  border-color: #f2c200;
  background: #fff8dc;
}



/* ===============================
   BLOG MODULE (ISOLATED STYLES)
================================ */
.blog-hero-section {
  background: linear-gradient(140deg, #0f1720 0%, #1e2a34 45%, #334451 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blog-hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(253,253,150,0.22) 0%, rgba(253,253,150,0) 70%);
  pointer-events: none;
}

.blog-chip {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.blog-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.blog-hero-subtitle {
  color: rgba(255,255,255,0.85);
  max-width: 760px;
}

.blog-search-box {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.blog-search-box .form-control {
  border: none;
}

.blog-listing-section {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 60%);
}

.blog-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef1f4;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,32,0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(15,23,32,0.12);
}

.blog-media-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.blog-media {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #f2f4f7;
}

.blog-media-placeholder {
  font-size: 34px;
  color: #b5bfca;
}

.blog-card-body {
  padding: 18px;
}

.blog-card-body .blog-media-link {
  margin: 10px 0 14px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #647180;
}

.blog-meta i {
  margin-right: 4px;
}

.blog-card-title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card-title a,
.blog-related-title a {
  color: #111;
}

.blog-card-title a:hover,
.blog-related-title a:hover {
  color: #000;
  text-decoration: underline;
}

.blog-card-excerpt {
  color: #5f6c79;
  font-size: 0.95rem;
  line-height: 1.65;
  min-height: 74px;
}

.blog-reactions span {
  color: #556371;
  font-size: 0.9rem;
}

.blog-read-link {
  font-weight: 600;
  color: #111;
}

.blog-read-link:hover {
  color: #444;
}

.blog-empty-card {
  border: 1px solid #e8edf2;
  border-radius: 14px;
  background: #fff;
  padding: 34px;
}

.blog-pagination .page-link {
  color: #222;
  border-color: #e3e8ed;
}

.blog-pagination .page-item.active .page-link {
  background: #fdfd96;
  border-color: #fdfd96;
  color: #111;
}

.blog-detail-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.blog-detail-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  border: 1px solid #e9edf1;
  box-shadow: 0 14px 30px rgba(15,23,32,0.07);
}

.blog-back-link {
  color: #52606d;
  font-weight: 500;
}

.blog-back-link:hover {
  color: #111;
}

.blog-detail-title {
  margin-top: 10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.2;
}

.blog-detail-meta {
  margin-top: 14px;
}

.blog-detail-media {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 18px;
  background: #f4f6f8;
}

.blog-content {
  color: #1e2933;
  line-height: 1.85;
  font-size: 1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 22px;
  margin-bottom: 12px;
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.blog-comment-form,
.blog-comment-item {
  border: 1px solid #e7ecf1;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.blog-comment-item + .blog-comment-item {
  margin-top: 12px;
}

.blog-related-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  background: #fff;
  height: 100%;
}

.blog-related-media {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f2f4f7;
}

.blog-related-title {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .blog-detail-card {
    padding: 18px;
  }

  .blog-media {
    height: 210px;
  }
}
