:root {
  --brand: #0b6e4f;
  --brand-dark: #094f39;
  --accent: #d4af37;

  /* Fixed neutrals - independent of the admin's brand-color picker, so the
     redesign holds together no matter which of the 7 themes is active. */
  --paper: #faf9f6;
  --ink: #1c1c1a;
  --ink-soft: #5a5650;
  --line: rgba(28, 28, 26, .13);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body { font-family: var(--font-body); color: var(--ink); }

h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.btn-brand { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.site-footer { background-color: var(--brand-dark); }

/* Christmas theme: gentle falling snow overlay */
.snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1040;
}
.snowfall .snowflake {
  position: absolute;
  top: -5%;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,.2);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes snow-fall {
  0% { transform: translateY(-10vh) translateX(0); }
  50% { transform: translateY(50vh) translateX(15px); }
  100% { transform: translateY(110vh) translateX(-15px); }
}
@media (prefers-reduced-motion: reduce) {
  .snowfall { display: none; }
}

.announcement-bar {
  background-color: var(--brand);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.announcement-bar .marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.announcement-bar:hover .marquee-track { animation-play-state: paused; }
.announcement-bar .marquee-item {
  display: inline-block;
  padding: 0.4rem 3rem;
  font-size: 0.9rem;
}
.announcement-bar .marquee-item a { color: #fff; text-decoration: underline; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar .marquee-track { animation: none; }
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65));
}
.hero .container { position: relative; z-index: 1; }

.location-chip {
  display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  background: #fff; color: #22282b; text-decoration: none; margin: .25rem;
  border: 1px solid #dee2e6; font-size: .9rem;
}
.location-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/*
 * Property card: a "ledger" treatment instead of the generic rounded
 * SaaS-card look - sharp corners, a hairline border, and a single thin
 * top rule in the site's accent color as the recurring signature mark.
 * Deliberately built on the theme's CSS variables (not fixed hex) so it
 * still reads as intentional under any of the 7 admin-selectable themes.
 */
.property-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: none !important;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.25rem rgba(28, 28, 26, .1) !important;
}
.property-card .card-img-top { height: 200px; object-fit: cover; border-radius: 0; }
.property-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.property-card .property-price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--brand);
  font-size: .95rem;
}
.property-card .card-text,
.property-card .property-location { color: var(--ink-soft); }

/* Status tag: a small squared-off marker instead of a floating pill -
   keeps the same semantic Bootstrap color (bg-success etc.) but matches
   the card's document-like geometry. */
.property-card .status-tag {
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  padding: .3rem .55rem;
  letter-spacing: .01em;
}

.property-card .btn { border-radius: 2px; font-weight: 600; }

.stat-counter { font-size: 2.25rem; font-weight: 700; color: var(--brand); }

.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 1050;
  background: #25D366; color: #fff; width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,.25); text-decoration: none;
}
.floating-whatsapp:hover { color: #fff; transform: scale(1.05); }

.footer-link { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-link:hover { color: #fff; }

.pricing-table th { background: var(--brand); color: #fff; }

.gallery-thumb { cursor: pointer; height: 160px; object-fit: cover; width: 100%; border-radius: .5rem; }

.thumb-select {
  cursor: pointer; width: 84px; height: 64px; object-fit: cover; border-radius: .4rem;
  border: 2px solid transparent; opacity: .7; transition: opacity .15s, border-color .15s;
}
.thumb-select:hover { opacity: 1; }
.thumb-select.active { opacity: 1; border-color: var(--brand); }

.admin-sidebar { min-height: 100vh; background: #101a14; }
.admin-sidebar a { color: rgba(255,255,255,.75); text-decoration: none; display: block; padding: .55rem 1rem; border-radius: .4rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--brand); color: #fff; }
.sidebar-group-label {
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 1rem 1rem .35rem;
}
.sidebar-group-label:first-of-type { padding-top: .5rem; }

.rich-editor-toolbar { display: flex; gap: .25rem; margin-bottom: .35rem; }
.rich-editor-content {
  min-height: 6em; height: auto; overflow-y: auto;
}
.rich-editor-content:focus { outline: none; box-shadow: 0 0 0 .25rem rgba(11,110,79,.15); border-color: var(--brand); }
.rich-editor-content ul, .rich-editor-content ol { margin-bottom: 0; padding-left: 1.2em; }

.rich-content ul, .rich-content ol { padding-left: 1.2em; }
.rich-content p:last-child { margin-bottom: 0; }
