/*
 * Houzez Clone - Global Stylesheet
 * Custom Vanilla CSS Implementation matching demo01.houzez.co
 */

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

/* --- Design System Variables --- */
:root {
  --primary-color: #004274;
  --primary-dark: #002b4b;
  --accent-color: #00aeff;
  --accent-hover: #33beff;
  --accent-bg-alpha: rgba(0, 174, 255, 0.1);
  --success-color: #28a745;
  --success-hover: #34ce57;
  --warning-color: #ea923a;
  --danger-color: #dd3333;
  --featured-color: #77c720;
  
  --text-color: #222222;
  --text-muted: #8b9898;
  --text-light: #ffffff;
  
  --bg-light: #f7f8f9;
  --bg-white: #ffffff;
  --bg-dark: #00335a;
  --bg-darker: #002440;
  
  --border-color: #dce0e0;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  --font-sans: 'Roboto', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 70px;
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

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

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1310px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-white);
}

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

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.g-1 { gap: 10px; }
.g-2 { gap: 20px; }
.g-3 { gap: 30px; }

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

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

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

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

/* Section Header styling */
.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: capitalize;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 300;
}

/* --- Common Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 174, 255, 0.3);
}

.btn-secondary {
  background-color: var(--success-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--success-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  background-color: var(--bg-light);
  border-color: var(--text-muted);
}

.btn-primary-outline {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-primary-outline:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-create-listing {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 1px solid var(--accent-color);
  padding: 8px 18px;
  font-size: 12px;
}

.btn-create-listing:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--text-light);
}

.badge-featured { background-color: var(--featured-color); }
.badge-sale { background-color: var(--danger-color); }
.badge-rent { background-color: var(--warning-color); }

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  color: var(--text-color);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b9898' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* --- Header & Navigation --- */
.header-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition-normal);
}

.header-wrap.sticky {
  position: fixed;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 28px;
  transition: var(--transition-fast);
}

/* Desktop Menu */
.navbar {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu {
  display: flex;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-item.active > .nav-link {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
  border-top: 2px solid var(--accent-color);
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
  padding-left: 25px;
}

/* Nested Dropdowns */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  border-radius: var(--border-radius-sm);
}

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

/* Header Right Options */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link:hover {
  color: var(--accent-color);
}

.user-btn {
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.user-btn:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  color: var(--text-light);
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Offcanvas Drawer Menu (Mobile) */
.offcanvas {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--primary-dark);
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.offcanvas.open {
  left: 0;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.offcanvas-logo img {
  height: 24px;
}

.offcanvas-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}

.offcanvas-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  margin-bottom: 30px;
}

.offcanvas-menu .nav-item {
  flex-direction: column;
  align-items: flex-start;
  height: auto;
}

.offcanvas-menu .nav-link {
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas-menu .dropdown-menu {
  position: static;
  background-color: rgba(0,0,0,0.15);
  box-shadow: none;
  width: 100%;
  display: none;
  padding: 5px 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  border-top: none;
}

.offcanvas-menu .nav-item.active-submenu .dropdown-menu {
  display: block;
}

.offcanvas-menu .dropdown-item {
  color: rgba(255,255,255,0.8);
  border-bottom: none;
  padding: 8px 20px;
}

.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.offcanvas-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .nav-menu, .phone-link, .btn-create-listing {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* --- Hero Section & Advanced Search --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,43,75,0.6) 0%, rgba(0,66,116,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--header-height);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 45px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Search Tabs */
.search-tabs {
  display: inline-flex;
  background-color: rgba(0, 43, 75, 0.5);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  margin-bottom: 0;
}

.search-tab-btn {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.search-tab-btn.active {
  background-color: var(--accent-color);
}

/* Search Box Container */
.search-box-wrap {
  background-color: var(--bg-white);
  padding: 25px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  color: var(--text-color);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 15px;
  align-items: end;
}

.advanced-search-fields {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

.advanced-search-fields.show {
  display: grid;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 15px;
}

.btn-advanced-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-advanced-toggle i {
  transition: var(--transition-fast);
}

.btn-advanced-toggle.active i {
  transform: rotate(180deg);
}

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

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .advanced-search-fields {
    grid-template-columns: 1fr;
  }
}

/* --- Property Card Component --- */
.property-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

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

.property-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.property-card:hover .property-img-wrap img {
  transform: scale(1.08);
}

.property-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.property-price-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
  background-color: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.property-fav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
}

.property-fav-btn:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
}

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

.property-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.property-title a {
  color: var(--text-color);
}

.property-title a:hover {
  color: var(--accent-color);
}

.property-location {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

.property-amenities {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-bottom: 15px;
}

.amenity-item {
  font-size: 12px;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.amenity-item i {
  color: var(--accent-color);
  font-size: 14px;
}

.property-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-color);
}

.property-agent img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.property-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* Grid & List View Layout Switcher */
.listings-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background-color: var(--bg-white);
  padding: 15px 25px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.view-btn.active, .view-btn:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

/* List Layout Card modifications */
.listings-container.list-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listings-container.list-layout .property-card {
  flex-direction: row;
  height: 240px;
}

.listings-container.list-layout .property-img-wrap {
  width: 320px;
  height: 100%;
  flex-shrink: 0;
}

.listings-container.list-layout .property-body {
  padding: 25px;
}

@media (max-width: 768px) {
  .listings-container.list-layout .property-card {
    flex-direction: column;
    height: auto;
  }
  .listings-container.list-layout .property-img-wrap {
    width: 100%;
    height: 200px;
  }
}

/* --- Cities Grid --- */
.city-card {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.city-card:hover img {
  transform: scale(1.06);
}

.city-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.city-content {
  position: absolute;
  bottom: 25px;
  left: 25px;
  z-index: 2;
  color: var(--text-light);
}

.city-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.city-count {
  font-size: 13px;
  opacity: 0.8;
}

/* --- Why Choose Us --- */
.benefit-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.benefit-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--accent-bg-alpha);
  color: var(--accent-color);
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition-normal);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Agent Directory Component --- */
.agent-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition-normal);
}

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

.agent-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card-body {
  padding: 25px 20px;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.agent-name a {
  color: var(--text-color);
}

.agent-name a:hover {
  color: var(--accent-color);
}

.agent-title {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 15px;
}

.agent-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
  font-size: 13px;
}

.agent-meta-info li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.agent-meta-info i {
  color: var(--accent-color);
}

.agent-listings-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
}

/* --- Property Detail Page Specific Styles --- */
.property-detail-header {
  background-color: var(--bg-white);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
  margin-top: var(--header-height);
}

.property-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.property-detail-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.property-detail-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
  text-align: right;
}

.property-detail-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

/* Image Slider Component */
.property-gallery-wrap {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.property-slider {
  display: flex;
  height: 500px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
  min-width: 100%;
  height: 100%;
}

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border: none;
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.slider-btn:hover {
  background-color: var(--accent-color);
}

.slider-btn-prev { left: 30px; }
.slider-btn-next { right: 30px; }

@media (max-width: 768px) {
  .property-slider { height: 300px; }
  .property-header-row {
    flex-direction: column;
    gap: 15px;
  }
  .property-detail-price {
    text-align: left;
  }
}

/* Details Content Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 50px 0;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-section {
  background-color: var(--bg-white);
  padding: 35px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(0,0,0,0.05);
}

.detail-sec-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--accent-bg-alpha);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-sec-title i {
  color: var(--accent-color);
}

/* Info Grid (Specs) */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.spec-box {
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.spec-val {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.spec-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item i {
  color: var(--success-color);
}

@media (max-width: 576px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--accent-bg-alpha);
}

.widget-agent-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.widget-agent-card img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
}

.widget-agent-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
}

.widget-agent-info p {
  color: var(--text-muted);
  font-size: 12px;
}

/* Tour Schedule Tabs */
.tour-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tour-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tour-tab-btn.active {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

/* --- FAQ Accordion --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-center: center;
  cursor: pointer;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--bg-light);
}

.accordion-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
}

.accordion-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-body {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-item.active .accordion-body {
  padding: 15px 25px 25px 25px;
}

/* --- Blog Section Components --- */
.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

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

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.blog-body {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-title a {
  color: var(--text-color);
}

.blog-title a:hover {
  color: var(--accent-color);
}

.blog-text {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-more:hover {
  color: var(--accent-color);
}

/* --- Footer Area --- */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
}

.footer-top {
  padding: 80px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 4px;
}

.footer-bottom {
  background-color: var(--bg-darker);
  padding: 25px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-color);
}

/* --- Listing Page layout --- */
.properties-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 50px 0;
  margin-top: var(--header-height);
}

.sidebar-filter-wrap {
  position: sticky;
  top: 90px;
  height: fit-content;
}

@media (max-width: 992px) {
  .properties-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filter-wrap {
    position: static;
  }
}

/* --- About & Contact Layout --- */
.about-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-top: var(--header-height);
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 43, 75, 0.7);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  background-color: var(--bg-light);
  padding: 40px 20px;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact map & detail grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 300px;
  }
}

/* --- Blog Components --- */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-meta i {
  color: var(--accent-color);
  font-size: 11px;
}
.blog-title a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  transition: var(--transition-fast);
}
.blog-title a:hover {
  color: var(--accent-color);
}
.blog-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.blog-more {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-fast);
}
.blog-more i {
  transition: var(--transition-fast);
}
.blog-more:hover {
  color: var(--accent-hover);
}
.blog-more:hover i {
  transform: translateX(4px);
}

/* Sidebar Widget */
.sidebar-widget {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* Blog Grid Card (vertical) */
.blog-card-grid {
  background: var(--bg-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: var(--transition-normal);
}
.blog-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-grid .blog-thumb {
  height: 210px;
  overflow: hidden;
}
.blog-card-grid .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}
.blog-card-grid:hover .blog-thumb img {
  transform: scale(1.07);
}
.blog-card-grid .blog-body {
  padding: 22px;
}

/* Responsive – switch horizontal blog cards to vertical on small screens */
@media (max-width: 640px) {
  .blog-title a { font-size: 17px; }
}
