/* Howard County Luxury Homes - Royal Estate Theme */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary-blue: #2c3e50;
  --primary-blue-dark: #1a252f;
  --accent-gold: #b89d64;
  --accent-gold-hover: #a08a55;
  --price-red: #c0392b;
  --bg-light: #ecf0f1;
  --bg-gray: #bdc3c7;
  --sidebar-dark: #5d6d7e;
  --footer-dark: #1c1c1c;
  --footer-texture: #2a2a2a;
  --white: #ffffff;
  --text-dark: #333333;
  --text-muted: #7f8c8d;
  --border-light: #ddd;
  --search-blue: #3498db;
  --success: #27ae60;
  --error: #e74c3c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

a {
  color: var(--search-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== TOP HEADER ========== */
.top-header {
  background: var(--primary-blue);
  padding: 12px 0;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 50px;
  width: auto;
}

.top-contact {
  color: var(--white);
  font-size: 13px;
}

.top-contact span {
  color: var(--accent-gold);
  font-weight: 600;
}

.cart-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 13px;
  margin-left: 20px;
}

.cart-badge-wrap:hover {
  color: var(--accent-gold);
}

.cart-badge {
  background: var(--accent-gold);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ========== NAVIGATION ========== */
.main-nav {
  background: var(--white);
  border-radius: 8px 8px 0 0;
  margin-top: -1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.main-nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 16px 18px;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-blue);
  color: var(--white);
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  border-top: 3px solid var(--accent-gold);
}

.main-nav li:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}

.main-nav .dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.nav-toggle {
  display: none;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* ========== HERO SLIDER ========== */
.hero-section {
  background: var(--white);
  padding: 20px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.slider-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
}

.slider-main {
  position: relative;
  height: 380px;
}

.slider-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.slider-info h3 {
  font-size: 18px;
  color: var(--text-dark);
}

.slider-info .price {
  font-size: 22px;
  color: var(--price-red);
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
}

.slider-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--text-dark);
}

.slider-thumbs img {
  width: calc(20% - 3.2px);
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.slider-thumbs img.active,
.slider-thumbs img:hover {
  opacity: 1;
}

/* ========== QUICK SEARCH SIDEBAR ========== */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.sidebar-header {
  background: var(--sidebar-dark);
  color: var(--white);
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-body {
  padding: 15px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--search-blue);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.error-msg {
  color: var(--error);
  font-size: 11px;
  margin-top: 3px;
  display: none;
}

.error-msg.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.toggle-switch label {
  font-size: 12px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--search-blue);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background: #2980b9;
  color: var(--white);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--white);
}

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

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

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

.advanced-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}

/* ========== MAIN CONTENT AREA ========== */
.main-content {
  padding: 25px 0 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 20px;
  margin-bottom: 30px;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

/* About Section */
.about-section {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border-light);
}

.about-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-blue);
  text-transform: capitalize;
}

.about-flex {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.about-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent-gold);
}

.about-section p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Feature Boxes */
.features-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 22px;
}

.feature-box h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--primary-blue);
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

.feature-box p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Testimonials */
.testimonial-box .quote {
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.testimonial-box .author {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-blue);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.testimonial-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
}

.testimonial-dots span.active {
  background: var(--accent-gold);
}

/* Loan Calculator */
.calc-result {
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-light);
  text-align: center;
  font-weight: 700;
  color: var(--primary-blue);
}

/* ========== PROPERTY CARDS ========== */
.section-title {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-gold);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.property-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.property-card-header {
  background: var(--bg-light);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-card-header .arrows {
  display: flex;
  gap: 4px;
}

.property-card-header .arrows span {
  cursor: pointer;
  color: var(--text-dark);
  font-size: 14px;
}

.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-card-body {
  padding: 15px;
  text-align: center;
}

.property-card .price {
  font-size: 22px;
  color: var(--price-red);
  font-weight: 700;
  margin-bottom: 12px;
}

.property-card .btn-outline {
  width: 100%;
  padding: 8px;
  font-size: 12px;
}

.property-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.property-card-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 11px;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: var(--primary-blue);
  padding: 30px 0;
  margin-bottom: 30px;
}

.page-header h1 {
  color: var(--white);
  font-size: 28px;
}

.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 8px;
}

.breadcrumb a {
  color: var(--accent-gold);
}

/* ========== PROPERTY DETAIL ========== */
.property-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.detail-gallery {
  margin-bottom: 20px;
}

.detail-main-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  margin-bottom: 10px;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
}

.detail-thumbs img {
  width: calc(25% - 6px);
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
}

.detail-thumbs img.active {
  opacity: 1;
  border-color: var(--accent-gold);
}

.detail-info {
  background: var(--white);
  padding: 25px;
  border: 1px solid var(--border-light);
}

.detail-info .price {
  font-size: 32px;
  color: var(--price-red);
  font-weight: 700;
  margin-bottom: 15px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.detail-meta-item {
  text-align: center;
}

.detail-meta-item strong {
  display: block;
  font-size: 18px;
  color: var(--primary-blue);
}

.detail-meta-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.detail-features li {
  font-size: 13px;
  padding-left: 18px;
  position: relative;
}

.detail-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

/* ========== CART ========== */
.cart-table {
  width: 100%;
  background: var(--white);
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.cart-table th {
  background: var(--primary-blue);
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.cart-table img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.cart-total {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border-light);
  text-align: right;
}

.cart-total h3 {
  font-size: 24px;
  color: var(--price-red);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
}

.checkout-success {
  background: var(--success);
  color: var(--white);
  padding: 20px;
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
  display: none;
}

.checkout-success.show {
  display: block;
}

.btn-remove {
  background: var(--error);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.faq-question {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-gold);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 15px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
  background: var(--white);
  padding: 30px;
  border: 1px solid var(--border-light);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 20px;
  color: var(--primary-blue);
  margin: 25px 0 12px;
}

.legal-content h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin: 18px 0 8px;
  font-family: 'Open Sans', sans-serif;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-content ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.contact-info-box {
  background: var(--white);
  padding: 25px;
  border: 1px solid var(--border-light);
}

.contact-info-box h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.contact-info-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-success {
  background: var(--success);
  color: var(--white);
  padding: 15px;
  margin-bottom: 15px;
  display: none;
}

.form-success.show {
  display: block;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-dark);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.02) 10px,
    rgba(255,255,255,0.02) 20px
  );
  color: #aaa;
  padding: 40px 0 0;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 15px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #aaa;
  font-size: 13px;
  transition: color 0.2s;
}

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

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--footer-texture);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: background 0.2s;
}

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

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.agent-grid img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.agent-grid img:hover {
  filter: grayscale(0%);
}

.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: none;
  font-size: 13px;
  background: var(--white);
}

.footer-contact-form textarea {
  height: 80px;
  resize: vertical;
}

.footer-contact-form .btn {
  background: var(--white);
  color: var(--text-dark);
  width: 100%;
}

.footer-bottom {
  background: #000;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.footer-bottom a {
  color: var(--accent-gold);
  margin: 0 8px;
}

/* ========== ABOUT PAGE ========== */
.about-page-content {
  background: var(--white);
  padding: 30px;
  border: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.about-page-content h2 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.about-page-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 14px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  text-align: center;
  padding: 25px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.value-card .feature-icon {
  margin: 0 auto 15px;
}

.value-card h4 {
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-grid,
  .content-grid,
  .content-grid-2,
  .property-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .slider-main,
  .slider-main img {
    height: 250px;
  }

  .detail-main-img {
    height: 280px;
  }

  .cart-table {
    font-size: 12px;
  }

  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .top-header .container {
    flex-direction: column;
    text-align: center;
  }

  .about-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }
}
