/**
 * Custom CSS Styles for Vacation Rental Site
 * Redfin-inspired color scheme with improved form readability
 * Zillow-style property gallery
 */

:root {
  /* Main color palette inspired by Redfin */
  --main-red: #c82021;         /* Primary color - Redfin red */
  --dark-red: #a71b1c;         /* Darker red for hover states */
  --light-red: #f1d6d6;        /* Light red for subtle backgrounds */
  --accent-red: #e83e3e;       /* Accent red for highlights */
  --black: #000000;            /* Black for headers and important text */
  --dark-gray: #333333;        /* Dark gray for text */
  --medium-gray: #767676;      /* Medium gray for secondary text */
  --light-gray: #f5f5f5;       /* Light gray for backgrounds */
  --off-white: #fafafa;        /* Off-white for card backgrounds */
  --white: #ffffff;            /* Pure white */
  --border-color: #e0e0e0;     /* Border color for UI elements */
  --success-green: #20a36a;    /* Success green */
  --warning-orange: #ff9800;   /* Warning orange */
  --error-red: #c82021;        /* Error red - same as main red */
  
  /* New tan colors to replace blues and purples */
  --main-tan: #d2b48c;         /* Main tan color */
  --dark-tan: #bc9d6b;         /* Dark tan for hover states */
  --light-tan: #f5efe2;        /* Light tan for backgrounds */
  --link-color: #aa8855;       /* Tan link color replacing blue */
  --icon-color: #c1a46f;       /* Tan icon color replacing purple */
}

/* Body and general styles */
body {
  color: var(--dark-gray);
  background-color: var(--white);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--dark-tan);
  text-decoration: underline;
}

/* Buttons - Redfin style */
.btn {
  font-weight: 600;
  border-radius: 4px;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.btn-primary {
  background-color: var(--main-tan);
  border-color: var(--main-tan);
  color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--dark-tan) !important;
  border-color: var(--dark-tan) !important;
  box-shadow: 0 0 0 0.2rem rgba(194, 164, 111, 0.25) !important;
}

.btn-outline-primary {
  color: var(--main-tan);
  border-color: var(--main-tan);
}

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

/* Tan buttons */
.btn-tan {
  background-color: var(--main-tan);
  border-color: var(--main-tan);
  color: white;
}

.btn-tan:hover, .btn-tan:focus, .btn-tan:active {
  background-color: var(--dark-tan) !important;
  border-color: var(--dark-tan) !important;
  box-shadow: 0 0 0 0.2rem rgba(194, 164, 111, 0.25) !important;
  color: white;
}

.btn-outline-tan {
  color: var(--main-tan);
  border-color: var(--main-tan);
  background-color: transparent;
}

.btn-outline-tan:hover {
  background-color: var(--main-tan);
  border-color: var(--main-tan);
  color: white;
}

.btn-secondary {
  background-color: white;
  border-color: var(--border-color);
  color: var(--black);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--light-gray);
  border-color: var(--border-color);
  color: var(--black);
}

.btn-dark {
  background-color: var(--black);
  border-color: var(--black);
  color: white;
}

.btn-dark:hover {
  background-color: #333;
  border-color: #333;
}

.btn-success {
  background-color: var(--success-green);
  border-color: var(--success-green);
}

.btn-success:hover {
  background-color: #178c5b;
  border-color: #178c5b;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

/* Cards - Zillow style */
.card {
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s ease;
  background-color: white;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(194, 164, 111, 0.15);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

/* Forms - Redfin style */
.form-control {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  padding: 0.625rem 0.75rem;
  height: calc(3rem + 2px);
  font-size: 1rem;
  transition: all 0.2s ease;
  color: var(--black);
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--main-tan);
  box-shadow: 0 0 0 2px rgba(194, 164, 111, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: var(--medium-gray);
  font-size: 0.95rem;
  font-weight: 400;
}

.form-control-lg {
  height: calc(3.25rem + 2px);
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
}

.form-control-sm {
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

.form-label {
  color: var(--black);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-text {
  color: var(--medium-gray);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-select {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  height: calc(3rem + 2px);
  background-position: right 0.75rem center;
  color: var(--black);
}

.form-select:focus {
  border-color: var(--main-tan);
  box-shadow: 0 0 0 2px rgba(194, 164, 111, 0.2);
}

/* Search form - Redfin style */
.search-form {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
}

.search-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  padding-right: 1rem;
  flex-grow: 1;
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  line-height: 1.5;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.search-suggestion-item:hover {
  background-color: var(--light-gray);
}

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

/* Checkboxes and radio buttons - Redfin style */
.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.3em;
  border: 1.5px solid var(--medium-gray);
  background-color: white;
}

.form-check-input:checked {
  background-color: var(--main-tan);
  border-color: var(--main-tan);
}

.form-check-input:focus {
  border-color: var(--main-tan);
  box-shadow: 0 0 0 2px rgba(194, 164, 111, 0.2);
}

.form-check-label {
  font-size: 0.95rem;
  color: var(--black);
  font-weight: 400;
}

.invalid-feedback {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.375rem;
  font-weight: 500;
}

/* Navbar - Redfin style */
.navbar {
  background-color: var(--black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.navbar-brand {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
}

.navbar-brand:hover, .navbar-brand:focus {
  color: white;
}

.navbar-nav {
  margin-left: 0;
  align-items: stretch;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  padding: 1rem !important;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link:hover, .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
  text-decoration: none;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  font-weight: 600;
}

.navbar-auth {
  margin-left: auto;
  display: flex;
}

.navbar-auth .nav-link {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dropdown-menu {
  margin-top: 0;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--main-tan);
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--light-gray);
}

.dropdown-item.active {
  background-color: var(--main-tan);
  color: white;
}

.navbar-toggler {
  border: none;
  padding: 1rem;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Badges - Redfin style */
.badge {
  font-weight: 600;
  padding: 0.4em 0.65em;
  border-radius: 4px;
  font-size: 0.75rem;
}

.badge.bg-primary {
  background-color: var(--main-tan) !important;
}

.badge.bg-secondary {
  background-color: var(--medium-gray) !important;
}

.badge.bg-success {
  background-color: var(--success-green) !important;
}

.badge.bg-warning {
  background-color: var(--warning-orange) !important;
}

.badge.bg-danger {
  background-color: var(--error-red) !important;
}

.badge.bg-info {
  background-color: var(--link-color) !important;
}

.badge.bg-dark {
  background-color: var(--black) !important;
}

/* Redfin-style pill badges */
.badge-pill {
  border-radius: 50rem;
  padding: 0.4em 0.85em;
}

/* Alerts - Redfin style */
.alert {
  border-radius: 4px;
  padding: 1rem 1.25rem;
  border-width: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-primary {
  background-color: var(--light-tan);
  color: var(--main-tan);
  border-left: 4px solid var(--main-tan);
}

.alert-success {
  background-color: rgba(32, 163, 106, 0.08);
  color: var(--success-green);
  border-left: 4px solid var(--success-green);
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.08);
  color: var(--warning-orange);
  border-left: 4px solid var(--warning-orange);
}

.alert-danger {
  background-color: rgba(200, 32, 33, 0.08);
  color: var(--error-red);
  border-left: 4px solid var(--error-red);
}

.alert-info {
  background-color: rgba(194, 164, 111, 0.08);
  color: var(--link-color);
  border-left: 4px solid var(--link-color);
}

.alert-dark {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--black);
  border-left: 4px solid var(--black);
}

/* Collapsible Booking Form */
.booking-header {
  cursor: pointer;
}

.booking-header:hover {
  background-color: var(--light-tan);
}

.booking-toggle-icon {
  transition: transform 0.3s ease;
}

.fa-rotate-180 {
  transform: rotate(180deg);
}

/* Amenity tags in columns */
.amenity-tag {
  background-color: var(--light-tan);
  color: var(--dark-gray);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  min-height: 40px;
  border-color: var(--main-tan) !important;
}

.amenity-tag:hover {
  background-color: var(--main-tan);
  color: white;
}

.amenity-tag .remove-amenity {
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  font-size: 1rem;
  border-radius: 50%;
  margin-left: 0.5rem;
  background: transparent;
}

.amenity-tag:hover .remove-amenity {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

/* Property card styling - Redfin style */
.property-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid var(--border-color);
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.property-card .property-img-container {
  position: relative;
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.property-card .property-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-card .property-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.property-card .property-badge {
  background-color: #c82021;
  color: white;
  padding: 6px 12px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.property-card .property-badge.new {
  background-color: var(--success-green);
}

.property-card .property-badge.discount {
  background-color: var(--warning-orange);
}

.property-card .property-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  color: var(--black);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.property-card .property-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-card .property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-tan);
  margin-bottom: 0.5rem;
}

.property-card .property-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.property-card .property-address {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.property-card .property-features {
  display: flex;
  justify-content: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.property-card .property-feature {
  display: flex;
  align-items: center;
}

.property-card .property-feature i {
  margin-right: 0.35rem;
  color: var(--main-tan);
}

.property-card .property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.property-card .property-agent {
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.property-card .property-date {
  font-size: 0.85rem;
  color: var(--medium-gray);
}

/* Calendar styles - Redfin style */
.calendar-container {
  background-color: white;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--medium-gray);
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background-color: var(--light-tan);
  color: var(--main-tan);
  border-color: var(--main-tan);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.5rem;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--medium-gray);
  padding: 0.5rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.calendar-day {
  aspect-ratio: 1/1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--black);
}

.calendar-day:hover {
  background-color: var(--light-tan);
  border-color: var(--main-tan);
}

.calendar-day.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--main-tan);
}

.calendar-day.disabled {
  background-color: var(--light-gray);
  color: var(--medium-gray);
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.outside-month {
  color: var(--medium-gray);
  background-color: var(--off-white);
}

.calendar-day.available {
  background-color: rgba(32, 163, 106, 0.1);
}

.calendar-day.unavailable {
  background-color: rgba(200, 32, 33, 0.1);
  color: var(--medium-gray);
  text-decoration: line-through;
}

.calendar-day.selected {
  background-color: var(--main-tan);
  color: white;
  border-color: var(--main-tan);
  font-weight: 600;
}

.calendar-day.selected:hover {
  background-color: var(--dark-tan);
}

.calendar-day .price-indicator {
  position: absolute;
  bottom: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--medium-gray);
}

.calendar-day.selected .price-indicator {
  color: rgba(255, 255, 255, 0.9);
}

/* Popular destinations section - Redfin style */
.destinations-section {
  background-color: var(--off-white);
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.destination-card {
  position: relative;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.destination-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-card-img {
  transform: scale(1.05);
}

.destination-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.destination-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.destination-card-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.destination-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--main-tan);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Owner section - Redfin style */
.owner-section {
  background-color: var(--off-white);
  padding: 4rem 0;
}

.owner-cta {
  background-color: white;
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--border-color);
}

.owner-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.owner-cta-text {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Week availability styles for bulk management - Redfin style */
.week-management-container {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.week-management-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-management-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
}

.week-rows-container {
  /* Removing max-height and scrolling to show all weeks */
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.week-row {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.week-row:hover {
  background-color: var(--light-tan);
}

.week-header {
  background-color: var(--main-tan);
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.quarter-header {
  background-color: var(--dark-tan);
  color: white;
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
}

.week-action-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

/* Analytics dashboard styles - Redfin style */
.dashboard-container {
  padding: 1.5rem;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.dashboard-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dashboard-filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--medium-gray);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.stat-card .stat-title {
  color: var(--medium-gray);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.stat-card .stat-value {
  color: var(--black);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .stat-change {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-card .stat-change.positive {
  color: var(--success-green);
}

.stat-card .stat-change.negative {
  color: var(--error-red);
}

.stat-card .stat-change i {
  margin-right: 0.35rem;
}

.chart-container {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* Feature icons - Redfin style */
.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  background-color: var(--light-tan);
  color: var(--main-tan);
}

/* Custom text color classes - replacing Bootstrap utilities */
.text-tan {
  color: var(--icon-color) !important;
}

/* Replace text-primary with text-tan */
.text-primary {
  color: var(--icon-color) !important;
}

/* Replace text-info with text-tan */
.text-info {
  color: var(--icon-color) !important;
}

/* Replace bg-primary-subtle with bg-tan */
.bg-primary-subtle {
  background-color: var(--light-tan) !important;
}

/* Nav tabs styling */
.nav-tabs .nav-link {
  color: var(--dark-gray) !important;
  background-color: transparent;
}

.nav-tabs .nav-link.active {
  color: var(--black) !important;
  font-weight: 600;
  background-color: white;
  border-color: var(--border-color) var(--border-color) white;
}

.nav-tabs .nav-link:hover:not(.active) {
  color: var(--main-tan) !important;
  border-color: var(--border-color);
}

/* Replace bg-info-subtle with bg-tan */
.bg-info-subtle {
  background-color: var(--light-tan) !important;
}

.feature-icon.teal {
  background-color: rgba(194, 164, 111, 0.1);
  color: var(--icon-color);
}

.feature-icon.green {
  background-color: rgba(32, 163, 106, 0.1);
  color: var(--success-green);
}

.feature-card {
  padding: 2rem;
  text-align: center;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Accessibility improvements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  [data-bs-theme="dark"] {
    --main-tan: #c2a46f;
    --dark-tan: #a8885a;
    --light-tan: #f5efdf;
    --success-green: #20a36a;
    --warning-orange: #ff9800;
    --error-red: #c82021;
    --dark-gray: #e1e1e1;
    --medium-gray: #9aa0a6;
    
    .bg-dark-subtle {
      background-color: #212529 !important;
    }
    
    .form-control, .form-select {
      background-color: #2b3035;
      border-color: #495057;
      color: #e1e1e1;
      border-radius: 4px;
    }
    
    .card {
      background-color: #2b3035;
      border-color: #495057;
      border-radius: 4px;
    }
    
    .form-control:focus, .form-select:focus {
      background-color: #2b3035;
      border-color: var(--main-tan);
    }
  }
}
/* Zillow-style Property Gallery */
.property-gallery-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 4px;
  margin-bottom: 1.5rem;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-main {
  grid-row: 1 / span 2;
  height: 100%;
}

.gallery-main-image {
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-main-image:hover img {
  transform: scale(1.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 4px;
  height: 100%;
}

.gallery-grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Gallery Modal (Overlay) */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  overflow: hidden;
}

.gallery-modal.active {
  display: block;
}

.gallery-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-modal-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.gallery-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.gallery-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gallery-modal-image-container {
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-modal-image {
  height: 100%;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-nav-prev,
.gallery-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gallery-nav-prev {
  left: 20px;
}

.gallery-nav-next {
  right: 20px;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.gallery-modal-thumbnails {
  height: 100px;
  display: flex;
  overflow-x: auto;
  padding: 10px;
  gap: 10px;
  scrollbar-width: thin;
}

.gallery-thumbnail {
  height: 80px;
  width: 120px;
  flex-shrink: 0;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.gallery-thumbnail.active {
  border-color: white;
  opacity: 1;
}

.gallery-thumbnail:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .property-gallery-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .gallery-grid {
    display: none;
  }
}
