/* 
  Real Estate Website - Premium Design System 
  Fonts: Outfit (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #0F172A;
  /* Deep Royal Blue */
  --primary-light: #1E293B;
  --secondary: #D4AF37;
  /* Champagne Gold */
  --secondary-hover: #b5952f;
  --accent: #38BDF8;
  /* Sky Blue for subtle tech feel */

  --bg-body: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-light: #E2E8F0;

  /* Spacing */
  --container-width: 1280px;
  --container-padding: 2rem;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html,
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 600;
}

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

@media (max-width: 360px) {
  :root {
    --container-padding: 1rem;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-padding {
    padding: 3rem 0 !important;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .flex:not(.site-logo):not(.footer-bottom):not(.site-header .container):not(.header-actions) {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }

  .site-header .container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .header-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    /* Ensure actions are centered within their container */
    gap: 12px !important;
  }

  .user-dropdown-container {
    margin-left: 0 !important;
  }

  .profile-btn,
  .mobile-menu-btn {
    font-size: 1.75rem !important;
    padding: 4px !important;
    margin: 0 !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .btn {
    width: 100% !important;
    padding: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Swiper Mobile Fixes */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
    /* Hide arrows on very small screens to prevent overflow */
  }

  .swiper-pagination {
    bottom: 5px !important;
  }

  /* Spec Rows & Features */
  .property-features {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  .property-features span {
    flex: 1 1 40% !important;
    /* Allow two per row if they fit */
    font-size: 0.8rem !important;
  }

  .spec-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  text-align: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.grid {
  display: grid;
}

/* Properties Grid */
.properties-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1400px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Header Styles */
.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  height: 100%;
}

.site-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.site-logo span {
  color: var(--secondary);
}

.site-logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Footer Specific Logo Styling - Removed to match header exactly */
.site-footer .site-logo {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Profile Dropdown */
.user-dropdown-container {
  position: relative;
  margin-left: 1.5rem;
}

.profile-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
}

.profile-btn:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
  padding-left: 1.75rem;
}

.dropdown-item i {
  font-size: 1.25rem;
  color: var(--secondary);
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Submenu Styles */
.has-dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 150%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
}

.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.submenu li a:hover {
  background-color: var(--bg-subtle);
  color: var(--secondary);
  padding-left: 1.75rem;
}

.nav-link i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* Footer Styles */
.site-footer {
  background-color: var(--bg-white);
  color: var(--text-main);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 1rem;
}

.footer-heading {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Mobile Navigation & Responsive Styles */

.mobile-menu-btn {
  display: none;
  /* Hidden by default on desktop */
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  /* Offset padding to align with container edge */
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.mobile-menu-btn i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active {
  color: var(--secondary);
  background-color: var(--bg-subtle);
}

.mobile-menu-btn.active i {
  transform: rotate(90deg) scale(0.9);
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  padding: 0;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-light);
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--text-main);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--bg-subtle);
  color: var(--secondary);
  padding-left: 2.5rem;
}

@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section h1 {
    font-size: 2.5rem !important;
  }

  .section-padding {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }

  .site-header .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-logo {
    font-size: 1.5rem;
  }

  .site-logo img {
    height: 40px !important;
  }

  .hero-section {
    height: auto !important;
    min-height: 500px;
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2rem !important;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }

  .search-box>div,
  .search-box select,
  .search-box input {
    width: 100% !important;
  }

  .grid {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Contact Page Adjustments */
  .contact-methods {
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    --container-padding: 1.25rem;
  }

  .header-actions {
    gap: 1rem;
  }

  .user-dropdown-container {
    margin-left: 0.5rem;
  }
}

/* ---------------------------------------------------
    Dashboard Layout System (Admin & User)
--------------------------------------------------- */

.dashboard-layout .desktop-nav,
.dashboard-layout .mobile-nav {
  display: none !important;
}

.dashboard-layout .site-header {
  height: 70px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.dashboard-layout .dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 70px);
}

.dashboard-layout .dashboard-sidebar {
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  padding: 2rem;
  height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  transition: var(--transition);
  overflow-y: auto;
}

.dashboard-layout .dashboard-main {
  padding: 2.5rem;
  background: var(--bg-body);
  width: 100%;
}

.dashboard-layout .sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.dashboard-layout .sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.dashboard-layout .sidebar-link:hover,
.dashboard-layout .sidebar-link.active {
  background: var(--bg-subtle);
  color: var(--primary);
}

.dashboard-layout .sidebar-link i {
  font-size: 1.25rem;
}

.dashboard-layout .sidebar-link.logout {
 
  color: #ef4444;
}

.dashboard-layout .sidebar-link.logout:hover {
  background: #fef2f2;
}

/* Dashboard Header Adjustments */
.dashboard-layout .site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-layout .header-right-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-layout .dashboard-page-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Tablet & Mobile Breakpoints for Dashboard */
@media (max-width: 992px) {
  .dashboard-layout .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-layout .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    margin-top: 0;
    padding-top: 5rem;
    box-shadow: var(--shadow-lg);
  }

  .dashboard-layout .dashboard-sidebar.active {
    left: 0;
  }

  .dashboard-layout .dashboard-main {
    padding: 1.5rem;
  }

  .dashboard-layout .mobile-menu-btn {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .dashboard-layout .dashboard-page-title {
    display: none;
  }
}

@media (max-width: 360px) {
  .dashboard-layout .dashboard-main {
    padding: 1.25rem 12px;
  }
}

/* ---------------------------------------------------
    User Dashboard Specific Responsive Overrides
--------------------------------------------------- */

.user-dashboard.dashboard-layout {
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

.user-dashboard.dashboard-layout .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 3000 !important;
}

.user-dashboard.dashboard-layout .dashboard-container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  padding-top: 70px !important;
  /* Offset for fixed header */
  display: flex !important;
  flex-direction: column !important;
}

@media (min-width: 993px) {
  .user-dashboard.dashboard-layout .dashboard-container {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
  }

  .user-dashboard.dashboard-layout .dashboard-sidebar {
    height: calc(100vh - 70px) !important;
    top: 70px !important;
  }
}

.user-dashboard.dashboard-layout .dashboard-main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  padding: 2.5rem !important;
  margin-top: 0 !important;
  overflow-y: visible !important;
}

.user-dashboard.dashboard-layout .user-profile-section,
.user-dashboard.dashboard-layout .property-card,
.user-dashboard.dashboard-layout .stat-card,
.user-dashboard.dashboard-layout .table-container,
.user-dashboard.dashboard-layout .dashboard-empty-state {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  flex-basis: auto !important;
}

/* Ensure no child pushes outside screen */
.user-dashboard.dashboard-layout *,
.user-dashboard.dashboard-layout *::before,
.user-dashboard.dashboard-layout *::after {
  box-sizing: border-box !important;
  max-width: 100%;
}

.user-dashboard.dashboard-layout .flex,
.user-dashboard.dashboard-layout .header-right-box,
.user-dashboard.dashboard-layout .dashboard-header,
.user-dashboard.dashboard-layout .dashboard-tabs,
.user-dashboard.dashboard-layout .profile-info .flex,
.user-dashboard.dashboard-layout .property-footer {
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

.user-dashboard.dashboard-layout img,
.user-dashboard.dashboard-layout i,
.user-dashboard.dashboard-layout svg,
.user-dashboard.dashboard-layout canvas {
  max-width: 100% !important;
  height: auto !important;
}

.user-dashboard.dashboard-layout .btn {
  white-space: normal !important;
  text-align: center !important;
  padding: 0.875rem 1rem !important;
  width: auto;
  min-width: fit-content;
}

@media (max-width: 992px) {
  .user-dashboard.dashboard-layout .dashboard-main {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .user-dashboard.dashboard-layout .dashboard-main {
    padding: 1.25rem 1rem !important;
  }

  .user-dashboard.dashboard-layout .user-profile-section {
    padding: 1.5rem 1rem !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  .user-dashboard.dashboard-layout .profile-avatar {
    width: 90px !important;
    height: 90px !important;
    font-size: 2.5rem !important;
  }

  .user-dashboard.dashboard-layout .profile-info h3 {
    font-size: 1.5rem !important;
  }

  .user-dashboard.dashboard-layout .dashboard-tabs {
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 0.25rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .user-dashboard.dashboard-layout .tab-btn {
    padding: 0.6rem 0 !important;
    font-size: 0.875rem !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 360px) {
  .user-dashboard.dashboard-layout .dashboard-main {
    padding: 1rem 0.75rem !important;
  }

  .user-dashboard.dashboard-layout .btn {
    width: 100% !important;
  }
}

/* Premium Services Redesign */

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--secondary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 80px;
  height: 80px;
  background: var(--bg-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition);
  position: relative;
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.service-link {
  color: var(--secondary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  margin-top: auto;
  line-height: 1;
  text-align: center;
  padding: 0.5rem 0;
}

.service-link:hover {
  gap: 0.75rem;
  color: var(--primary);
}

/* Modern Hero Search Box */
.hero-search {
  background: white;
  padding: 0.75rem;
  border-radius: 999px;
  /* Pill shape */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-premium);
  max-width: 1100px;
  margin: 0 auto;
}

.search-group {
  flex: 1;
  padding: 0.5rem 1.5rem;
  position: relative;
  border-right: 1px solid var(--border-light);
  text-align: left;
}

.search-group:last-of-type {
  border-right: none;
}

.search-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.search-input,
.search-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0;
  cursor: pointer;
  outline: none;
  font-family: 'Outfit', sans-serif;
}

.search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.search-btn-modern {
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 999px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.search-btn-modern:hover {
  background: var(--secondary-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Update Mobile Media Query for Search */
@media (max-width: 768px) {
  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 0;
    padding: 1rem;
    width: 100%;
  }

  .search-group {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
  }

  .search-group:last-of-type {
    border-bottom: none;
  }

  .search-btn-modern {
    width: 100%;
    height: 50px;
    margin-left: 0;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
  }

  .search-btn-modern::after {
    content: "Search";
  }
}

/* Blog Page Components */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.blog-thumb {
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-subtle);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  transition: var(--transition);
}

.blog-card:hover .blog-title {
  color: var(--secondary);
}

.blog-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.blog-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

/* About Page Responsive Overrides */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-grid {
    gap: 2rem;
  }

  .about-image img {
    height: 280px;
  }

  .about-content h2 {
    font-size: 1.75rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

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

  .value-card {
    padding: 2rem 1.5rem;
  }

  .page-header {
    padding: 4rem 0 !important;
  }

  .page-header h1 {
    font-size: 2.25rem !important;
  }
}

/* 360px Specific Fixes */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
    /* approx 16px */
  }

  .section-padding {
    padding: 2.5rem 0;
    /* Reducing large gaps */
  }

  .about-grid {
    gap: 1.5rem;
  }

  .about-image img {
    height: 220px;
  }

  .about-content h2 {
    font-size: 1.5rem !important;
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem !important;
  }
}


/* Authentication Pages (Login & Sign-up) */
.auth-body {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.auth-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
}

.auth-card h1,
.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.auth-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.auth-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider:not(:empty)::before {
  margin-right: .75rem;
}

.auth-divider:not(:empty)::after {
  margin-left: .75rem;
}

.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-footer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.auth-footer-text a {
  color: var(--secondary);
  font-weight: 600;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-error-message {
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

/* Property Listings System */
.property-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--secondary);
}

.property-thumb {
  display: block;
  position: relative;
  height: 250px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--bg-subtle);
  z-index: 1;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.property-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--secondary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.property-tag.rent {
  background: var(--accent);
}

.property-content {
  padding: 1.75rem;
  flex: 1 1 auto;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  position: relative;
  z-index: 2;
}

.property-title {
  font-size: 1.4rem !important;
  margin-bottom: 0.5rem;
  color: var(--primary);
  display: block;
}

.property-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-features {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.property-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.property-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Password Visibility Toggle */
.password-container {
  position: relative;
  width: 100%;
}

.auth-input.has-icon {
  padding-right: 2.75rem;
  /* Make space for the eye icon */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--secondary);
}

.password-toggle i {
  font-size: 1.25rem;
}

/* --- Dedicated Mobile Fixes (360px - 400px) --- */
@media (max-width: 400px) {
  :root {
    --container-padding: 1rem;
  }

  /* Typography Scaling */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  p {
    font-size: 0.95rem !important;
  }

  /* Container Adjustment */
  .container {
    padding: 0 var(--container-padding) !important;
  }

  /* Property Details Specifics */
  .property-details-hero {
    height: 300px !important;
  }

  .property-header-info {
    padding: 1.5rem 0 !important;
  }

  .property-title-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .breadcrumb {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }

  .property-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .property-footer .btn {
    width: 100% !important;
  }

  .property-main-title p {
    font-size: 0.9rem !important;
    margin-top: 0.25rem;
  }

  .property-price-tag {
    font-size: 1.75rem !important;
    margin-top: 0.25rem;
    display: block;
  }

  /* Stats Section Horizontal stacking with icons */
  .property-stats {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
    margin-bottom: 2rem !important;
    align-items: stretch !important;
  }

  .property-stats>div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 0.5rem;
  }

  .property-stats>div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .property-stats i {
    font-size: 1.25rem !important;
    margin-bottom: 0 !important;
    margin-right: 0.75rem;
  }

  /* Value and Label alignment */
  .property-stats div[style*="font-weight: 700"] {
    font-size: 1.1rem !important;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .property-stats div[style*="color: var(--text-muted)"] {
    order: -1;
    font-size: 0.85rem !important;
  }

  /* Grid Layouts to 1 Column */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Override specific grid setups */
  .grid[style*="grid-template-columns: 2fr 1fr"],
  .grid[style*="grid-template-columns: 1.5fr 1fr"],
  .grid[style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
  }

  .property-description {
    padding-right: 0 !important;
  }

  .property-sidebar-container {
    margin-top: 2rem;
  }

  .property-sidebar {
    position: relative !important;
    top: 0 !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-md) !important;
  }

  .feature-list-premium {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .feature-item-premium {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  .feature-item-premium i {
    font-size: 1.25rem !important;
  }

  .map-container {
    height: 250px !important;
    margin-top: 1.5rem !important;
  }

  /* Call to Action & Footer */
  .site-footer {
    padding: 3rem 0 1.5rem !important;
  }

  .footer-grid {
    gap: 2rem !important;
    text-align: center;
  }

  .footer-brand,
  .footer-column {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  /* Navigation & Mobile Menu */
  .site-header {
    height: 60px !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
  }

  .site-header .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 12px !important;
    gap: 0 !important;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
  }

  .user-dropdown-container {
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .profile-btn,
  .mobile-menu-btn {
    font-size: 1.6rem !important;
    padding: 6px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 8px !important;
  }

  .logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
  }

  .site-logo {
    font-size: 1.25rem !important;
  }

  /* Global Responsive Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}