:root {
  --ink: #1d302d;
  --muted: #596c67;
  --paper: #f5f7f4;
  --paper-strong: #edf2ed;
  --white: #fff;
  --green: #fe7133;
  --green-dark: #fe7133;
  --green-soft: #fff0e8;
  --line: #dfe7e2;
  --shadow: 0 18px 48px rgba(29, 48, 45, .1);
  --brand-primary: #fe7133;
  --brand-primary-hover: #fe7133;
  --surface-raised: #fff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

body {
  background: #f5f7f4;
  color: var(--ink);
}

button, input, select, textarea {
  accent-color: var(--brand-primary);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(254, 113, 51, .32);
  outline-offset: 3px;
}

.topbar {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 24px rgba(29, 48, 45, .055);
}

.brand-mark {
  border-radius: 11px;
  background: var(--brand-primary);
}

.brand-dot, .nav-link:hover, .nav-link.active, .header-account-link:hover,
.header-account-register > span:first-child, .account-icon, .underlined-link span {
  color: var(--brand-primary);
}

.search-panel .field-label {
  color: var(--brand-primary);
}

.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(254, 113, 51, .1), transparent 25%),
    linear-gradient(135deg, #fff 0%, #f5f7f4 70%, #edf2ed 100%);
}

.hero-copy {
  max-width: 520px;
}

.hero h1, .admin-hero h1 {
  color: var(--ink);
}

.search-panel {
  border-color: rgba(29, 48, 45, .1);
  box-shadow: 0 18px 42px rgba(29, 48, 45, .11);
}

.search-field select {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button {
  min-height: 42px;
  border-radius: var(--radius-sm);
}

.button-dark, .subscriber-properties-search-button {
  background: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(254, 113, 51, .18);
  color: #fff;
}

.button-dark:hover, .subscriber-properties-search-button:hover {
  background: var(--brand-primary-hover);
}

.button-outline {
  border-radius: var(--radius-sm);
}

.category-chip {
  min-height: 42px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.category-chip:hover, .category-chip.selected {
  border-color: rgba(254, 113, 51, .38);
  background: var(--green-soft);
  color: var(--brand-primary-hover);
  box-shadow: 0 6px 18px rgba(254, 113, 51, .08);
}

.category-symbol, .property-detail-status, .property-detail-facts > div > span,
.property-amenity-group li span, .property-description-toggle,
.property-price-card h2, .property-sleeping-arrangements h2,
.property-night-stepper button, .property-guests-trigger > svg,
.property-similar-card .listing-price, .listing-price,
.subscriber-property-listing small span,
.subscriber-property-actions button:hover:not(:disabled),
.subscriber-property-actions .subscriber-favorite-view:hover,
.subscriber-property-actions button[data-remove-favorite],
.subscriber-invoice-edit-button:hover, .subscriber-inbox-reply > strong {
  color: var(--brand-primary);
}

.header-account-lock {
  color: var(--brand-primary);
}

.listing-verified, .listing-badge.is-featured, .subscriber-property-featured,
.subscriber-inbox-bell small {
  background: var(--brand-primary);
}

.subscriber-profile-upload-button {
  background: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(254, 113, 51, .18);
}

.subscriber-profile-upload-button:hover {
  background: var(--brand-primary-hover);
}

.listing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.listing-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 48, 45, .07);
}

.listing-grid .listing-title-row h3 {
  color: #000;
}

.listing-card:hover {
  box-shadow: 0 18px 38px rgba(29, 48, 45, .13);
}

.listing-image {
  height: clamp(180px, 15vw, 248px);
}

.listing-info {
  background: #fff;
}

.feature-band {
  border-radius: var(--radius-lg);
  background: #eaf0e9;
}

.feature-stamp, .visual-tag {
  border-radius: var(--radius-md);
}

.property-detail-view, .subscriber-profile-view, .admin-view {
  background: #f5f7f4;
}

.property-detail-shell, .subscriber-profile-shell {
  color: var(--ink);
}

.property-description-card, .property-price-card, .property-sleeping-arrangements,
.property-availability-section, .property-booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(29, 48, 45, .06);
}

.property-owner {
  background: var(--brand-primary);
  box-shadow: 0 0 0 100vmax var(--brand-primary);
}

.property-owner-contact:hover {
  color: var(--brand-primary-hover);
}

.subscriber-profile-sidebar, .subscriber-profile-main, .subscriber-dashboard-card,
.subscriber-favorites-card, .subscriber-inbox-card, .admin-content, .stat-card {
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(29, 48, 45, .055);
}

.subscriber-profile-nav {
  min-height: 42px;
  border-radius: var(--radius-sm);
}

.subscriber-profile-nav.active {
  background: var(--green-soft);
  color: var(--brand-primary-hover);
}

.subscriber-profile-nav.active .subscriber-profile-nav-icon {
  color: var(--brand-primary);
}

.subscriber-profile-field input, .subscriber-profile-field textarea,
.subscriber-properties-search input, .subscriber-inbox-reply-form input,
.subscriber-inbox-reply-form textarea, .subscriber-invoice-filters input,
.subscriber-invoice-filters select, .property-booking-card input,
.property-booking-card select {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.admin-sidebar {
  background: #edf2ed;
  border-right-color: var(--line);
}

.sidebar-link:hover, .sidebar-link.active {
  border-radius: var(--radius-sm);
  background: #dce8df;
  color: var(--brand-primary-hover);
}

.sidebar-icon, .sidebar-menu-toggle, .admin-tab.active {
  color: var(--brand-primary);
}

.admin-tab.active {
  border-color: var(--brand-primary);
}

.admin-stats {
  gap: 18px;
}

.stat-card {
  padding: 22px;
  background: #fff;
}

.admin-content {
  padding: 0 24px 24px;
  background: #fff;
}

.admin-table th {
  color: var(--muted);
}

.site-footer {
  background: var(--footer-page-background, #1d302d);
  color: var(--footer-policy-background, #eef4ef);
}

.site-footer .footer-column h2, .site-footer .footer-brand,
.site-footer .footer-brand .brand-mark {
  color: var(--footer-widget-title-color, #fff);
}

.site-footer .brand-mark {
  background: var(--brand-primary);
}

.site-footer a:hover {
  color: #f3b297;
}

.site-footer .footer-main {
  background-color: var(--footer-page-background, #1d302d);
}

.site-footer .footer-bottom {
  background: var(--footer-rights-background, #1d302d);
  color: var(--footer-copyright-color, #eef4ef);
  border-top-color: rgba(255, 255, 255, .12);
}

.site-footer .footer-column p,
.site-footer .footer-column h3,
.site-footer .footer-company,
.site-footer .footer-contact > a,
.site-footer .footer-contact > span,
.site-footer .footer-featured-item,
.site-footer .footer-featured-item small,
.site-footer .footer-featured-empty,
.site-footer .currency-rate-note {
  color: var(--footer-policy-background, #eef4ef) !important;
}

.site-footer .footer-contact-icon {
  color: var(--footer-policy-background, #eef4ef);
}

.scroll-top-button {
  border-radius: 14px;
  background: var(--brand-primary);
}

.toast, .modal, .currency-custom-options, .property-guests-panel {
  border-radius: var(--radius-md);
}

@media (max-width: 1199px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .hero-copy {
    max-width: 45%;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 8px 12px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero {
    background: linear-gradient(145deg, #fff 0%, #f1f5f0 100%);
  }

  .listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-card {
    max-width: 480px;
    justify-self: center;
  }

  .subscriber-profile-sidebar, .subscriber-profile-main,
  .subscriber-dashboard-card {
    border-radius: var(--radius-md);
  }

  .admin-content {
    padding: 0 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
