/* ============================================================
   Col Realty — Light Theme
   ============================================================ */

:root {
  --bg:             #f5f6f8;
  --bg-elevated:    #ffffff;
  --card-bg:        #ffffff;
  --accent:         #ff6b3d;
  --accent-soft:    rgba(255, 107, 61, 0.10);
  --accent-strong:  #ff835a;
  --text:           #111827;
  --muted:          #6b7280;
  --border-subtle:  #e5e7eb;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-soft:    0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card:    0 2px 12px rgba(0, 0, 0, 0.06);
}

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

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Containers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 0.7rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, #ffb699, #ff6b3d);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(255, 107, 61, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Nav ──────────────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Nav Dropdown ─────────────────────────────────────────── */
.site-header,
.header-inner,
.main-nav,
.container {
  overflow: visible;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none;
  z-index: 9999;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
}

.dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.92rem;
}

.dropdown-link:hover {
  background: var(--bg);
  color: var(--accent);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.page-main {
  padding: 2.25rem 0 3rem;
}

.listings-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.8rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

@media (max-width: 800px) {
  .listings-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hero-highlight {
  color: var(--accent);
}

.hero-text {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-pill {
  font-size: 0.78rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--muted);
  font-weight: 500;
}

/* ── Search Card ──────────────────────────────────────────── */
.search-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.search-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.search-heading h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.search-heading span {
  font-size: 0.8rem;
  color: var(--muted);
}

.search-row {
  display: grid;
  grid-template-columns: 2.5fr 2fr 2fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 600px) {
  .search-row {
    grid-template-columns: 1fr;
  }
}

.search-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.input-field {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
}

.input-field::placeholder {
  color: #9ca3af;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  border-radius: 10px;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 61, 0.3);
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 61, 0.4);
}

.btn-secondary {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Active Filters ───────────────────────────────────────── */
.filter-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 0.3rem;
}

/* ── Split View ───────────────────────────────────────────── */
.split-view-container {
  display: flex;
  height: calc(100vh - 92px);
  overflow: hidden;
}

.listings-column {
  flex: 0 0 580px;
  width: 580px;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--border-subtle);
}

.map-column {
  flex: 1;
  position: sticky;
  top: 0;
  height: 100%;
  background: var(--bg);
}

@media (max-width: 1100px) {
  .listings-column {
    flex: 0 0 460px;
    width: 460px;
  }
}

@media (max-width: 992px) {
  .split-view-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .listings-column {
    flex: none;
    width: 100%;
    border-right: none;
  }
  .map-column {
    height: 400px;
    order: -1;
  }
}

/* ── Results Count ────────────────────────────────────────── */
.results-count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Listing Grid ─────────────────────────────────────────── */
.listing-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}

.listing-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.listing-image-wrap {
  position: relative;
  padding-top: 64%;
  background: #f3f4f6;
  overflow: hidden;
}

.listing-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-strip {
  position: absolute;
  inset: 0.65rem 0.65rem auto auto;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  font-weight: 500;
}

.badge-primary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 107, 61, 0.3);
}

.badge-status-active {
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803d;
}

.badge-status-pending {
  background: rgba(254, 249, 195, 0.95);
  border-color: rgba(234, 179, 8, 0.4);
  color: #854d0e;
}

.badge-status-sold {
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}

/* ── Card Body ────────────────────────────────────────────── */
.listing-body {
  padding: 0.9rem 1rem 1rem;
}

.listing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.price-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.price-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.listing-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.listing-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-pill {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  font-weight: 500;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.4rem;
}

.page-item .page-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.page-item .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-item.disabled .page-link {
  color: var(--muted);
  cursor: default;
}

/* ── Detail Page ──────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(480px, 1.3fr);
  gap: 36px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-map-wrap {
  position: relative;
}

.detail-map-wrap .card-full {
  position: sticky;
  top: 90px;
}

.detail-map {
  height: 560px;
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-map-wrap .card-full {
    position: static;
  }
  .detail-map {
    height: 320px;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.detail-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: #f3f4f6;
}

.detail-main-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.detail-content {
  padding: 1.1rem 1.3rem 1.3rem;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.detail-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.detail-location {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.detail-section-title {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.detail-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Info Cards ───────────────────────────────────────────── */
.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  font-size: 0.9rem;
}

.info-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-weight: 600;
  color: var(--text);
}

.cta-card {
  text-align: left;
}

.cta-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.cta-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.btn-block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

/* ── Map Card ─────────────────────────────────────────────── */
.map-card {
  padding: 0;
}

.map-container {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
  padding: 1.1rem 0 1.5rem;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Inline Search (Compass-style, inside listings column) ── */
.listings-top {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.listings-top-header {
  margin-bottom: 1rem;
}

.listings-top-header .hero-title {
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}

.listings-top-header .hero-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.inline-search-form {
  width: 100%;
}

.inline-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.inline-search-field {
  flex: 1;
  min-width: 110px;
}

.inline-search-field .input-field {
  border-radius: 8px;
  padding: 0.48rem 0.7rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .inline-search-row {
    flex-direction: column;
  }
  .inline-search-field {
    width: 100%;
  }
}


