/* ==========================================================================
   RC ESTATE & BUILDERS - Official Stylesheet
   Luxury Real Estate & Construction in Karachi, Pakistan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --primary-gold: #e5aa3b;
  --primary-gold-hover: #f7be52;
  --primary-gold-dark: #c28821;
  --gold-gradient: linear-gradient(135deg, #f5be50 0%, #d89425 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fcd273 0%, #e5a435 100%);
  --gold-soft-bg: rgba(229, 170, 59, 0.12);
  --gold-border: rgba(229, 170, 59, 0.35);

  --bg-dark-primary: #08101c;
  --bg-dark-secondary: #0c1829;
  --bg-dark-surface: #102138;
  --bg-dark-footer: #050b14;

  --bg-light-primary: #faf7f2;
  --bg-light-secondary: #f4efe6;
  --bg-light-card: #ffffff;

  --text-dark: #121a24;
  --text-muted: #5e6d7d;
  --text-light: #f8fafc;
  --text-light-muted: #cbd5e1;

  --font-heading: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-desc: 'Bebas Neue', 'Anton', sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --card-radius: 12px;
  --btn-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.14);
  --shadow-gold: 0 8px 24px rgba(229, 170, 59, 0.32);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif,
.font-heading,
.hero-title,
.page-hero-title,
.section-title,
.category-title,
.property-title,
.banner-title,
.banner-item-title,
.auth-showcase-title,
.auth-perk-title,
.auth-form-title,
.portal-card-title,
.portal-upload-title,
.modal-title {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-synthesis: none;
}

p,
.hero-subtitle,
.page-hero-subtitle,
.category-subtitle,
.section-desc,
.banner-desc,
.banner-item-desc,
.auth-showcase-desc,
.auth-perk-desc,
.auth-form-subtitle,
.portal-upload-desc,
.footer-subtext,
.stat-label,
.property-location {
  font-family: var(--font-desc);
  letter-spacing: 0.6px;
  font-synthesis: none;
}

/* Keep Menus in Original Sans Font */
.site-header,
.site-header .navbar-nav,
.site-header .navbar-nav *,
.btn-nav-add-property,
.nav-auth-btn,
.footer-nav,
.footer-nav-link,
.portal-topbar,
.portal-topbar *,
.portal-sidebar,
.portal-sidebar *,
.portal-tabs-nav,
.portal-tab-pill,
.nav-pills-gold .nav-link,
.auth-tab-switch,
.auth-tab-btn {
  font-family: var(--font-sans);
  font-synthesis: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #071e2a;
  border-bottom: 1px solid rgba(229, 170, 59, 0.15);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: #e2e8f0;
  padding: 10px 18px !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-gold);
}

.navbar-nav .nav-link.active {
  color: var(--primary-gold);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 18px;
  right: 18px;
  height: 2px;
  background-color: var(--primary-gold);
  border-radius: 2px;
}

.navbar-toggler {
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e5aa3b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-gold {
  background: var(--gold-gradient);
  color: #12151a;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--btn-radius);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 170, 59, 0.45);
}

.btn-gold i {
  transition: transform 0.2s ease;
}

.btn-gold:hover i.bi-arrow-right {
  transform: translateX(4px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--primary-gold);
  border: 1.5px solid var(--primary-gold);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--btn-radius);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-gold-outline:hover {
  background: var(--primary-gold);
  color: #0b121e;
  transform: translateY(-2px);
}

.badge-location {
  background: rgba(11, 20, 36, 0.88);
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-status {
  background: var(--gold-gradient);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  background-color: var(--bg-dark-primary);
  background-image: linear-gradient(90deg,
      rgba(8, 16, 28, 0.95) 0%,
      rgba(8, 16, 28, 0.82) 42%,
      rgba(8, 16, 28, 0.3) 75%,
      rgba(8, 16, 28, 0.15) 100%),
    url('../images/hero-villa.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 85px 0 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  color: #ffffff;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--text-light-muted);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-location-pill {
  position: absolute;
  right: 28px;
  bottom: 24px;
  background: rgba(9, 18, 30, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(229, 170, 59, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-location-pill i {
  color: var(--primary-gold);
}

/* ==========================================================================
   Unified Featured Properties & Category Section (Skyline Background)
   ========================================================================== */
.featured-properties-unified {
  position: relative;
  background-color: #faf7f2;
  background-image:
    linear-gradient(to bottom,
      rgba(253, 250, 244, 0.52) 0%,
      rgba(253, 250, 244, 0.42) 30%,
      rgba(253, 250, 244, 0.28) 65%,
      rgba(253, 250, 244, 0.05) 100%),
    url('../images/featured-properties.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 20px 0 85px;
}

@media (max-width: 1199.98px) {
  .featured-properties-unified {
    background-size: cover;
  }
}

.category-strip-unified {
  background: transparent;
  border-bottom: 1px solid rgba(220, 195, 155, 0.5);
  padding: 8px 0 24px;
  margin-bottom: 35px;
  position: relative;
}

/* Vertical divider lines between Category Cards */
.category-col-item {
  position: relative;
}

@media (min-width: 992px) {
  .category-col-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 75px;
    background: linear-gradient(to bottom,
        rgba(215, 180, 125, 0) 0%,
        rgba(215, 180, 125, 0.95) 25%,
        rgba(215, 180, 125, 0.95) 75%,
        rgba(215, 180, 125, 0) 100%);
    z-index: 2;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .category-col-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 75px;
    background: linear-gradient(to bottom,
        rgba(215, 180, 125, 0) 0%,
        rgba(215, 180, 125, 0.95) 25%,
        rgba(215, 180, 125, 0.95) 75%,
        rgba(215, 180, 125, 0) 100%);
    z-index: 2;
  }
}

.category-strip-unified .category-card {
  padding: 14px 20px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  background: transparent;
  display: block;
}

.category-strip-unified .category-card:hover {
  transform: translateY(-3px);
}

.category-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 2.2rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  color: var(--primary-gold-dark);
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.category-subtitle {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Legacy support */
.category-strip {
  background: #fbf9f4;
  border-bottom: 1px solid #ebdcc5;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Featured Properties Section (Shared styles)
   ========================================================================== */
.featured-section {
  background-color: var(--bg-light-primary);
  padding: 75px 0 85px;
}

.section-label {
  color: var(--primary-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-gold-dark);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #111a24;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.section-desc {
  color: #334155;
  font-size: 0.96rem;
  font-weight: 500;
  max-width: 580px;
  line-height: 1.6;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.view-all-link {
  color: var(--primary-gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-gold);
  transform: translateX(4px);
}

/* Property Card */
.property-card {
  background: var(--bg-light-card);
  border-radius: var(--card-radius);
  border: 1px solid #ebdcc5;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border-color: rgba(229, 170, 59, 0.6);
}

.property-thumb-wrap {
  position: relative;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  background-color: #0b1522;
  flex-shrink: 0;
}

.property-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.property-card:hover .property-thumb {
  transform: scale(1.07);
}

.property-badge-left {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.property-badge-right {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.property-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.property-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  height: 2.7em;
  min-height: 2.7em;
  max-height: 2.7em;
  color: #131c26;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.property-title a {
  color: #131c26;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.property-title a:hover {
  color: var(--primary-gold-dark);
}

.property-location {
  color: #718096;
  font-size: 0.82rem;
  line-height: 1.3;
  height: 1.3em;
  min-height: 1.3em;
  max-height: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.property-specs {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.5fr;
  align-items: center;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 4px;
  border-top: 1px solid #f0e6d6;
  border-bottom: 1px solid #f0e6d6;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: #64748b;
  gap: 4px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  text-align: center;
}

.spec-item i {
  color: var(--primary-gold-dark);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.spec-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-footer-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.btn-card-gold {
  background: var(--gold-gradient);
  color: #12151a;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: 6px;
  height: 38px;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-gold:hover {
  background: var(--gold-gradient-hover);
  color: #000;
  box-shadow: 0 6px 18px rgba(229, 170, 59, 0.35);
}

.btn-card-gold i {
  transition: transform 0.2s ease;
}

.btn-card-gold:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Construction & Investment Banners (Exact Mockup Replica)
   ========================================================================== */
.mockup-banner-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 35px 0;
}

.construction-banner {
  background-color: #0b1c26;
  background-image: url('../images/construction.jpg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  border-top: 1.5px solid #d4af37;
  border-bottom: 1.5px solid #d4af37;
  padding: 38px 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1400px) {
  .construction-banner {
    background-size: 100% 100%;
  }
}

@media (max-width: 991.98px) {
  .construction-banner {
    background-image:
      linear-gradient(to right,
        rgba(11, 28, 38, 0.96) 0%,
        rgba(11, 28, 38, 0.92) 60%,
        rgba(11, 28, 38, 0.78) 100%),
      url('../images/construction.jpg');
    background-size: cover;
  }
}

.investment-banner {
  background-color: #040d18;
  background-image: url('../images/karachi-sunset.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom: 1.5px solid #d4af37;
  padding: 38px 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1400px) {
  .investment-banner {
    background-size: 100% 100%;
  }
}

@media (max-width: 991.98px) {
  .investment-banner {
    background-image:
      linear-gradient(to right,
        rgba(4, 13, 24, 0.95) 0%,
        rgba(4, 13, 24, 0.90) 60%,
        rgba(4, 13, 24, 0.82) 100%),
      url('../images/karachi-sunset.jpg');
    background-size: cover;
  }
}

.investment-feature-col {
  border-left: 1px solid rgba(229, 170, 59, 0.22);
  padding-left: 28px;
}

@media (max-width: 991.98px) {
  .investment-feature-col {
    border-left: none;
    padding-left: 12px;
    margin-top: 20px;
  }
}

.investment-feature-col .banner-item {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.investment-feature-col .banner-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.banner-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 12px;
}

.banner-desc {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 18px;
}

.banner-feature-col {
  border-left: 1px solid rgba(229, 170, 59, 0.2);
  padding-left: 28px;
}

@media (max-width: 991.98px) {
  .banner-feature-col {
    border-left: none;
    padding-left: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

.banner-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 13px;
}

.banner-item:last-child {
  margin-bottom: 0;
}

.banner-item-icon {
  color: var(--primary-gold);
  font-size: 1.5rem;
  line-height: 1.1;
  min-width: 28px;
  text-align: center;
}

.banner-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
  line-height: 1.2;
}

.banner-item-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.35;
}

/* Construction Right Image (Full height with diagonal cut) */
.construction-visual-wrap {
  position: relative;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.construction-full-bleed {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 991.98px) {
  .construction-full-bleed {
    clip-path: none;
    border-radius: 10px;
    margin-top: 16px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #071e2a;
  color: #94a3b8;
  border-top: 2px solid rgba(229, 170, 59, 0.25);
  padding: 60px 0 25px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.footer-nav-link {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-nav-link:hover {
  color: var(--primary-gold);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 170, 59, 0.25);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-circle:hover {
  background: var(--primary-gold);
  color: #060d17;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(229, 170, 59, 0.35);
}

.footer-subtext {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: right;
}

.footer-bottom-bar {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   Internal Pages (Properties, Services, About, Contact)
   ========================================================================== */
.page-hero {
  background: var(--bg-dark-primary);
  background: linear-gradient(135deg, rgba(8, 16, 28, 0.96) 0%, rgba(12, 24, 41, 0.92) 100%),
    url('../images/hero-villa.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 65px 0 55px;
  border-bottom: 1px solid rgba(229, 170, 59, 0.2);
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 650px;
}

.breadcrumb-gold .breadcrumb-item a {
  color: var(--primary-gold);
}

.breadcrumb-gold .breadcrumb-item.active {
  color: #94a3b8;
}

/* Filter controls */
.filter-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid #ebdcc5;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 35px;
}

.form-control-custom,
.form-select-custom {
  border: 1.5px solid #ebdcc5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #1e293b;
  transition: var(--transition);
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.2);
  outline: none;
}

.nav-pills-gold .nav-link {
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 30px;
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.nav-pills-gold .nav-link.active,
.nav-pills-gold .nav-link:hover {
  background: var(--gold-gradient);
  color: #0b1320;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(229, 170, 59, 0.25);
}

/* Stats Counter */
.stat-box {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid #ebdcc5;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-gold-dark);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}

/* Contact Cards */
.contact-info-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid #ebdcc5;
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: rgba(229, 170, 59, 0.15);
  color: var(--primary-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .category-card {
    border-right: none;
    border-bottom: 1px solid #ebdcc5;
  }

  .footer-social-icons,
  .footer-subtext {
    justify-content: center;
    text-align: center;
  }

  .footer-nav {
    margin: 20px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta-group .btn-gold {
    width: 100%;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-location-pill {
    position: static;
    margin-top: 24px;
    display: inline-flex;
  }
}

.view-all-link {
  display: inline-block;
  text-decoration: none;
}

/* ==========================================================================
   Navigation Buttons (Add Property & Sign In)
   ========================================================================== */
.btn-nav-add-property {
  background: var(--gold-gradient);
  color: #0b1320 !important;
  border: none;
  border-radius: 6px;
  padding: 6px 15px !important;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(229, 170, 59, 0.28);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
}

.btn-nav-add-property:hover {
  background: var(--gold-gradient-hover);
  color: #000000 !important;
  box-shadow: 0 6px 18px rgba(229, 170, 59, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .btn-nav-add-property {
    margin-left: 0;
    margin-top: 10px;
    display: inline-flex;
    width: fit-content;
  }
}

.nav-auth-btn {
  color: var(--primary-gold) !important;
  border: 1.5px solid rgba(229, 170, 59, 0.45);
  border-radius: 6px;
  padding: 6px 16px !important;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
  transition: var(--transition);
  background: rgba(229, 170, 59, 0.06);
}

.nav-auth-btn:hover,
.nav-auth-btn.active {
  background: var(--gold-gradient) !important;
  color: #0b1320 !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(229, 170, 59, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .nav-auth-btn {
    margin-left: 0;
    margin-top: 10px;
    display: inline-flex;
    width: fit-content;
  }
}

/* ==========================================================================
   Authentication Pages (Login & Sign Up - Luxury Theme)
   ========================================================================== */
.auth-page-section {
  min-height: calc(100vh - 74px);
  background: radial-gradient(circle at 15% 15%, rgba(229, 170, 59, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(18, 55, 84, 0.3) 0%, transparent 45%),
              linear-gradient(180deg, #050d18 0%, #071524 50%, #040912 100%);
  padding: 50px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.auth-card-master {
  background: #091522;
  border: 1px solid rgba(229, 170, 59, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(229, 170, 59, 0.08);
  overflow: hidden;
  color: #f8fafc;
}

/* Left Showcase Column (Desktop) */
.auth-showcase-col {
  position: relative;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.82) 0%, rgba(5, 13, 24, 0.94) 100%),
              url('../images/luxury-villa.jpg') center/cover no-repeat;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(229, 170, 59, 0.18);
  min-height: 100%;
}

.auth-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229, 170, 59, 0.15);
  border: 1px solid rgba(229, 170, 59, 0.4);
  color: var(--primary-gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
}

.auth-showcase-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin: 18px 0 12px;
}

.auth-showcase-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-perk-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(229, 170, 59, 0.12);
  border: 1px solid rgba(229, 170, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-perk-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.auth-perk-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.4;
}

.auth-trust-box {
  background: rgba(12, 27, 43, 0.75);
  border: 1px solid rgba(229, 170, 59, 0.22);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.auth-trust-avatars {
  display: flex;
  align-items: center;
}

.auth-trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #091522;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1320;
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: -8px;
}

.auth-trust-avatar:first-child {
  margin-left: 0;
}

/* Right Form Column */
.auth-form-col {
  padding: 42px 46px;
  background: #091421;
}

@media (max-width: 576px) {
  .auth-form-col {
    padding: 28px 20px;
  }
}

.auth-tab-switch {
  display: flex;
  background: #040911;
  border: 1px solid rgba(229, 170, 59, 0.2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 26px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 7px;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.auth-tab-btn.active {
  background: var(--gold-gradient);
  color: #0b1320;
  box-shadow: 0 4px 12px rgba(229, 170, 59, 0.25);
  font-weight: 700;
}

.auth-form-header {
  margin-bottom: 22px;
}

.auth-form-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-form-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Custom Auth Inputs */
.auth-input-group {
  position: relative;
  margin-bottom: 18px;
}

.auth-input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  font-size: 1.05rem;
  pointer-events: none;
}

.auth-input-control {
  width: 100%;
  background: #0d1b2a;
  border: 1.5px solid rgba(229, 170, 59, 0.22);
  border-radius: 8px;
  padding: 10px 16px 10px 42px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.auth-input-control::placeholder {
  color: #64748b;
  font-size: 0.85rem;
}

.auth-input-control:focus {
  background: #112338;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.2);
  outline: none;
  color: #ffffff;
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1.15rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: var(--primary-gold);
  outline: none;
}

.auth-password-toggle i {
  pointer-events: none;
  transition: transform 0.15s ease;
}

.auth-password-toggle:active i {
  transform: scale(0.9);
}

/* Role Selection Grid (Sign Up) */
.auth-role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-role-option input[type="radio"] {
  display: none;
}

.auth-role-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #0d1b2a;
  border: 1px solid rgba(229, 170, 59, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.auth-role-card i {
  color: var(--primary-gold);
  font-size: 1rem;
}

.auth-role-option input[type="radio"]:checked + .auth-role-card {
  background: rgba(229, 170, 59, 0.15);
  border-color: var(--primary-gold);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(229, 170, 59, 0.2);
}

/* Checkbox & Options */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 20px;
  color: #94a3b8;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition);
}

.auth-forgot-link:hover {
  color: var(--primary-gold-hover);
  text-decoration: underline;
}

/* Demo Autofill Pill */
.btn-demo-autofill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 170, 59, 0.1);
  border: 1px dashed rgba(229, 170, 59, 0.4);
  color: var(--primary-gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 14px;
}

.btn-demo-autofill:hover {
  background: rgba(229, 170, 59, 0.2);
  border-style: solid;
}

/* Divider & Social Sign-In */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(229, 170, 59, 0.14);
}

.auth-divider span {
  padding: 0 12px;
}

.btn-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: #0d1b2a;
  border: 1px solid rgba(229, 170, 59, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-auth-social:hover {
  background: #122438;
  border-color: var(--primary-gold);
  color: #ffffff;
}

.auth-footer-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 20px;
  margin-bottom: 0;
}

.auth-footer-prompt a {
  color: var(--primary-gold);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-prompt a:hover {
  text-decoration: underline;
  color: var(--primary-gold-hover);
}

/* ==========================================================================
   RC Estate Portal & Property Listing Form (property_for_sale)
   ========================================================================== */
.portal-layout-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
  background: radial-gradient(circle at 10% 10%, rgba(229, 170, 59, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(18, 55, 84, 0.25) 0%, transparent 40%),
              linear-gradient(180deg, #050d18 0%, #071320 50%, #040912 100%);
}

/* Portal Top Header */
.portal-topbar {
  background: #081322;
  border-bottom: 1.5px solid rgba(229, 170, 59, 0.25);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.portal-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand-badge {
  background: rgba(229, 170, 59, 0.14);
  border: 1px solid rgba(229, 170, 59, 0.35);
  color: var(--primary-gold);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-topbar-link {
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.portal-topbar-link:hover,
.portal-topbar-link.active {
  color: #ffffff;
  background: rgba(229, 170, 59, 0.12);
}

/* User Profile Pill & Dropdown (Matching Screenshot in Luxury Theme) */
.header-avatar-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10243d 0%, #071320 100%);
  border: 2px solid rgba(229, 170, 59, 0.7);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(229, 170, 59, 0.25);
  transition: all 0.25s ease;
  padding: 0;
  margin-left: 4px;
  outline: none;
  text-decoration: none;
  user-select: none;
}

.header-avatar-circle::after {
  display: none !important; /* Hide Bootstrap dropdown caret */
}

.header-avatar-circle:hover,
.header-avatar-circle:focus,
.header-avatar-circle[aria-expanded="true"] {
  border-color: var(--primary-gold, #e5aa3b);
  background: linear-gradient(135deg, #18375c 0%, #0c1c2e 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 170, 59, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}

.portal-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #091726;
  border: 1.5px solid rgba(229, 170, 59, 0.35);
  border-radius: 30px;
  padding: 6px 14px 6px 18px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  outline: none;
  white-space: nowrap;
}

.portal-user-pill::after {
  display: none !important; /* Hide default Bootstrap caret */
}

.portal-user-pill:hover,
.portal-user-pill:focus,
.portal-user-pill[aria-expanded="true"] {
  border-color: var(--primary-gold);
  background: #0e2034;
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.18);
  color: #ffffff;
}

.portal-user-name-text {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #f1f5f9;
}

.portal-user-pill-icon {
  color: var(--primary-gold);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Dropdown Menu Container */
.portal-user-dropdown {
  background: #0b1a2d !important;
  border: 1.5px solid rgba(229, 170, 59, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(229, 170, 59, 0.12) !important;
  min-width: 320px;
  padding: 16px !important;
  margin-top: 12px !important;
  position: absolute;
}

.portal-user-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #0b1a2d;
  border-left: 1.5px solid rgba(229, 170, 59, 0.35);
  border-top: 1.5px solid rgba(229, 170, 59, 0.35);
  transform: rotate(45deg);
  z-index: 1;
}

/* Dropdown Header Profile Card */
.portal-dropdown-profile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 4px 12px 4px;
}

.portal-dropdown-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(229, 170, 59, 0.14);
  border: 1.5px solid rgba(229, 170, 59, 0.35);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.portal-dropdown-info {
  flex: 1;
  min-width: 0;
}

.portal-dropdown-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.portal-dropdown-email {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
  word-break: break-all;
}

.portal-dropdown-divider {
  border-top: 1px solid rgba(229, 170, 59, 0.18);
  margin: 10px 0;
}

/* Dropdown Action Items */
.portal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
}

.portal-dropdown-item i {
  font-size: 1.1rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

.portal-dropdown-item:hover {
  background: rgba(229, 170, 59, 0.12);
  color: #ffffff;
}

.portal-dropdown-item:hover i {
  transform: scale(1.12);
}

/* Logout Item */
.portal-logout-item {
  color: #f87171 !important;
}

.portal-logout-item i {
  color: #f87171 !important;
}

.portal-logout-item:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ff8585 !important;
}

.portal-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d1e31;
  border: 1px solid rgba(229, 170, 59, 0.25);
  padding: 5px 12px;
  border-radius: 30px;
}

.portal-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b1320;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Left Sidebar Menu (Icon-focused matching user screenshots) */
.portal-sidebar {
  width: 74px;
  background: #07121e;
  border-right: 1.5px solid rgba(229, 170, 59, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  flex-shrink: 0;
}

.portal-sidebar-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.25rem;
  margin-bottom: 18px;
  transition: var(--transition);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.portal-sidebar-btn:hover {
  color: var(--primary-gold);
  background: rgba(229, 170, 59, 0.12);
  border-color: rgba(229, 170, 59, 0.3);
}

.portal-sidebar-btn.active {
  background: var(--gold-gradient);
  color: #0b1320 !important;
  box-shadow: 0 4px 16px rgba(229, 170, 59, 0.35);
  font-weight: 700;
}

/* Tooltip on hover */
.portal-sidebar-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #091522;
  color: #f1f5f9;
  border: 1px solid rgba(229, 170, 59, 0.3);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1040;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.portal-sidebar-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Main Content Area */
.portal-main-area {
  flex: 1;
  padding: 30px 36px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 767.98px) {
  .portal-layout-wrapper {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 1.5px solid rgba(229, 170, 59, 0.18);
    padding: 10px 0;
    gap: 16px;
  }
  .portal-sidebar-btn {
    margin-bottom: 0;
  }
  .portal-sidebar-btn::after {
    display: none;
  }
  .portal-main-area {
    padding: 20px 14px;
  }
}

/* Portal Cards */
.portal-card {
  background: #0a1727;
  border: 1px solid rgba(229, 170, 59, 0.24);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
  color: #f8fafc;
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 170, 59, 0.18);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.portal-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-card-title i {
  color: var(--primary-gold);
}

.portal-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.portal-req-star {
  color: #f87171;
  font-weight: 700;
}

.portal-input,
.portal-select,
.portal-textarea {
  width: 100%;
  background: #0e2034;
  border: 1.5px solid rgba(229, 170, 59, 0.22);
  border-radius: 8px;
  color: #ffffff;
  padding: 11px 16px;
  font-size: 0.92rem;
  transition: var(--transition);
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
  background: #122740;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.2);
  outline: none;
  color: #ffffff;
}

/* Custom Seamless Affix Group (for PKR demand and +92 mobile) */
.portal-affix-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  background: #0e2034;
  border: 1.5px solid rgba(229, 170, 59, 0.22);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.portal-affix-group:focus-within {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.2);
  background: #122740;
}

.portal-affix-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #081523;
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 16px;
  border-right: 1.5px solid rgba(229, 170, 59, 0.22);
  user-select: none;
  flex-shrink: 0;
}

.portal-affix-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 11px 16px !important;
  font-size: 0.92rem;
}

.portal-affix-input::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

/* Custom Size Composite (Number Input + Unit Select side-by-side) */
.portal-size-composite {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  background: #0e2034;
  border: 1.5px solid rgba(229, 170, 59, 0.22);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.portal-size-composite:focus-within {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(229, 170, 59, 0.2);
  background: #122740;
}

.portal-size-input {
  flex: 1 1 60% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 11px 16px !important;
  font-size: 0.92rem;
}

.portal-size-input::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

.portal-size-select {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 145px !important;
  background: #081523 !important;
  border: none !important;
  border-left: 1.5px solid rgba(229, 170, 59, 0.22) !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 11px 14px !important;
  font-size: 0.88rem;
  cursor: pointer;
}

.portal-input::placeholder,
.portal-textarea::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

.portal-select option {
  background: #091624;
  color: #ffffff;
}

/* Purpose Option Radios */
.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.purpose-radio-item input[type="radio"] {
  display: none;
}

.purpose-box {
  border: 1.5px solid rgba(229, 170, 59, 0.25);
  background: #0d1e31;
  border-radius: 10px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.purpose-radio-item input[type="radio"]:checked + .purpose-box {
  background: var(--gold-gradient);
  color: #0b1320;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(229, 170, 59, 0.35);
  font-weight: 700;
}

/* Price Input with Live In-Words Helper */
.portal-price-helper {
  font-size: 0.78rem;
  color: var(--primary-gold);
  font-weight: 600;
  margin-top: 6px;
  min-height: 18px;
}

/* Dropzone Upload */
.portal-upload-zone {
  border: 2px dashed rgba(229, 170, 59, 0.38);
  background: rgba(14, 32, 52, 0.45);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.portal-upload-zone:hover {
  border-color: var(--primary-gold);
  background: rgba(229, 170, 59, 0.08);
}

.portal-upload-icon {
  font-size: 2.8rem;
  color: var(--primary-gold);
  margin-bottom: 10px;
  line-height: 1;
}

.portal-upload-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.portal-upload-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0;
}

/* Image Thumbnails Preview Grid */
.portal-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portal-thumb-item {
  position: relative;
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(229, 170, 59, 0.35);
  background: #08121d;
}

.portal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-thumb-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #f87171;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
}

.portal-thumb-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Filter Bar (My Listings View matching screenshot 1) */
.portal-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #091626;
  border: 1px solid rgba(229, 170, 59, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.portal-filter-field {
  flex: 1;
  min-width: 180px;
}

/* Status Tabs (Active, Pending, Rejected, Deleted, Inactive matching screenshot 1) */
.portal-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid rgba(229, 170, 59, 0.2);
  padding-bottom: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
}

.portal-tab-pill {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.portal-tab-pill:hover {
  color: #ffffff;
  background: rgba(229, 170, 59, 0.1);
}

.portal-tab-pill.active {
  background: rgba(229, 170, 59, 0.16);
  color: var(--primary-gold);
  border-color: rgba(229, 170, 59, 0.35);
  font-weight: 700;
}

/* Empty State / Listing Table */
.portal-empty-card {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.portal-empty-icon {
  font-size: 3.5rem;
  color: rgba(229, 170, 59, 0.4);
  margin-bottom: 14px;
}

/* User Settings Profile Picture Upload Zone */
.portal-profile-upload-zone {
  border: 1.5px dashed rgba(229, 170, 59, 0.45);
  background: rgba(229, 170, 59, 0.05);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary-gold);
}

.portal-profile-upload-zone:hover {
  background: rgba(229, 170, 59, 0.12);
  border-color: var(--primary-gold);
}