:root {
  color-scheme: light;
  --background: #F7F4EE;
  --background-alt: #F2ECE1;
  --surface: #EFEAE1;
  --surface-light: #FCFAF6;
  --text: #241C17;
  --text-muted: #6F665E;
  --gold: #B98232;
  --gold-light: #D6B06A;
  --gold-hover: #A67228;
  --burgundy: #7D181A;
  --burgundy-dark: #631214;
  --burgundy-light: #962023;
  --espresso: #241C17;
  --border: #DCD4C8;
  --border-light: #EBE5DB;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  color-scheme: light;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text);
}

.display-font {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Nav Link Hover & Active Indicators */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

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

/* Card Hover Elevation */
.card-hover,
.property-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover,
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(125, 24, 26, 0.12);
  border-color: var(--gold);
}

/* Hero Tab Animation */
.hero-tab {
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.hero-tab:hover {
  transform: translate(100%, -2px);
}

/* Custom Range Slider Styling */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: #DCD4C8;
  border-radius: 2px;
  outline: none;
  margin: 8px 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #7D181A;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #631214;
}

input[type=range]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #7D181A;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Accessible Modal Backdrops */
.modal-backdrop {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Luxury Form Fields & Controls Styling
   ========================================================================== */

/* Universal Form Field Baseline */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
textarea,
select {
  font-family: inherit;
  border-radius: 2px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease;
}

/* Light Field Hover & Focus */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):hover,
textarea:not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):hover,
select:not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):hover {
  border-color: #B5ABA0;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):focus,
textarea:not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):focus,
select:not([class*="bg-transparent"]):not([class*="bg-[#480E15]"]):focus {
  outline: none;
  border-color: var(--burgundy) !important;
  box-shadow: 0 0 0 3px rgba(125, 24, 26, 0.12) !important;
}

/* Dark Field Styling (Valuation card & dark sections) */
input[class*="bg-[#480E15]"]:hover,
select[class*="bg-[#480E15]"]:hover {
  border-color: rgba(214, 176, 106, 0.5);
}

input[class*="bg-[#480E15]"]:focus,
select[class*="bg-[#480E15]"]:focus {
  outline: none;
  border-color: var(--gold-light) !important;
  box-shadow: 0 0 0 3px rgba(214, 176, 106, 0.25) !important;
}

/* Dropdown / Select Custom Arrow */
select:not(.appearance-none) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237D181A' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.875rem;
  padding-right: 2.25rem !important;
  cursor: pointer;
}

/* Dark Dropdown Arrow */
select[class*="bg-[#480E15]"]:not(.appearance-none) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D6B06A' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Select Option Styling */
select option {
  background-color: #FCFAF6;
  color: var(--espresso);
  padding: 8px 12px;
  font-size: 13px;
}

select[class*="bg-[#480E15]"] option {
  background-color: var(--espresso);
  color: #FFFFFF;
}

/* Placeholder Styling */
::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

/* Checkbox and Radio styling */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--burgundy);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  transform: scale(1.05);
}

/* Date and Time Inputs */
input[type="date"],
input[type="time"] {
  color-scheme: light;
  cursor: pointer;
}

