/* CSS Variables */
:root {
  --emerald-700: #00CC99;
  --gray-800: #1f2937;
  --primary-color: #00CC99;
  --green-50: #f0fdf4;
  --green-100: #ffffff;
  --green-500: #00CC99;
  --green-600: #00CC99;
  --green-700: #00CC99;
  --green-800: #00CC99;
  --green-900: #00CC99;
  --blue-900: #00CC99;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #1f2937;
  --white: #ffffff;
  --black: #000000;
  --primary-color: #00CC99;
  --emerald-700: #00CC99;
  --gray-800: #1f2937;
  --secondary-color: #0d1d25;
  --accent-color: #eef5f4;
  --text-color: #333;
  --light-text: #fff;
  --gray-text: #6e7b89;
  --border-color: #e6e6e6;
}

.booking-container {
  position: sticky;
  top: 24px;
  z-index: 10;
}

/* Make it responsive */
@media (max-width: 1023px) {
  .booking-container {
    position: static;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ctn-preloader {
  position: relative;
}

.home-icon {
  width: 60px;
  height: 60px;
  position: relative;
  margin-bottom: 20px;
}

.roof {
  width: 60px;
  height: 20px;
  background-color: #00CC99;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  position: absolute;
  top: 0;
}

.walls {
  width: 40px;
  height: 30px;
  background-color: #0d1d25;
  position: absolute;
  top: 20px;
  left: 10px;
}

.door {
  width: 15px;
  height: 20px;
  background-color: #00CC99;
  position: absolute;
  bottom: 0;
  left: 22.5px;
}

.windows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 30px;
  top: 25px;
  left: 15px;
}

.window {
  width: 8px;
  height: 8px;
  background-color: #fff;
}

.txt-loading {
  text-align: center;
  font-weight: 700;
  font-size: 3rem;
  margin-top: 20px;
}

.letters-loading {
  color: #00CC99;
  opacity: 0;
  animation: loadingAnimation 2s infinite;
  display: inline-block;
  margin: 0 2px;
}

@keyframes loadingAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.letters-loading:nth-child(2) {
  animation-delay: 0.2s;
}
.letters-loading:nth-child(3) {
  animation-delay: 0.4s;
}
.letters-loading:nth-child(4) {
  animation-delay: 0.6s;
}
.letters-loading:nth-child(5) {
  animation-delay: 0.8s;
}
.letters-loading:nth-child(6) {
  animation-delay: 1s;
}

/* Page Progress */
.paginacontainer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.progress-wrap {
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background-color: white;
  z-index: 10000;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.progress-wrap:hover {
  transform: scale(1.1);
}

.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.progress-circle path {
  stroke: #00CC99;
  stroke-width: 4;
  fill: transparent;
  stroke-dasharray: 307.919;
  stroke-dashoffset: 307.919;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 10ms linear;
}

.progress-wrap i {
  color: #00CC99;
  z-index: 2;
  font-size: 16px;
}

/* Header Styles */
.header-area {
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: white;
}

.header-area.sticky {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-elements {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: #00CC99;
  letter-spacing: 2px;
}

.main-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-menu ul li a {
  font-weight: 500;
  color: #0d1d25;
  position: relative;
  padding: 5px 0;
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
  color: #00CC99;
}

.main-menu ul li a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00CC99;
}

.btn-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef5f4;
  border-radius: 50%;
  color: #00CC99;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #00CC99;
  color: white;
  border-radius: 8px;
  font-weight: 500;
}

.header-btn i {
  margin-left: 8px;
}

/* Mobile Header */
.mobile-header {
  display: none;
  padding: 15px 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Show mobile header only on screens smaller than 992px */
@media (max-width: 991px) {
  .mobile-header {
    display: block;
  }

  /* Hide desktop header on mobile */
  header {
    display: none !important;
  }
}

/* Show desktop header only on screens 992px and larger */
@media (min-width: 992px) {
  header {
    display: block;
  }

  /* Hide mobile header on desktop */
  .mobile-header {
    display: none !important;
  }

  /* Hide mobile sidebar on desktop */
  .mobile-sidebar {
    display: none !important;
  }

  /* Hide mobile overlay on desktop */
  .mobile-overlay {
    display: none !important;
  }
}

.mobile-header-elements {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mobile-logo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--emerald-700);
  letter-spacing: 2px;
  text-decoration: none;
}

/* Hamburger Icon */
.mobile-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef5f4;
  border-radius: 50%;
  color: var(--emerald-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-icon:hover {
  background-color: var(--emerald-700);
  color: white;
  transform: scale(1.05);
}

.mobile-nav-icon i {
  font-size: 1.1rem;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 999;
  padding: 30px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  right: 0;
}

/* Sidebar Header */
.logosicon-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.logos {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--emerald-700);
  letter-spacing: 2px;
}

.menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef5f4;
  border-radius: 50%;
  color: var(--emerald-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-close:hover {
  background-color: var(--emerald-700);
  color: white;
  transform: scale(1.05);
}

.menu-close i {
  font-size: 1.1rem;
}

/* Mobile Navigation */
.mobile-nav {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-list li {
  margin-bottom: 0;
  border-bottom: 1px solid #f5f5f5;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

/* Animation delays for staggered effect */
.mobile-sidebar.active .mobile-nav-list li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-sidebar.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-list li a {
  display: block;
  padding: 15px 0;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-list li a:hover {
  color: var(--emerald-700);
  padding-left: 10px;
}

.mobile-nav-list li a.active {
  color: var(--emerald-700);
  font-weight: 600;
}

.mobile-nav-list li a.active::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--emerald-700);
  border-radius: 2px;
}

/* Mobile Login Section */
.mobile-login-section {
  margin-top: 30px;
  padding: 30px 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.8) 30%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  position: relative;
}

.mobile-login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  right: -30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.mobile-login-btn {
  width: 100%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #00CC99;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.mobile-login-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 204, 153, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.mobile-login-btn:hover::after {
  width: 300px;
  height: 300px;
}

.mobile-login-btn:hover {
  border-color: #00CC99;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 204, 153, 0.15);
}

.login-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.mobile-login-btn:hover .login-arrow {
  transform: translateX(4px);
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  height: 400px;
  background: linear-gradient(to right, #00CC99, #00CC99);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00CC99;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 16px;
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-address {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
}

.hero-address i {
  margin-right: 8px;
}

/* Main Content Layout */
.main-content {
  padding: 32px 16px;
}

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .content-layout {
    flex-direction: row;
  }

  .main-column {
    width: 70%;
  }

  .sidebar {
    width: 30%;
  }
}

.main-column {
  width: 100%;
}

.sidebar {
  width: 50%;
  position: relative;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: 600px;
  margin-bottom: 32px;
}

.gallery-main {
  grid-column: 1;
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-main img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-main:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
}

.view-all-photos {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.view-all-photos:hover {
  background-color: #fff;
}

/* Property Details */
.property-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .property-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.property-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.property-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.property-badge {
  background-color: #00CC99;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
}

.period {
  font-size: 0.875rem;
  font-weight: 400;
  color: #777;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.feature i {
  color: #00CC99;
}

.property-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.property-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.property-card p {
  color: #555;
  margin-bottom: 24px;
}

.key-feature {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.key-feature:last-child {
  margin-bottom: 0;
}

.key-feature i {
  font-size: 1.25rem;
  color: #00CC99;
  margin-top: 4px;
}

.key-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.key-feature p {
  margin-bottom: 0;
}

.view-neighborhood {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00CC99;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

/* More Properties Section */
.more-properties {
  margin-top: 48px;
  margin-bottom: 40px;
}

.more-properties h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #333;
  position: relative;
  padding-bottom: 12px;
}

.more-properties h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background-color: #00CC99;
  border-radius: 2px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

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

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

.property-card-small {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.property-card-small:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.property-card-small:hover .property-image img {
  transform: scale(1.05);
}

.property-badge-small {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.property-badge-small.rent {
  background-color: #00CC99;
}

.property-badge-small.sale {
  background-color: #e67e22;
}

.property-content {
  padding: 20px;
}

.property-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.3;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-location i {
  color: #777;
  flex-shrink: 0;
}

.property-price-small {
  font-weight: 700;
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 16px;
}

.property-features-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  font-size: 0.875rem;
  color: #666;
  border-top: 1px solid #eee;
  text-align: center;
}

.feature-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #555;
}

.feature-small i {
  color: #00CC99;
  font-size: 18px;
  margin-bottom: 5px;
}

.browse-all {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.browse-all-btn {
  background-color: #00CC99;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.browse-all-btn:hover {
  background-color: #009975;
}

/* Booking Form */
.booking-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.booking-header {
  background-color: #00CC99;
  color: #fff;
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.booking-price {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.booking-period {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

.favorite-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.favorite-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.favorite-btn.active {
  background-color: white;
  color: #e74c3c;
}

.booking-form {
  padding: 20px;
}

.booking-field {
  margin-bottom: 16px;
}

.booking-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.input-icon {
  position: relative;
}

.input-icon input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: all 0.2s;
}

.input-icon input:focus {
  border-color: #00CC99;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.1);
  background-color: #fff;
}

.input-icon i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.pricing-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.price-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eaeaea;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.price-row.total span:last-child {
  font-size: 18px;
  font-weight: 700;
}

.book-now-btn {
  width: 100%;
  background-color: #00CC99;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.book-now-btn i {
  font-size: 14px;
}

.book-now-btn:hover {
  background-color: #00b386;
}

/* Agent Card */
.agent-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.agent-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.agent-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.agent-details p {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
}

.agent-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.agent-phone i {
  color: #00CC99;
}

/* Photo Gallery Modal */
.photo-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-gallery-modal.active {
  display: flex;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  z-index: 1010;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.close-modal:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  z-index: 1010;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

.modal-image-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  margin: 0 16px;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  padding: 80px 0 30px;
  background-color: var(--secondary-color);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-about h4 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 15px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 30px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.newsletter-form button i {
  margin-left: 5px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

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

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact ul li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-contact ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li a:hover {
  color: white;
}

.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
}

.copyright ul {
  display: flex;
}

.copyright ul li {
  margin-left: 15px;
}

.copyright ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.copyright ul li a:hover {
  color: white;
}

/* Animation Styles */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 0.5s ease;
}

.form-error {
  color: #e74c3c;
  margin-bottom: 16px;
  font-size: 14px;
}

input.error {
  border-color: #e74c3c !important;
}

/* Ripple Animation */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Media Queries */
@media (max-width: 991px) {
  /* Mobile menu system */
  .mobile-header {
    display: block;
  }

  /* Hide desktop header completely */
  header {
    display: none !important;
  }

  /* Hide desktop main menu */
  .main-menu {
    display: none !important;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;

  }
}

@media (min-width: 992px) {
  /* Desktop menu system */
  header {
    display: block;
  }

  .main-menu {
    display: block;
  }

  /* Hide mobile elements completely on desktop */
  .mobile-header {
    display: none !important;
  }

  .mobile-sidebar {
    display: none !important;
  }

  .mobile-overlay {
    display: none !important;
  }

  .mobile-nav-icon {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;

  }

  .newsletter-form {

    flex-direction: row;
    gap: 0;
    margin-bottom: 30px;
  }

  .newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
  }

  .newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  .newsletter-form button:hover {
    background-color: #00a085;
  }

  .copyright {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .copyright ul {
    justify-content: center;
  }

  .mobile-sidebar {
    width: 280px;
    padding: 25px 20px;
  }

  .mobile-nav-list li a {
    font-size: 1rem;
    padding: 12px 0;
  }

  .logos {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  /* Force hide desktop header on mobile */
  header {
    display: none !important;
  }

  /* Ensure mobile header is visible */
  .mobile-header {
    display: block !important;
  }

  /* Hero Section Mobile */
  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-address {
    font-size: 12px;
  }

  /* Content Layout Mobile */
  .main-content {
    padding: 16px;
  }

  .content-layout {
    flex-direction: column;
    gap: 24px;
  }

  .main-column {
    width: 100%;
  }

  .sidebar {
    width: 100%;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px repeat(4, 150px);
    height: auto;
    gap: 8px;
  }

  .gallery-main {
    grid-column: 1;
    grid-row: 1;
    border-radius: 8px 8px 0 0;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    border-radius: 0;
  }

  .gallery-item:nth-child(5) {
    border-radius: 0 0 8px 8px;
  }

  /* Property Header Mobile */
  .property-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .property-title h2 {
    font-size: 1.5rem;
  }

  /* Property Features Mobile */
  .property-features {
    justify-content: center;
    gap: 16px;
  }

  /* Property Cards Mobile */
  .property-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .property-card h3 {
    font-size: 1.1rem;
  }

  /* Key Features Mobile */
  .key-feature {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .key-feature i {
    font-size: 1.5rem;
    margin-top: 0;
  }

  /* More Properties Mobile */
  .property-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .more-properties h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  /* Booking Card Mobile */
  .booking-card {
    margin-bottom: 16px;
  }

  .booking-header {
    padding: 16px;
  }

  .booking-price {
    font-size: 24px;
  }

  .booking-form {
    padding: 16px;
  }

  .pricing-summary {
    padding: 12px;
  }

  /* Agent Card Mobile */
  .agent-card {
    padding: 16px;
    margin-top: 16px;
  }

  .agent-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .agent-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  /* Modal Mobile */
  .modal-image-container {
    height: 70vh;
    margin: 0 8px;
  }

  .close-modal,
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .close-modal {
    top: 8px;
    right: 8px;
  }

  .gallery-nav.prev {
    left: 8px;
  }

  .gallery-nav.next {
    right: 8px;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    font-size: 1.5rem;
    text-align: left;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    text-align: left;
  }

  .social-links {
    justify-content: left;
  }

  .footer-contact ul li {
    justify-content: left;
    text-align: left;
  }

  .mobile-sidebar {
    width: 260px;
    padding: 20px 15px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    height: 400px;
  }

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

@media (min-width: 768px) and (max-width: 1023px) {
  /* Content Layout Tablet */
  .content-layout {
    flex-direction: column;
    gap: 32px;
  }

  .main-column,
  .sidebar {
    width: 100%;
  }

  /* Gallery Tablet */
  .gallery-grid {
    height: 400px;
    gap: 10px;
  }

  /* Property Header Tablet */
  .property-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .property-title h2 {
    font-size: 1.6rem;
  }

  /* Property Grid Tablet */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Booking Card Tablet */
  .booking-container {
    position: static;
  }

  .booking-card {
    max-width: 400px;
    margin: 0 auto 24px;
  }

  /* Agent Card Tablet */
  .agent-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Responsive utilities */
.text-center-mobile {
  text-align: left;
}

@media (max-width: 767px) {
  .text-center-mobile {
    text-align: center;
  }
}

.hide-mobile {
  display: block;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 767px) {
  .show-mobile {
    display: block;
  }
}