:root {
  --primary: #c62828;
  --primary-dark: #8e0000;
  --primary-light: #ff5f52;
  --secondary: #1565c0;
  --muted: #f1f4f6;
  --card-bg: #eef0f3;
  --dark-text: #333;
  --light-text: #666;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #fff;
  color: var(--dark-text);
  padding-bottom: 70px;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
}
a { all: unset; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  font-family: 'Montserrat';
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  font-size: 1.4rem;
}
.nav-icon {
  font-size: 1.2rem;
  color: #444;
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 0px;
  right: 1px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-post-property {
  background: var(--primary);
  color: white;
  border-radius: 30px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
}
.btn-post-property:hover {
  background: var(--primary);
  color: white;
}

/* Search */
.search-container {
  padding: 12px 20px;
  background: var(--muted);
  border-bottom: 1px solid #e5e5e5;
  max-width: 1200px;
  margin: 0 auto;
}
.search-bar {
  background: white;
  border-radius: 50px;
  padding: 8px 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}
.search-input {
  border: none;
  outline: none;
  flex: 1;
  padding: 6px 0;
}
.search-input::placeholder {
  color: #999;
}
.location-filter {
  display: flex;
  align-items: center;
  background: var(--primary-light);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.location-filter:hover {
  background: var(--primary);
}
.location-filter i {
  margin-right: 5px;
  font-size: 0.8rem;
}

/* Category grid */
.cat-grid {
  padding: 12px 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cat-thumb {
  height: 120px;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-label {
  text-align: center;
  padding: 12px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--white);
  color: var(--dark-text);
}

/* Promo Carousel */
.promo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.promo-carousel {
  flex: 1;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}
.promo-slide {
  padding: 20px;
  border-radius: 16px;
  color: white;
  min-height: 140px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.promo-slide.active {
  opacity: 1;
  position: relative;
}
.promo-slide h5,
.promo-slide p {
  color: #fff !important;
}
.promo-slide-1 { background: linear-gradient(90deg, #6e62f1, #7ad0f0); }
.promo-slide-2 { background: linear-gradient(90deg, #ff7e5f, #feb47b); }
.promo-slide-3 { background: linear-gradient(90deg, #3a7bd5, #00d2ff); }

.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.carousel-control {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-control:hover {
  background: rgba(0,0,0,0.4);
  transform: scale(1.05);
}
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Property Experts */
.expert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 10px;
  border-radius: 12px;
}
.expert:hover {
  background: var(--muted);
}
.tph-expert-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  margin: 0 auto;
  transition: var(--transition);
  background: white;
}
.expert:hover .tph-expert-icon {
  transform: scale(1.1);
  background-color: var(--primary-light);
}
.expert .label {
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

/* Property Cards */
.property-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  max-width: 1200px;
  margin: 0 auto;
}
.property-scroll-container::-webkit-scrollbar {
  display: none;
}
.property-scroll-container a {
  display: inline-block;
}
.property-card {
  display: inline-block;
  width: 300px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: var(--transition);
  margin: 0 10px;
  white-space: normal;
  vertical-align: top;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.property-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-badge {
  display: flex;
  gap: 6px;
  position: absolute;
  top: 15px;
  left: 15px;
}
.property-badge span {
  background: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.property-content {
  padding: 15px;
  height: 180px;
  display: flex;
  flex-direction: column;
}
.property-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.property-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
.property-address {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 15px 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-weight: 800;
  color: var(--dark-text);
  margin: 0;
}
.view-all {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Other Services */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  margin: 0 auto;
  transition: var(--transition);
  background: white;
}
.service-item:hover .service-icon {
  transform: scale(1.1);
  background-color: var(--primary-light);
}
.service-item {
  text-align: center;
  padding: 15px 10px;
  border-radius: 12px;
  transition: var(--transition);
}
.service-item:hover {
  background: var(--muted);
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 40px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-title {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #ecf0f1;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}
.footer-contact {
  color: #bdc3c7;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.footer-social a {
  color: white;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: #95a5a6;
  font-size: 0.9rem;
}
.footer-subscribe {
  display: flex;
  margin-top: 15px;
}
.footer-subscribe input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.footer-subscribe button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.footer-subscribe button:hover {
  background: var(--primary-dark);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-item {
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  transition: var(--transition);
}
.nav-item.active {
  color: var(--primary);
}
.bottom-nav-icon {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 10px 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--light-text);
}
.testimonial-author {
  display: flex;
  align-items: center;
}
.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
}
.author-details h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.author-details p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--light-text);
}

.page-transition {
  position: fixed;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  transition: top 0.40s ease;
}
.page-transition.active {
  top: 0;
}

/* Responsive */
@media (max-width: 576px) {
  .cat-thumb { height: 70px; }
  .cat-label { font-size: 0.8rem; padding: 10px 5px; }
  .property-image { height: 180px; }
  .brand { font-size: 1.4rem; }
  .btn-post-property { padding: 8px 15px; font-size: 0.8rem; }
  .promo-slide { min-height: 120px; padding: 15px; }
  .property-card { width: 280px; height: 370px; }
  .property-content { height: 170px; }
  .location-filter { padding: 8px 12px; }
  .location-filter i { margin-right: 5px; font-size: 1rem; }
  .lc { display: none; }
}
@media (min-width: 768px) {
  .cat-thumb { height: 140px; }
  .bottom-nav { display: none; }
}