/* WildAcres Design System */
:root {
  --bark: #2C1810;
  --sage: #4A6741;
  --sage-light: #5C8A50;
  --sand: #D4C5A9;
  --sand-light: #F5F0E8;
  --cream: #FDFBF7;
  --rust: #A0522D;
  --gold: #C49A3C;
  --charcoal: #1A1A1A;
  --danger: #C0392B;
  --success: #27AE60;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--bark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--bark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--sage); }

.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--sage-light) !important; }

/* Page layout */
.page { padding-top: 72px; min-height: 100vh; }

.page-hero {
  padding: 80px 40px 60px;
  background: linear-gradient(165deg, var(--cream) 0%, #EDE8DC 40%, #D8CEBC 100%);
  text-align: center;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(44, 24, 16, 0.6);
  max-width: 500px;
  margin: 0 auto;
}

.container { max-width: 1100px; margin: 0 auto; padding: 40px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 40px; }
.container-xs { max-width: 560px; margin: 0 auto; padding: 40px; }

/* Cards */
.card {
  background: white;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.06);
}

/* Forms */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(44, 24, 16, 0.12);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--bark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.form-input::placeholder { color: rgba(44, 24, 16, 0.3); }
textarea.form-input { resize: vertical; min-height: 100px; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232C1810' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.8rem; color: rgba(44, 24, 16, 0.4); margin-top: 6px; }

/* Checkbox pill groups */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }

.checkbox-pill { display: flex; align-items: center; }
.checkbox-pill input { display: none; }

.checkbox-pill label {
  padding: 8px 16px;
  border: 1px solid rgba(44, 24, 16, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.checkbox-pill input:checked + label {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--sage); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--sage-light); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--bark); border: 1px solid rgba(44, 24, 16, 0.12); }
.btn-secondary:hover { background: var(--sand-light); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: #D4A84C; transform: translateY(-1px); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Property card */
.property-card {
  background: white;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(44, 24, 16, 0.08);
}

.property-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--sage) 0%, #3A5533 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.property-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 10.5V7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v3.5'/%3E%3Cpath d='m12 2 5 8.5H7z'/%3E%3Cpath d='M2 22h20'/%3E%3Cpath d='m3 22 7-10'/%3E%3Cpath d='m21 22-7-10'/%3E%3C/svg%3E") center/60px no-repeat;
  opacity: 0.6;
}

.property-card-body { padding: 24px; }

.property-card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.property-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(44, 24, 16, 0.5);
  margin-bottom: 12px;
}

.property-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tag {
  padding: 4px 12px;
  background: rgba(74, 103, 65, 0.1);
  color: var(--sage);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-gold { background: rgba(196, 154, 60, 0.12); color: var(--gold); }

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(44, 24, 16, 0.06);
}

.property-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sage);
}

.property-card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(44, 24, 16, 0.5);
}

.property-card-avail {
  font-size: 0.8rem;
  color: rgba(44, 24, 16, 0.4);
}

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

/* Calendar */
.calendar {
  background: white;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 16px;
  padding: 24px;
}

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

.calendar-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.calendar-nav { display: flex; gap: 8px; }

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(44, 24, 16, 0.12);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.calendar-nav button:hover { background: var(--sand-light); }

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

.calendar-day-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(44, 24, 16, 0.35);
  text-transform: uppercase;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: default;
  transition: all 0.15s;
}

.calendar-day.available {
  background: rgba(74, 103, 65, 0.08);
  color: var(--sage);
  cursor: pointer;
  font-weight: 500;
}

.calendar-day.available:hover { background: var(--sage); color: white; }
.calendar-day.selected { background: var(--sage); color: white; font-weight: 600; }
.calendar-day.in-range { background: rgba(74, 103, 65, 0.15); color: var(--sage); }
.calendar-day.unavailable { color: rgba(44, 24, 16, 0.15); }
.calendar-day.empty { visibility: hidden; }
.calendar-day.past { color: rgba(44, 24, 16, 0.12); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending { background: rgba(196, 154, 60, 0.15); color: var(--gold); }
.badge-paid { background: rgba(74, 103, 65, 0.12); color: var(--sage); }
.badge-confirmed { background: rgba(39, 174, 96, 0.15); color: var(--success); }
.badge-cancelled { background: rgba(192, 57, 43, 0.15); color: var(--danger); }

/* Table */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(44, 24, 16, 0.4);
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

td {
  padding: 16px;
  border-bottom: 1px solid rgba(44, 24, 16, 0.04);
  font-size: 0.9rem;
}

tr:hover td { background: rgba(74, 103, 65, 0.02); }

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

.stat-card {
  background: white;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.stat-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
}

.stat-card p {
  font-size: 0.8rem;
  color: rgba(44, 24, 16, 0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Booking summary */
.booking-summary {
  background: var(--sand-light);
  border-radius: 16px;
  padding: 28px;
}

.booking-summary h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.booking-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
  font-size: 0.9rem;
}

.booking-row:last-child { border-bottom: none; }

.booking-row.total {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 2px solid rgba(44, 24, 16, 0.1);
  border-bottom: none;
}

.booking-row.deposit {
  color: var(--sage);
  font-weight: 600;
}

/* Footer */
.app-footer {
  padding: 40px;
  text-align: center;
  background: var(--bark);
  color: rgba(245, 240, 232, 0.4);
  font-size: 0.85rem;
}

.app-footer span { color: var(--gold); font-weight: 500; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 40px; }

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.empty-state p { color: rgba(44, 24, 16, 0.5); margin-bottom: 24px; }

/* Loading */
.loading { text-align: center; padding: 60px; color: rgba(44, 24, 16, 0.4); }

.loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 16px auto 0;
  border: 3px solid rgba(74, 103, 65, 0.2);
  border-top: 3px solid var(--sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 0.9rem; }
.alert-success { background: rgba(39, 174, 96, 0.1); color: var(--success); border: 1px solid rgba(39, 174, 96, 0.2); }
.alert-error { background: rgba(192, 57, 43, 0.1); color: var(--danger); border: 1px solid rgba(192, 57, 43, 0.2); }
.alert-info { background: rgba(74, 103, 65, 0.08); color: var(--sage); border: 1px solid rgba(74, 103, 65, 0.15); }

/* Section divider */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 24px;
}

/* Success page */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* Detail rows */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-item label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(44, 24, 16, 0.4);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 1rem;
  color: var(--bark);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .container, .container-sm, .container-xs { padding: 20px; }
  .page-hero { padding: 60px 24px 40px; }
  .form-row { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
