﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-gold: #D4AF37;
  --accent-gold: #FFD700;
  --primary-black: #0F172A;
  --primary-blue: #1E40AF;
  --accent-blue: #3B82F6;
  --dark: #0F172A;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(212,175,55,0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
}

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

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

.btn-ghost:hover {
  background: var(--border);
}

.btn-danger {
  background: #DC3545;
  color: var(--white);
}

.btn-danger:hover {
  background: #C82333;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--primary-gold);
}

.logo span {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #2E7D32 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0V0zm40 40m-35 0a35 35 0 1 0 70 0 35 35 0 1 0-70 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 30px;
}

/* Search Box */
.search-box {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.search-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.search-row input,
.search-row select {
  flex: 1;
  min-width: 150px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.search-row input:focus,
.search-row select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.search-row .btn {
  flex: 0 0 auto;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.listing-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--light);
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-gold);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.listing-content {
  padding: 20px;
}

.listing-price {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.listing-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.listing-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.listing-location {
  font-size: 14px;
  color: var(--text-light);
}

.listing-payments {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--light);
  border-radius: 6px;
}

.listing-payments small {
  color: var(--text-light);
  font-size: 12px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 15px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

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

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 25px 20px;
  max-height: 200px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Listing Detail */
.listing-detail {
  padding: 40px 0;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  height: 450px;
  background: var(--light);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

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

.listing-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.listing-info .price {
  font-size: 36px;
  color: var(--primary-gold);
  margin-bottom: 25px;
}

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

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 18px;
  font-weight: 600;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.features-list span {
  background: var(--light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.contact-form {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius);
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.contact-form .btn {
  width: 100%;
}

/* Admin */
.admin-header {
  background: var(--dark);
  color: var(--white);
  padding: 20px 0;
}

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

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-gold);
}

.admin-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.admin-form h2 {
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
}

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

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input {
  width: auto;
}

.listings-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.listings-table th {
  background: var(--light);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.listings-table tr:hover {
  background: var(--light);
}

.listings-table .actions {
  display: flex;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

/* Utility */
.hidden {
  display: none !important;
}

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 {
    font-size: 32px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

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

  .gallery-main {
    height: 300px;
  }

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

  .admin-header .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

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

  .calculator-grid .form-group {
    grid-column: auto;
  }

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

  .modal {
    max-height: 100vh;
    border-radius: 0;
  }
}

  \\.nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 99;
  }

  \\.nav-links.active {
    display: flex;
  }

  \\.nav-links li {
    width: 100%;
  }

  \\.nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 {
    font-size: 32px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

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

  .gallery-main {
    height: 300px;
  }

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

  .admin-header .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* AI Chatbot */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'DM Sans', sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-toggle.open {
  display: none;
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.show {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h4 {
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header h4 span {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.chatbot-message.bot {
  background: var(--light);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-message.user {
  background: var(--primary-gold);
  color: var(--primary-black);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: 18px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 25px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.chatbot-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--accent-gold);
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px;
  margin-bottom: 10px;
}

.chatbot-quick button {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-quick button:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--primary-black);
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h3 {
  font-size: 20px;
}

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

.modal-body {
  padding: 25px;
}

.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.modal-tabs button {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.modal-tabs button.active {
  background: var(--primary-gold);
  color: var(--primary-black);
}

/* Calculator */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.calculator-grid .form-group {
  grid-column: span 2;
}

.result-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-black) 100%);
  color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
}

.result-card .amount {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.result-card .label {
  opacity: 0.8;
  font-size: 14px;
}

.result-card .details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.9;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.compare-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.compare-card.selected {
  border-color: var(--primary-gold);
}

.compare-card-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.compare-card-image {
  height: 180px;
  overflow: hidden;
}

.compare-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-card-content {
  padding: 20px;
}

.compare-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compare-spec {
  font-size: 14px;
}

.compare-spec .label {
  color: var(--text-light);
  display: block;
  font-size: 12px;
}

.compare-spec .value {
  font-weight: 600;
}

/* Trade-In */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.trade-result {
  background: var(--primary-black);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
}

.trade-result .value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-gold);
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 25px;
}

.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-black);
}

.review-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.review-stars {
  color: var(--primary-gold);
  font-size: 14px;
}

.review-text {
  color: var(--text-light);
  line-height: 1.7;
}

.review-date {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

/* Saved Searches */
.saved-searches {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

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

.search-item-info h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.search-item-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* Vehicle History */
.history-report {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.history-section {
  margin-bottom: 30px;
}

.history-section h4 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-gold);
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.history-item .label {
  color: var(--text-light);
}

.history-item .value {
  font-weight: 600;
}

.history-item .value.good {
  color: #22C55E;
}

.history-item .value.warning {
  color: #F59E0B;
}

.history-item .value.bad {
  color: #EF4444;
}

/* State Pages */
.state-hero {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 100%);
  padding: 60px 0;
  color: var(--white);
}

.state-content {
  max-width: 900px;
  margin: -40px auto 60px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.state-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .calculator-grid .form-group {
    grid-column: auto;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    max-height: 100vh;
    border-radius: 0;
  }
}


