* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root CSS Variables for themes - Zoopla Inspired */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --border-color: #dadce0;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.98);
  --hero-bg: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #1e88e5 100%);
  --hero-overlay: rgba(0, 0, 0, 0.15);
  --input-bg: #ffffff;
  --button-bg: #1a73e8;
  --button-hover: #1557b0;
  --footer-bg: #202124;
  --footer-text: #e8eaed;

  /* Zoopla specific colors */
  --zoopla-blue: #0077be;
  --zoopla-green: #00a651;
  --zoopla-orange: #ff6600;
  --zoopla-red: #e60012;
  --zoopla-gray: #f5f5f5;
  --zoopla-dark-gray: #333333;
}

.dark-theme {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #475569;
  --card-bg: #1e293b;
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --input-bg: #334155;
  --button-bg: #6366f1;
  --button-hover: #4f46e5;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #1f2937;
  color: var(--text-primary);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Global Styles - Zoopla Inspired */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Zoopla-style property cards */
.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--zoopla-blue);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.badge.status {
  background: var(--zoopla-green);
  color: white;
}

.property-content {
  padding: 16px;
}

.property-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.price-try {
  font-size: 18px;
  font-weight: 700;
  color: var(--zoopla-blue);
}

.price-gbp {
  font-size: 14px;
  color: var(--text-secondary);
}

.property-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.property-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-details {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.property-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--zoopla-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.property-btn:hover {
  background: #005a94;
  transform: translateY(-1px);
}

/* Zoopla-style search filters */
.filters-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--zoopla-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Properties grid - Zoopla layout */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin: 20px 0;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 24px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Enhanced Dropdown Styles */
select.search-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 !important;
  cursor: pointer;
}

select.search-input:focus {
  outline: none;
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

select.search-input option {
  padding: 8px 12px;
  color: var(--text-primary);
  background-color: var(--input-bg);
}

select.search-input option:hover {
  background-color: var(--bg-secondary);
}

.dark-theme select.search-input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' 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");
}

/* 🚀 CLEAN NAVBAR FOR LOGGED-IN USERS */
/* Hide ugly menu items globally */
.navbar-menu {
  display: none !important;
}

/* 🎨 NEW BEAUTIFUL NAVIGATION */
.nav-content {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.nav-left {
  display: flex !important;
  gap: 8px !important;
}

.nav-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  background: none !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

.nav-btn:hover {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

.nav-btn.active {
  background: #e0e7ff !important;
  color: #4f46e5 !important;
}

.nav-icon {
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide theme toggle globally */
.theme-toggle {
  display: none !important;
}

/* Hide mobile menu button */
.mobile-menu-btn {
  display: none !important;
}

/* Clean up navbar-right for logged-in users */
.navbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Style the user menu properly */
.user-menu {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Clean user name styling */
.user-name {
  font-size: 14px !important;
  color: #FFFFFF !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* Clean logout button */
.user-menu .btn {
  padding: 8px 16px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Add custom buttons for logged-in users */
.navbar-right::before {
  content: '';
  display: flex;
  gap: 12px;
}

/* Custom navbar additions for logged-in users */
#clean-navbar-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 16px !important;
}

#clean-navbar-buttons .btn {
  padding: 8px 16px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
}

/* Mobile responsiveness for beautiful navbar */
@media (max-width: 1024px) {
  .nav-left {
    gap: 6px !important;
  }
  
  .nav-btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  .nav-icon {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  .nav-content {
    gap: 12px !important;
  }
  
  .nav-left {
    gap: 4px !important;
    flex-wrap: wrap !important;
  }
  
  .nav-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  
  .nav-btn span {
    display: none !important;
  }
  
  #clean-navbar-buttons {
    display: none !important;
  }
  
  .navbar-right {
    justify-content: flex-end !important;
  }
  
  .user-name {
    display: none !important;
  }
  
  .user-menu .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .navbar-content {
    padding: 12px 0 !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .nav-content {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .nav-left {
    justify-content: center !important;
    gap: 6px !important;
  }
  
  .nav-btn {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px !important;
    min-width: 60px !important;
    text-align: center !important;
  }
  
  .nav-icon {
    font-size: 18px !important;
  }
  
  .logo-title {
    font-size: 16px !important;
  }
  
  .navbar-right {
    width: 100% !important;
    justify-content: center !important;
  }
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #4f46e5;
  background: var(--button-bg);
  color: white;
}

.btn-primary:hover {
  background: #4338ca;
  background: var(--button-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: #4F46E5;
  border: 2px solid #4F46E5;
}

.btn-secondary:hover {
  background: #4F46E5;
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: #4F46E5;
}

.btn-success {
  background: #10B981;
  color: white;
}

.btn-success:hover {
  background: #059669;
}

/* Card Styles */
.card {
  background: #ffffff;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  background-color: var(--input-bg);
  color: #1f2937;
  color: var(--text-primary);
}

.form-input:focus {
  outline: none;
  border-color: #4f46e5;
  border-color: var(--button-bg);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background-color: #ffffff;
  background-color: var(--input-bg);
  color: #1f2937;
  color: var(--text-primary);
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  background-color: #ffffff;
  background-color: var(--input-bg);
  color: #1f2937;
  color: var(--text-primary);
}

/* Text Styles */
.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-gray {
  color: #6B7280;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 20px;
}

.text-2xl {
  font-size: 24px;
}

.text-3xl {
  font-size: 30px;
}

.text-4xl {
  font-size: 36px;
}

/* Layout Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Spacing */
.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.p-4 {
  padding: 16px;
}

.p-6 {
  padding: 24px;
}

.p-8 {
  padding: 32px;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.py-8 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.py-12 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.py-16 {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .text-4xl {
    font-size: 28px;
  }
  
  .text-3xl {
    font-size: 24px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.navbar {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1F2937;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-house {
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  text-decoration: none;
  color: #4B5563;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-link:hover {
  color: #4F46E5;
}

.navbar-link:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4F46E5;
  transition: width 0.3s ease;
}

.navbar-link:hover:after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: #F3F4F6;
  color: #4F46E5;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 14px;
  color: #4B5563;
  font-weight: 500;
}

.logout-btn {
  background: none;
  border: none;
  color: #4B5563;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 0;
  width: 100%;
  text-align: left;
}

.logout-btn:hover {
  color: #4F46E5;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #4B5563;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #E5E7EB;
  padding: 20px 0;
  margin-top: 16px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: #4B5563;
  font-weight: 500;
  border-bottom: 1px solid #F3F4F6;
}

.mobile-link:hover {
  color: #4F46E5;
  background: #F9FAFB;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .navbar-right .btn {
    display: none;
  }
  
  .logo-title {
    font-size: 16px;
  }
  
  .navbar-content {
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .navbar-right {
    gap: 8px;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-house {
    font-size: 18px;
  }
}

.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 60px 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  grid-gap: 40px;
  gap: 40px;
  margin-bottom: 40px;
}

/* Company Info Section */
.footer-section:first-child {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-logo-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1;
}

.footer-logo-text span {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #4F46E5;
  color: white;
  transform: translateY(-2px);
}

/* Other Sections */
.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4F46E5;
}

/* Contact Info */
.contact-info {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #9ca3af;
}

.working-hours h5 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.working-hours p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 24px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.footer-links-bottom {
  display: flex;
  gap: 24px;
}

.footer-links-bottom a {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
  color: #4F46E5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  
  .footer-section:first-child {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-links-bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 32px 0 0;
  }
  
  .footer-content {
    gap: 24px;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-description {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-title {
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .working-hours {
    text-align: center;
  }
  
  .footer-bottom {
    padding: 20px 0;
  }
  
  .footer-links-bottom {
    gap: 12px;
  }
}

.homepage {
  margin-top: 80px; /* Account for fixed navbar */
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('uk-houses.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.logo-icon-large {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  color: white;
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
}

/* Main Services Section */
.main-services {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 40px;
  gap: 40px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border-radius: 16px;
  margin-bottom: 24px;
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Detailed Services Section */
.detailed-services {
  padding: 80px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.detailed-services-grid {
  max-width: 800px;
  margin: 0 auto;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detailed-service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.detailed-service-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.service-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border-radius: 8px;
  flex-shrink: 0;
}

.service-content {
  flex: 1 1;
}

.service-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
  z-index: -2;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    width: 64px;
    height: 64px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  .detailed-service-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .service-icon-small {
    align-self: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .main-services,
  .detailed-services,
  .cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 20px;
  }
  
  .hero-logo {
    flex-direction: column;
    gap: 12px;
  }
  
  .logo-icon-large {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .service-card {
    padding: 24px 16px;
  }
}

.services-page {
  margin-top: 80px;
}

/* Services Hero */
.services-hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.services-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
  z-index: -2;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.services-hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.services-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.services-subtitle {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* Main Services Overview */
.main-services-overview {
  padding: 100px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 40px;
  gap: 40px;
}

.main-service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.main-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border-radius: 16px;
  margin-bottom: 24px;
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.service-description {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* Detailed Services */
.detailed-services-section {
  padding: 100px 0;
  background: white;
}

.detailed-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  grid-gap: 40px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.detailed-service-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.detailed-service-card:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.service-icon-medium {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border-radius: 12px;
  flex-shrink: 0;
}

.service-info {
  flex: 1 1;
}

.service-name {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.service-features h4 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-bullet {
  color: #10b981;
  font-weight: 600;
  flex-shrink: 0;
  width: 16px;
}

/* Why Choose Us */
.why-choose-us {
  padding: 100px 0;
  background: #f8fafc;
}

.why-choose-content {
  max-width: 1000px;
  margin: 0 auto;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 40px;
  gap: 40px;
  margin-top: 40px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.services-cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.services-cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
  z-index: -2;
}

.services-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  color: white;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-title {
    font-size: 36px;
  }
  
  .services-subtitle {
    font-size: 18px;
  }
  
  .main-services-grid,
  .detailed-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .detailed-service-card {
    padding: 24px;
  }
  
  .service-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .service-icon-medium {
    align-self: center;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .benefit-icon {
    align-self: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .main-services-overview,
  .detailed-services-section,
  .why-choose-us,
  .services-cta {
    padding: 60px 0;
  }
  
  .services-hero {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .main-service-card {
    padding: 30px 20px;
  }
  
  .service-icon-large {
    width: 64px;
    height: 64px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  .detailed-service-card {
    padding: 20px;
  }
  
  .service-name {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .services-title {
    font-size: 28px;
  }
  
  .cta-title {
    font-size: 28px;
  }
}

.properties-page {
  margin-top: 80px;
  background: #f8fafc;
  min-height: 100vh;
}

/* Header */
.properties-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.brand-text span {
  font-size: 18px;
  font-weight: 600;
  color: #4f46e5;
  line-height: 1.2;
}

.brand-text p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
}

/* Navigation */
.properties-nav {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
}

.nav-left {
  display: flex;
  gap: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.nav-btn.active {
  background: #e0e7ff;
  color: #4f46e5;
}

.nav-icon {
  font-size: 16px;
}

/* Main Content */
.properties-content {
  padding: 40px 0;
}

/* Hide the duplicate header sections that appear below the main navbar */
.properties-header,
.properties-nav {
  display: none !important;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Filters */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.filters-header {
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 16px;
}

.filter-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab.active {
  background: #4f46e5;
  color: white;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background-color: white;
  cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Enhanced dropdown styles */
select.filter-select,
select.filter-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.filter-select:hover,
select.filter-input:hover {
  border-color: #4f46e5;
}

/* Disabled state */
select.filter-select:disabled,
select.filter-input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-gap: 32px;
  gap: 32px;
  margin-bottom: 40px;
}

.property-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.property-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.terraced-house {
  background: #dbeafe;
  color: #1e40af;
}

.badge.flat {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge.detached-house {
  background: #dcfce7;
  color: #166534;
}

.badge.status {
  background: #10b981;
  color: white;
}

.badge.property-type {
  background: #f59e0b;
  color: white;
}

.favorite-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
}

.favorite-btn:hover {
  background: white;
  color: #ef4444;
}

.favorite-btn.active {
  color: #ef4444;
}

.energy-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Property Content */
.property-content {
  padding: 24px;
}

.property-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-gbp {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.price-try {
  font-size: 16px;
  color: #6b7280;
}

.price-btn {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.property-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  margin-bottom: 16px;
  font-size: 14px;
}

.property-details {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 14px;
}

.property-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-size: 12px;
}

.property-btn {
  width: 100%;
  margin-bottom: 16px;
  gap: 8px;
}

.property-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

/* Exchange Rate Footer */
.exchange-rate-footer {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #6b7280;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .nav-left {
    flex-wrap: wrap;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .brand-text h1 {
    font-size: 20px;
  }
  
  .brand-text span {
    font-size: 16px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .property-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .price-btn {
    margin-left: 0;
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .properties-content {
    padding: 20px 0;
  }
  
  .filters-section {
    margin: 0 -20px 20px;
    border-radius: 0;
  }
  
  .property-content {
    padding: 16px;
  }
  
  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.property-detail-page {
  margin-top: 80px;
  background: #f8fafc;
  min-height: 100vh;
  padding: 40px 0;
}

/* Header */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
}

.action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.action-btn.active {
  color: #ef4444;
  border-color: #ef4444;
}

/* Main Grid */
.property-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 40px;
  gap: 40px;
  margin-bottom: 60px;
}

/* Gallery */
.property-gallery {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-image {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.terraced-house {
  background: #dbeafe;
  color: #1e40af;
}

.badge.flat {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge.detached-house {
  background: #dcfce7;
  color: #166534;
}

.badge.status {
  background: #10b981;
  color: white;
}

.image-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2px;
  gap: 2px;
  padding: 2px;
}

.thumbnail {
  height: 100px;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.1);
}

.thumbnail.active {
  outline: 3px solid #4f46e5;
}

/* Property Info */
.property-info {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: -webkit-fit-content;
  height: fit-content;
}

.property-header {
  margin-bottom: 24px;
}

.property-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 16px;
}

.property-price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-try-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: #dc2626;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.price-gbp-secondary {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.price-status {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* Features */
.property-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-value {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.feature-label {
  font-size: 14px;
  color: #6b7280;
}

/* Description */
.property-description {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.property-description h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.property-description p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Features List */
.property-features-list {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.property-features-list h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 16px;
  font-size: 14px;
  color: #374151;
}

/* Contact Section */
.contact-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-btn {
  width: 100%;
  gap: 8px;
}

.agent-info {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
}

.agent-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #374151;
}

.agent-info p:last-child {
  margin-bottom: 0;
}

/* Additional Details */
.additional-details {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 32px;
  gap: 32px;
}

.detail-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: #6b7280;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  padding: 32px;
}

/* Loading and Error States */
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #6b7280;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .property-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .property-detail-page {
    padding: 20px 0;
  }
  
  .detail-header {
    margin-bottom: 24px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
  }
  
  .property-info {
    padding: 24px;
  }
  
  .property-title {
    font-size: 24px;
  }
  
  .price-gbp {
    font-size: 28px;
  }
  
  .main-image {
    height: 300px;
  }
  
  .thumbnail {
    height: 80px;
  }
  
  .additional-details {
    padding: 24px;
  }
  
  .modal-content {
    margin: 20px;
  }
  
  .modal-header,
  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .property-detail-page {
    padding: 16px 0;
  }
  
  .property-price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .image-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .header-actions {
    justify-content: center;
  }
}

/* Map Section */
.map-section {
  margin: 48px 0;
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.map-section h3 {
  margin: 0 0 24px 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.location-info {
  flex: 1 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  min-width: 400px;
}

.address-section,
.location-benefits {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.address-section h4,
.location-benefits h4 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
}

.full-address {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 8px 0;
}

.area-info,
.distance-info {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 4px 0;
}

.location-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-benefits li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.location-benefits li:last-child {
  border-bottom: none;
}

.map-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.map-actions .btn {
  padding: 12px 16px;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Market Analysis Section */
.market-analysis-section {
  margin: 48px 0;
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.market-analysis-section h3 {
  margin: 0 0 24px 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.analysis-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.analysis-card h4 {
  margin: 0 0 16px 0;
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
}

.position-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.price-position p,
.average-price p {
  margin: 8px 0 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.average-price .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
}

.rental-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rental-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rental-label {
  color: #fff;
  font-size: 0.9rem;
}

.rental-value {
  font-weight: 600;
  color: #1f2937;
}

/* Price styling for TRY priority */
.main-price {
  font-weight: 700;
  color: #dc2626;
  font-size: 1.1rem;
}

.secondary-price {
  color: #6b7280;
  font-weight: 500;
}

.rental-value small {
  color: #9ca3af;
  font-weight: normal;
}

/* Responsive Design for Maps */
@media (max-width: 768px) {
  .map-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .location-info {
    grid-template-columns: 1fr;
    min-width: auto;
  }
  
  .map-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support for New Sections */
:root[data-theme="dark"] .map-section,
:root[data-theme="dark"] .market-analysis-section {
  background: #1e293b;
  color: #e2e8f0;
}

:root[data-theme="dark"] .map-section h3,
:root[data-theme="dark"] .market-analysis-section h3 {
  color: #f1f5f9;
}

:root[data-theme="dark"] .analysis-card {
  background: #0f172a;
  border-color: #334155;
}

:root[data-theme="dark"] .analysis-card h4 {
  color: #e2e8f0;
}

:root[data-theme="dark"] .rental-value,
:root[data-theme="dark"] .average-price .price {
  color: #f1f5f9;
}

/* Enhanced Property Detail Page Design */
.modern-property-detail {
  background: var(--bg-primary);
  min-height: 100vh;
  margin-top: 80px;
}

/* Hero Gallery Section */
.property-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
  border-radius: 0 0 24px 24px;
}

.hero-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.gallery-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: #4f46e5;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3), 0 4px 12px rgba(79, 70, 229, 0.4);
}

.gallery-thumb.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #4f46e5;
  border-radius: 8px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
  z-index: -1;
  animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% {
    box-shadow: 0 0 5px rgba(79, 70, 229, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.8);
  }
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badges-hero {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-badge.status {
  background: rgba(16, 185, 129, 0.95);
  color: white;
}

/* Property Info Cards */
.property-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.property-main-info {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Property Header */
.property-header-modern {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.property-title-large {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.property-location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

.property-location-info .icon {
  color: #4f46e5;
}

/* Price Section */
.price-section-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.dark-theme .price-section-modern {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.price-display-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.price-main-large {
  font-size: 48px;
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.price-secondary-large {
  font-size: 24px;
  color: var(--text-secondary);
  font-weight: 600;
}

.price-per-sqft {
  font-size: 14px;
  color: var(--text-muted);
  text-align: right;
}

/* Investment Analysis Card */
.investment-analysis {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.investment-analysis::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.investment-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rental-income-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.rental-stat {
  text-align: center;
}

.rental-amount {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rental-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yield-display {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.yield-percentage {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.yield-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Property Features Grid */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-card-modern {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  color: white;
}

.feature-value-large {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-label-modern {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Property Details Sections */
.details-section {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
}

.section-title-modern {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 32px;
  height: 32px;
  background: #4f46e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Features List */
.features-list-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.feature-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item-modern:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.feature-check {
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

/* Transport Links */
.transport-grid {
  display: grid;
  gap: 12px;
}

.transport-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
}

.transport-name {
  font-weight: 600;
  color: var(--text-primary);
}

.transport-distance {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Contact Actions */
.contact-actions-modern {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

/* Hide email button by default */
.contact-actions-modern a[href^="mailto:"] {
  display: none !important;
}

/* Hide premium button for premium users (mansera_7, mansera_14, mansera_28) */
.contact-actions-modern.is-premium-user a[onclick*="showTierRegistration"],
.contact-actions-modern.is-premium-user a[onclick*="Premium"] {
  display: none !important;
}

.contact-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
}

.contact-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.contact-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.contact-btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: #4f46e5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .property-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .property-hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .price-main-large {
    font-size: 36px;
  }
  
  .price-secondary-large {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .property-main-info {
    padding: 24px;
  }
  
  .property-title-large {
    font-size: 24px;
  }
  
  .price-main-large {
    font-size: 28px;
  }
  
  .price-secondary-large {
    font-size: 18px;
  }
  
  .rental-income-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .gallery-thumbnails {
    bottom: 10px;
    padding: 8px;
    gap: 6px;
  }
  
  .gallery-thumb {
    width: 45px;
    height: 30px;
  }
  
  .gallery-thumb.active {
    transform: scale(1.2);
  }
  
  .gallery-thumb.active::after {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .property-content-grid {
    padding: 20px 16px;
  }
  
  .property-main-info {
    padding: 20px;
  }
  
  .price-display-large {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .features-list-modern {
    grid-template-columns: 1fr;
  }
  
  .property-hero {
    height: 40vh;
    min-height: 300px;
    border-radius: 0;
  }
  
  .gallery-thumbnails {
    bottom: 5px;
    padding: 6px;
    gap: 4px;
  }
  
  .gallery-thumb {
    width: 40px;
    height: 25px;
    border-radius: 4px;
  }
  
  .gallery-thumb.active {
    transform: scale(1.25);
    box-shadow: 0 0 0 2px #4f46e5, 0 2px 8px rgba(79, 70, 229, 0.6);
  }
  
  .gallery-thumb.active::after {
    width: 12px;
    height: 12px;
    font-size: 8px;
    top: 1px;
    right: 1px;
  }
  
  .gallery-thumb.active::before {
    animation-duration: 1.5s;
  }
}

/* Dark Mode Enhancements */
.dark-theme .investment-analysis {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dark-theme .feature-icon-large {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dark-theme .contact-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dark-theme .transport-item {
  border-left-color: #6366f1;
}

.dark-theme .section-icon {
  background: #6366f1;
}

.contact-page {
  margin-top: 80px;
}

/* Contact Hero Section */
.contact-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
  z-index: -2;
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.contact-hero-content {
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

.contact-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-logo-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.contact-logo h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  color: white;
}

.contact-hero-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.contact-hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* Contact Content */
.contact-content {
  padding: 80px 0;
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 80px;
  gap: 80px;
  align-items: start;
}

/* Form Section */
.contact-form-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.submit-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.submit-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.submit-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Service Features */
.service-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.green {
  background: #dcfce7;
}

.feature-icon.blue {
  background: #dbeafe;
}

.feature-icon.purple {
  background: #f3e8ff;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Contact CTA */
.contact-cta {
  margin-top: 60px;
  text-align: center;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.contact-cta p {
  font-size: 16px;
  color: #4b5563;
  margin: 0;
}

.contact-cta strong {
  color: #1f2937;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-content {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 0 40px;
  }
  
  .contact-logo {
    flex-direction: column;
    gap: 12px;
  }
  
  .contact-logo h1 {
    font-size: 36px;
  }
  
  .contact-hero-content h2 {
    font-size: 20px;
  }
  
  .contact-form-section {
    padding: 24px;
  }
  
  .form-title {
    font-size: 24px;
  }
  
  .contact-content {
    padding: 40px 0;
  }
  
  .contact-cta {
    margin-top: 40px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .contact-logo-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .contact-logo h1 {
    font-size: 28px;
  }
  
  .contact-hero-content h2 {
    font-size: 18px;
  }
  
  .contact-form-section {
    padding: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
}

.login-page {
  margin-top: 80px;
}

/* Login Hero Section */
.login-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.login-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('uk-houses.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.login-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.login-hero-content {
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.login-logo-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.login-logo h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  color: white;
}

.login-hero-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.login-hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* Login Content */
.login-content {
  padding: 80px 0;
  background: #f8fafc;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 80px;
  gap: 80px;
  align-items: start;
}

/* Form Section */
.login-form-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Service Features */
.service-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.green {
  background: #dcfce7;
}

.feature-icon.blue {
  background: #dbeafe;
}

.feature-icon.purple {
  background: #f3e8ff;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Login CTA */
.login-cta {
  margin-top: 60px;
  text-align: center;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.login-cta p {
  font-size: 16px;
  color: #4b5563;
  margin: 0;
}

.login-cta strong {
  color: #1f2937;
}

/* Form Input Styling */
.form-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .login-content {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .login-hero {
    padding: 60px 0 40px;
  }
  
  .login-logo {
    flex-direction: column;
    gap: 12px;
  }
  
  .login-logo h1 {
    font-size: 36px;
  }
  
  .login-hero-content h2 {
    font-size: 20px;
  }
  
  .login-form-section {
    padding: 24px;
  }
  
  .form-title {
    font-size: 24px;
  }
  
  .login-content {
    padding: 40px 0;
  }
  
  .login-cta {
    margin-top: 40px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .login-logo-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .login-logo h1 {
    font-size: 28px;
  }
  
  .login-hero-content h2 {
    font-size: 18px;
  }
  
  .login-form-section {
    padding: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
}

/* Local Area Information Section */
.local-area-section {
  margin-top: 32px;
}

.local-info-section {
  margin-bottom: 32px;
}

.local-info-section:last-child {
  margin-bottom: 0;
}

.local-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.local-info-icon {
  font-size: 20px;
}

.local-info-grid {
  display: grid;
  gap: 12px;
}

.local-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.local-info-item:hover {
  background: var(--card-bg);
  border-color: var(--button-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.local-info-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.local-info-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.local-info-type {
  font-size: 14px;
  color: var(--text-secondary);
}

.local-info-distance {
  font-weight: 600;
  color: var(--button-bg);
  font-size: 14px;
  white-space: nowrap;
  margin-left: 16px;
}

/* Map container styling */
.map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.map-icon {
  font-size: 18px;
}

.map-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-expand-btn:hover {
  background: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.map-expand-btn svg {
  width: 16px;
  height: 16px;
}

.interactive-map {
  position: relative;
  transition: all 0.3s ease;
}

/* Leaflet map customizations */
.leaflet-container {
  font-family: 'Inter', sans-serif;
  border-radius: 0 0 12px 12px;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
  background: white;
}

.custom-property-marker {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.custom-station-marker,
.custom-school-marker {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Map controls styling */
.leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 18px;
  width: 32px;
  height: 32px;
  line-height: 30px;
}

.leaflet-control-zoom a:hover {
  background: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
}

/* Attribution styling */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 8px;
}

.map-placeholder {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.2);
}

/* Dark mode adjustments */
.dark-theme .local-info-item {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.dark-theme .local-info-item:hover {
  background: var(--card-bg);
  border-color: var(--button-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .map-placeholder {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border-color: var(--border-color) !important;
}

.dark-theme .map-placeholder div {
  color: var(--text-primary) !important;
}

/* Dark mode for map components */
.dark-theme .map-header {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.dark-theme .map-expand-btn {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.dark-theme .map-expand-btn:hover {
  background: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
}

.dark-theme .leaflet-control-zoom a {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.dark-theme .leaflet-control-zoom a:hover {
  background: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
}

.dark-theme .leaflet-control-attribution {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-secondary);
}

.dark-theme .leaflet-popup-content-wrapper {
  background: var(--card-bg);
  color: var(--text-primary);
}

.dark-theme .leaflet-popup-tip {
  background: var(--card-bg);
}

/* Responsive design for local area info */
@media (max-width: 768px) {
  .local-info-item {
    padding: 12px;
  }
  
  .local-info-name {
    font-size: 14px;
  }
  
  .local-info-type {
    font-size: 12px;
  }
  
  .local-info-distance {
    font-size: 12px;
    margin-left: 8px;
  }
  
  .map-placeholder {
    height: 220px !important;
  }
  
  .interactive-map {
    height: 250px !important;
  }
  
  .local-info-title {
    font-size: 16px;
  }
  
  .map-header {
    padding: 10px 12px;
  }
  
  .map-title {
    font-size: 14px;
  }
  
  .map-expand-btn {
    width: 28px;
    height: 28px;
  }
  
  .map-expand-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Fullscreen map adjustments for mobile */
  .map-container[style*="position: fixed"] .map-header {
    padding: 12px 16px;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .map-container[style*="position: fixed"] .interactive-map {
    height: calc(100vh - 50px) !important;
  }
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  display: none;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 30px;
  z-index: 10;
}

.modal-nav-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 28px;
  font-weight: bold;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.modal-nav-btn:active {
  transform: scale(1.05);
}

.modal-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:disabled:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.prev-btn::before {
  content: '←';
  font-size: 32px;
  line-height: 1;
}

.next-btn::before {
  content: '→';
  font-size: 32px;
  line-height: 1;
}

.modal-caption {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
}

.modal-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Modal thumbnails navigation */
.modal-thumbnails {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 600px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.modal-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  border: 2px solid transparent;
  position: relative;
}

.modal-thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-thumb.active {
  opacity: 1;
  border-color: #4f46e5;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-thumb:hover img {
  transform: scale(1.05);
}

/* Image hover overlays */
.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.image-focus-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.hero-image-container:hover .image-focus-overlay {
  opacity: 1;
}

.focus-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.focus-text {
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

/* Enhanced hover states for thumbnails */
.gallery-thumb:hover:not(.active) {
  opacity: 0.9;
  transform: scale(1.05);
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Active indicator overlay */
.gallery-thumb.active::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  border: 1px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.clickable-thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-focus-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.gallery-thumb:hover .thumbnail-focus-overlay {
  opacity: 1;
}

.gallery-thumb:hover .clickable-thumbnail {
  transform: scale(1.05);
}

.focus-icon-small {
  color: white;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.clickable-image {
  transition: transform 0.2s ease;
}

.hero-image-container:hover .clickable-image {
  transform: scale(1.02);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dark mode adjustments */
.dark-theme .modal-close,
.dark-theme .modal-nav-btn {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary);
}

.dark-theme .modal-close:hover,
.dark-theme .modal-nav-btn:hover {
  background: rgba(30, 41, 59, 0.9);
}

.dark-theme .modal-caption {
  color: var(--text-primary);
}

.dark-theme .modal-counter {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
}

/* Dark mode gallery thumbnail adjustments */
.dark-theme .gallery-thumbnails {
  background: rgba(30, 41, 59, 0.8);
}

.dark-theme .gallery-thumb.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(99, 102, 241, 0.5);
}

.dark-theme .gallery-thumb.active::before {
  border-color: #6366f1;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.15));
}

.dark-theme .gallery-thumb.active::after {
  background: #6366f1;
  border-color: var(--card-bg);
}

.dark-theme .gallery-thumb:hover:not(.active) {
  border-color: rgba(99, 102, 241, 0.6);
}

@keyframes activeGlowDark {
  0% {
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.6);
  }
  100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.9);
  }
}

.dark-theme .gallery-thumb.active::before {
  animation: activeGlowDark 2s ease-in-out infinite alternate;
}

/* Dark mode modal thumbnails */
.dark-theme .modal-thumbnails {
  background: rgba(30, 41, 59, 0.6);
}

.dark-theme .modal-thumb.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

.dark-theme .modal-thumb:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
    gap: 12px;
  }
  
  .modal-image {
    max-height: 65vh;
  }
  
  .modal-close {
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .modal-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .prev-btn::before,
  .next-btn::before {
    font-size: 28px;
  }
  
  .modal-navigation {
    padding: 0 15px;
  }
  
  .modal-caption {
    font-size: 14px;
    max-width: 90%;
  }
  
  .modal-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .modal-thumbnails {
    max-width: 90%;
    padding: 12px;
    gap: 6px;
  }
  
  .modal-thumb {
    width: 50px;
    height: 35px;
  }
  
  .focus-text {
    font-size: 14px;
  }
  
  .focus-icon {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .modal-close {
    top: -30px;
    right: -30px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .modal-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .prev-btn::before,
  .next-btn::before {
    font-size: 24px;
  }
  
  .modal-navigation {
    padding: 0 10px;
  }
  
  .modal-caption {
    font-size: 13px;
  }
  
  .modal-image {
    max-height: 60vh;
  }
  
  .modal-thumbnails {
    max-width: 95%;
    padding: 8px;
    gap: 4px;
    margin-top: 12px;
  }
  
  .modal-thumb {
    width: 42px;
    height: 28px;
    border-radius: 4px;
  }
}

.ptf-container {
    position: relative;
    width: 100%;
}

.ptf-selected-display {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptf-dropdown {
    display: none;
    position: absolute;
    background-color: var(--input-bg);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    z-index: 100;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.ptf-show {
    display: block;
}

.ptf-checkbox-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.ptf-checkbox-container label {
    margin-left: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

/* Hide filter tabs (Gayrimenkul Mevcut / Anlık Döviz Kurları) */
.filter-tabs {
    display: none !important;
}

/* Hide MANSERA text labels and containers (logo already includes text) */
.logo-title,
.logo-text,
.hero-title,
.login-logo h1 {
    display: none !important;
}

/* Replace house emoji with Mansera logo */
.logo-house span,
.logo-icon-large span,
.login-logo-icon span {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('mansera-logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    line-height: 0;
}

/* Make sure the emoji is completely hidden */
.logo-house span::before,
.logo-icon-large span::before,
.login-logo-icon span::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('mansera-logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ensure logo containers have proper dimensions */
.logo-house,
.logo-icon-large,
.login-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar logo sizing - 64x64 */
.logo-house {
    width: 64px;
    height: 64px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* Hero logo sizing - 128x128 */
.logo-icon-large {
    width: 128px;
    height: 128px;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

/* Login logo sizing - 128x128 */
.login-logo-icon {
    width: 128px;
    height: 128px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

/* UK houses background is now applied to .hero-background above */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Ensure hero content is above overlay */
.hero-content,
.hero-logo,
.hero-title,
.hero-description,
.hero-buttons {
    position: relative;
    z-index: 2;
}