/* PropNest - Real Estate Platform CSS */
/* Inspired by 99acres with a modern, premium Indian aesthetic */

:root {
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FF6B6B;
  --secondary: #1D3557;
  --secondary-light: #457B9D;
  --accent: #F4A261;
  --accent-warm: #E76F51;
  --bg-cream: #FDF8F5;
  --bg-light: #F8F9FA;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A6A;
  --text-muted: #8888AA;
  --border: #E8E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.06);
}

.nav-post-btn {
  margin-left: 8px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-post-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-outline-sm {
  padding: 8px 18px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-solid-sm {
  padding: 8px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  border: 1.5px solid var(--primary);
}

.btn-solid-sm:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-user-btn:hover {
  border-color: var(--primary);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  animation: dropIn 0.2s ease;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-mid);
  font-size: 0.9rem;
  transition: var(--transition);
}

.user-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.logout-link {
  color: var(--primary) !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-dark);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── HERO ─────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1D3557 0%, #457B9D 50%, #1D3557 100%);
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 900px;
  margin: auto;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 8px;
}

.search-tab {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
}

.search-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap .s-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input-wrap input,
.search-input-wrap select {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px 0 38px;
  font-size: 0.93rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  outline: none;
  background: var(--white);
  transition: var(--transition);
}

.search-input-wrap input:focus,
.search-input-wrap select:focus {
  border-color: var(--primary);
}

.search-btn {
  padding: 0 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.stat span {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ── SECTION LAYOUT ─────────────────────── */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--bg-cream);
}

.container {
  max-width: 1320px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1rem;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all:hover {
  text-decoration: underline;
}

/* ── PROPERTY TYPE CARDS ─────────────────── */
.prop-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.prop-type-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.prop-type-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.prop-type-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.prop-type-card .label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.prop-type-card .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── PROPERTY CARDS ─────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.15);
}

.card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F4FD, #D6EAF8);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
  transform: scale(1.06);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #E8F0FE, #D2E3FC);
}

.card-image-placeholder .prop-icon {
  font-size: 3.5rem;
}

.card-image-placeholder .prop-name {
  color: var(--secondary-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: #1D3557;
  color: var(--white);
}

.badge-rent {
  background: var(--primary);
  color: var(--white);
}

.badge-lease {
  background: #2D6A4F;
  color: var(--white);
}

.badge-featured {
  background: var(--accent);
  color: var(--white);
}

.card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-save:hover,
.card-save.saved {
  color: var(--primary);
}

.card-body {
  padding: 18px;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.card-price span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.card-specs {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.spec i {
  color: var(--secondary-light);
  font-size: 0.75rem;
}

/* ── FILTERS BAR ─────────────────────────── */
.filters-bar {
  background: var(--white);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filters-inner {
  max-width: 1320px;
  margin: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
}

.filter-select {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-select:focus {
  border-color: var(--primary);
}

.filter-results {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── PROPERTY LISTING PAGE ─────────────── */
.listing-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: 100vh;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: calc(68px + 72px);
  height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.filter-option span {
  font-size: 0.88rem;
  color: var(--text-mid);
}

.price-range {
  display: flex;
  gap: 8px;
}

.price-range input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-body);
}

.price-range input:focus {
  border-color: var(--primary);
}

.listing-content {
  padding: 24px;
  background: var(--bg-light);
}

/* ── PROPERTY DETAIL PAGE ─────────────── */
.detail-hero {
  position: relative;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 568px;
}

.gallery-main {
  grid-row: 1 / 3;
  background: #e0e8f0;
  position: relative;
  overflow: hidden;
}

.gallery-thumb {
  background: #d0dce8;
  position: relative;
  overflow: hidden;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #E8F0FE, #D2E3FC);
  color: var(--secondary-light);
  font-size: 0.85rem;
}

.gallery-placeholder .icon {
  font-size: 3rem;
}

.detail-content {
  max-width: 1320px;
  margin: auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.detail-main {}

.detail-sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 160px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px 0;
}

.detail-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.detail-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.spec-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.spec-item .s-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.spec-item .s-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-item .s-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

.detail-section {
  margin: 32px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.detail-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-tag {
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.amenity-tag i {
  color: var(--secondary-light);
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  margin-bottom: 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: var(--white);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.owner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.owner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.owner-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.owner-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.verified-badge {
  color: #2D6A4F;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── AUTH PAGES ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: linear-gradient(145deg, #1D3557, #457B9D);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '🏡';
  font-size: 300px;
  position: absolute;
  opacity: 0.05;
  bottom: -40px;
  right: -40px;
}

.auth-visual h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-align: center;
  max-width: 340px;
}

.auth-visual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}

.auth-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.auth-stat strong {
  display: block;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-stat span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
}

.auth-form-box .logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-form-box h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-form-box .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  color: var(--text-dark);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-form {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-form:hover {
  background: var(--primary-dark);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.role-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.role-card:hover {
  border-color: var(--primary);
}

.role-card.selected {
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
}

.role-card .r-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.role-card .r-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.role-card .r-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── POST PROPERTY ─────────────────────── */
.post-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.post-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 6px;
}

.post-page>p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.post-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card h2 .step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.type-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.type-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.type-option:hover {
  border-color: var(--primary);
}

.type-option.selected {
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
}

.type-option input {
  display: none;
}

.type-option .icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.type-option .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.photo-upload-area:hover {
  border-color: var(--primary);
  background: rgba(230, 57, 70, 0.02);
}

.photo-upload-area .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.photo-upload-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
}

.listing-type-btns {
  display: flex;
  gap: 10px;
}

.listing-type-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.listing-type-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
}

.amenity-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.amenity-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
}

.amenity-check:hover {
  border-color: var(--primary);
}

.amenity-check input {
  accent-color: var(--primary);
}

.amenity-check span {
  font-size: 0.84rem;
}

/* ── DASHBOARD ─────────────────────────── */
.dashboard-layout {
  max-width: 1320px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.dash-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.dash-user {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.dash-user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.dash-user-name {
  font-weight: 700;
  font-size: 1rem;
}

.dash-user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}

.dash-nav a:hover,
.dash-nav a.active {
  background: rgba(230, 57, 70, 0.06);
  color: var(--primary);
}

.dash-content {}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .s-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-display);
}

.stat-card .s-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.stat-card .s-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ── ADMIN TABLE ─────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dark);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-light);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active {
  background: #D4EDDA;
  color: #155724;
}

.status-inactive {
  background: #F8D7DA;
  color: #721C24;
}

.status-sold {
  background: #D1ECF1;
  color: #0C5460;
}

.action-btns {
  display: flex;
  gap: 6px;
}

.btn-xs {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit {
  background: #E8F4FD;
  color: var(--secondary-light);
}

.btn-delete {
  background: #FDECEA;
  color: var(--primary);
}

/* ── TOASTS ─────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast-success {
  background: #1B4332;
  color: var(--white);
}

.toast-error {
  background: #7F1D1D;
  color: var(--white);
}

.toast-info {
  background: var(--secondary);
  color: var(--white);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── ALERTS ─────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.alert-error {
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

.alert-info {
  background: #D1ECF1;
  color: #0C5460;
  border: 1px solid #BEE5EB;
}

/* ── PAGINATION ─────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.pagination a {
  border: 1.5px solid var(--border);
  color: var(--text-mid);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: var(--white);
  border: none;
}

/* ── EMPTY STATE ─────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-sidebar-card {
    position: static;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero {
    padding: 48px 16px 64px;
  }

  .search-row {
    flex-direction: column;
  }

  .hero-stats {
    gap: 20px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 250px;
    height: 250px;
  }

  .gallery-thumb {
    display: none;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-page {
    margin: 20px auto;
  }
}


/* ===============================
   FOOTER STYLES — PropNest
================================= */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 20px 0;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand Section */

.footer-logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #38bdf8;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #94a3b8;
}

/* Social Icons */

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border-radius: 50%;
  color: #cbd5e1;
  transition: 0.3s ease;
  font-size: 14px;
}

.footer-social a:hover {
  background: #38bdf8;
  color: #fff;
  transform: translateY(-3px);
}

/* Links Section */

.footer-links h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
  transition: 0.3s ease;
}

.footer-links ul li a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

/* Footer Bottom */

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}


/* ===============================
   TABLET RESPONSIVE
================================= */

@media (max-width: 992px) {

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }

}


/* ===============================
   MOBILE RESPONSIVE
================================= */

@media (max-width: 576px) {

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links ul li a:hover {
    padding-left: 0;
  }

}