@import "trix";

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --brand-ocean: #1f4b99;
    --brand-mist: #f3f5f8;
    --brand-fern: #3aa6b9;
    --brand-sand: #ffffff;
    --brand-ink: #0f172a;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-muted: #f1f4f8;
    --border: #d6dbe3;
    --text: #0f172a;
    --text-muted: #556070;
    --text-soft: #7c8796;
    --accent: #1f4b99;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(31, 75, 153, 0.18);
  }

  .dark {
    --brand-ocean: #7aa3ff;
    --brand-mist: #0b0f16;
    --brand-fern: #4cbfd4;
    --brand-sand: #0e141e;
    --brand-ink: #f8fafc;
    --surface: #0e141e;
    --surface-strong: #0a0f16;
    --surface-muted: #131b26;
    --border: #223044;
    --text: #f8fafc;
    --text-muted: #a0aec0;
    --text-soft: #7f90a8;
    --accent: #5b86ff;
    --accent-contrast: #0b1220;
    --accent-soft: rgba(91, 134, 255, 0.25);
  }

  body {
    background: var(--surface-muted);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: none;
  }

  h1, h2, h3, h4 {
    @apply font-semibold;
    color: var(--text);
  }

  h1, h2 {
    @apply font-display;
  }
}

@layer components {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 10px 20px -14px rgba(31, 75, 153, 0.55);
  }

  .btn-primary:hover {
    background: #173c7e;
    box-shadow: 0 12px 22px -14px rgba(31, 75, 153, 0.65);
    transform: translateY(-1px);
  }

  .btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 8px 18px -14px rgba(17, 24, 39, 0.2);
  }

  .btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
  }

  .btn-accent-outline {
    border-color: rgba(31, 75, 153, 0.65);
    color: #1f4b99;
    background: rgba(31, 75, 153, 0.08);
  }

  .btn-accent-outline:hover {
    background: rgba(31, 75, 153, 0.14);
  }

  .btn-align-input {
    height: 2.75rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    transition: background 0.2s ease;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
  }

  .btn-ghost:hover {
    background: var(--surface-muted);
  }


  .btn-danger {
    background: #ffffff;
    color: #dc2626;
    border-color: #dc2626;
  }

  .btn-danger:hover {
    background: #fef2f2;
    transform: translateY(-1px);
  }

  .user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
  }

  .user-menu-icon {
    width: 18px;
    height: 18px;
  }

  .user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: max-content;
    max-width: min(90vw, 240px);
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.35);
    padding: 0.3rem;
    z-index: 60;
  }

  .user-menu-item {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.62rem;
    border-radius: 0.65rem;
    text-align: left;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    border: none;
    white-space: nowrap;
  }

  .user-menu-item:hover {
    background: var(--surface-muted);
  }

  .user-menu-divider {
    height: 1px;
    margin: 0.35rem 0.2rem;
    background: var(--border);
  }

  .user-menu-signout {
    color: #dc2626;
  }

  .user-menu .button_to {
    width: 100%;
  }

  .btn-link {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .btn-link:hover {
    color: #1d4ed8;
  }

  .auto-dismiss {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .auto-dismiss.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
  }

  .auto-slide {
    animation: slide-down 0.25s ease-out;
  }

  @keyframes slide-down {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 8px 18px -14px rgba(17, 24, 39, 0.18);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .invitation-divider {
    height: 2px;
    background: var(--border);
    margin: 0.5rem 0;
  }

  .booking-row.is-muted {
    opacity: 0.35;
  }

  .booking-row.is-active > a {
    background: var(--surface-strong);
  }

  .admin-row-divider tbody tr {
    border-bottom: 1px solid var(--border);
  }

  .admin-row-divider tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-row {
    cursor: pointer;
  }

  .admin-row.is-muted {
    opacity: 0.35;
  }

  .admin-row.is-active {
    background: var(--surface-strong);
  }

  .admin-row-panel {
    border-bottom: 0;
  }

  .calendar-split {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  @media (min-width: 900px) {
    .calendar-split {
      grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    }
  }

  .calendar-shell {
    border-radius: 1.5rem;
  }

  .calendar-day {
    padding: 0.7rem;
    background: #ffffff;
    position: relative;
  }

  .calendar-day:hover {
    box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.35);
  }

  .calendar-day.is-selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.08);
  }

  .calendar-day.is-range-hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
  }

  .calendar-day[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 0.5rem 0.6rem;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.65rem;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 20;
  }

  .calendar-day[data-tooltip]:hover::after {
    opacity: 1;
  }

  .calendar-pill {
    height: 0.35rem;
    width: 100%;
  }

  .calendar-range {
    height: 0.6rem;
    width: 100%;
    background: rgba(16, 185, 129, 0.18);
  }

  .calendar-bar {
    position: relative;
    height: 0.6rem;
    width: 100%;
  }

  .calendar-bar .calendar-range,
  .calendar-bar .calendar-pill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .dashboard-tab {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    color: var(--text);
    background: transparent;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
  }

  .dashboard-tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .dashboard-tab-label {
    display: inline-flex;
    align-items: center;
  }

  .dashboard-tab:hover {
    background: var(--surface-muted);
  }

  .dashboard-tab.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
  }

  .dashboard-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .dashboard-toggle-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
  }

  .dashboard-toggle-item.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
  }

  .dashboard-shell {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
  }

  .dashboard-shell > aside {
    align-self: start;
  }


  .slide-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .slide-panel.is-open {
    max-height: 12000px;
  }

  .dashboard-shell [data-tabs-target="panel"][data-name="properties"] .slide-panel {
    display: none;
  }

  .dashboard-shell [data-tabs-target="panel"][data-name="properties"] .slide-panel.is-open {
    display: block;
  }

  .confirm-danger {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15), 0 12px 28px -18px rgba(220, 38, 38, 0.6);
  }

  .guest-inline-input {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
  }

  .guest-inline-input:disabled {
    color: var(--text);
    opacity: 1;
  }

  .guest-inline-input.is-editing {
    border-color: var(--border);
    background: var(--surface-strong);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .guest-calendar-day {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    aspect-ratio: 1 / 1;
  }

  .guest-calendar-day.is-out {
    color: var(--text-muted);
    background: var(--surface-muted);
  }

  .guest-calendar-day.is-blackout {
    background: #d1d5db;
  }

  .guest-calendar-day.is-booked .guest-calendar-pill {
    background: #ef4444;
  }

  .guest-calendar-day.is-selected .guest-calendar-pill {
    background: #fb923c;
  }

  .guest-calendar-day.is-selected.is-booked .guest-calendar-pill {
    background: #ef4444;
  }

  .guest-calendar-day-number {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .guest-calendar-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
  }

  .guest-calendar-selection {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    border-radius: 0;
    background: #fb923c;
    opacity: 0;
    z-index: 2;
  }

  .guest-calendar-day.is-selected .guest-calendar-selection {
    opacity: 0.9;
  }

  .guest-calendar-day.is-selected-start .guest-calendar-selection {
    left: 6px;
    right: 0;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
  }

  .guest-calendar-day.is-selected-end .guest-calendar-selection {
    left: 0;
    right: 6px;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
  }

  .guest-calendar-day.is-selected-single .guest-calendar-selection {
    left: 8px;
    right: 8px;
    border-radius: 999px;
  }

  .guest-calendar-pill {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    border-radius: 0;
    background: #ef4444;
    opacity: 0;
    z-index: 1;
  }

  .guest-calendar-pill.pill-start {
    left: 6px;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
  }

  .guest-calendar-pill.pill-end {
    right: 6px;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
  }

  .guest-calendar-pill.pill-single {
    left: 8px;
    right: 8px;
    border-radius: 999px;
  }

  .guest-calendar-day.is-blackout .guest-calendar-pill {
    background: transparent;
    opacity: 0;
  }

  .guest-calendar-day.is-booked .guest-calendar-pill,
  .guest-calendar-day.is-selected .guest-calendar-pill {
    opacity: 0.9;
  }

  .guest-calendar-day.is-selected:not(.is-booked) .guest-calendar-pill {
    opacity: 0;
  }

  .guest-fullcalendar .fc {
    font-family: inherit;
  }

  .guest-fullcalendar .fc-view-harness {
    height: auto;
    min-height: 0;
  }

  .guest-fullcalendar {
    --fc-border-color: var(--border);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: transparent;
    --fc-neutral-text-color: var(--text-muted);
  }

  .guest-fullcalendar .fc-scrollgrid,
  .guest-fullcalendar .fc-scrollgrid table,
  .guest-fullcalendar .fc-scrollgrid-sync-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .guest-fullcalendar .fc-scroller,
  .guest-fullcalendar .fc-scroller-harness {
    overflow: visible !important;
    height: auto !important;
  }

  .guest-fullcalendar .fc-col-header-cell,
  .guest-fullcalendar .fc-daygrid-day-frame {
    box-shadow: inset 0 0 0 1px var(--border);
  }

  .guest-fullcalendar .fc-day-today,
  .guest-fullcalendar .fc-day-today .fc-daygrid-day-frame,
  .guest-fullcalendar .fc-day-today .fc-daygrid-day-bg {
    background: transparent !important;
  }

  .guest-fullcalendar .stw-day-today,
  .guest-fullcalendar .stw-day-today .fc-daygrid-day-frame {
    background: rgba(239, 68, 68, 0.22) !important;
  }

  .guest-fullcalendar .stw-day-today .fc-daygrid-day-bg {
    background: transparent !important;
  }

  .guest-fullcalendar .stw-day-today .fc-daygrid-day-number {
    color: #991b1b !important;
    font-weight: 700;
  }

  .dark .guest-fullcalendar .stw-day-today .fc-daygrid-day-number {
    color: #f8fafc !important;
  }

  .guest-fullcalendar .fc-daygrid-day {
    position: relative;
    overflow: hidden;
  }

  .guest-fullcalendar .booking-event {
    background: #ef4444;
    border: none;
    border-radius: 999px;
    padding: 0 2px;
  }

  .guest-fullcalendar .fc-bg-event {
    opacity: 1;
  }

  .guest-fullcalendar .fc-bg-event.booking-background {
    background: #3b82f6 !important;
  }

  .guest-fullcalendar .fc-bg-event.blackout-event {
    background: #374151 !important;
  }

  .guest-fullcalendar .stw-booked .fc-daygrid-day-frame,
  .guest-fullcalendar .stw-booked .fc-daygrid-day-bg {
    background: rgba(59, 130, 246, 0.35) !important;
  }

  .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-frame,
  .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-bg {
    background: #374151 !important;
  }

  .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-number {
    color: #f8fafc !important;
  }

  .guest-fullcalendar .fc-highlight {
    background: rgba(0, 122, 255, 0.4) !important;
  }

  .guest-fullcalendar .fc-bg-event.selection-event {
    background: rgba(0, 122, 255, 0.4) !important;
    opacity: 1;
  }

  .guest-fullcalendar .stw-selected .fc-daygrid-day-frame {
    background: rgba(0, 122, 255, 0.4) !important;
  }

  .guest-fullcalendar .fc-daygrid-day:not(.stw-selected):not(.stw-booked):not(.fc-day-blackout):not(.stw-day-today) .fc-daygrid-day-frame,
  .guest-fullcalendar .fc-daygrid-day:not(.stw-selected):not(.stw-booked):not(.fc-day-blackout):not(.stw-day-today) .fc-daygrid-day-bg {
    background: transparent !important;
  }

  .guest-fullcalendar
    .fc-daygrid-day:not(.stw-selected):not(.stw-booked):not(.fc-day-blackout):not(.stw-day-today) {
    background: transparent !important;
  }

  .guest-fullcalendar .stw-selected-start .fc-daygrid-day-frame {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .guest-fullcalendar .stw-selected-end .fc-daygrid-day-frame {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .guest-fullcalendar .stw-selected-single .fc-daygrid-day-frame {
    border-radius: 10px;
  }

  .guest-fullcalendar.booking-selection-gray .fc-highlight {
    background: rgba(55, 65, 81, 0.45) !important;
  }

  .guest-fullcalendar.booking-selection-gray .fc-bg-event.selection-event {
    background: rgba(55, 65, 81, 0.45) !important;
    opacity: 1;
  }

  .guest-fullcalendar.booking-selection-gray .stw-selected .fc-daygrid-day-frame {
    background: rgba(55, 65, 81, 0.45) !important;
  }

  .guest-fullcalendar.booking-selection-gray .stw-selected .fc-daygrid-day-bg {
    background: rgba(55, 65, 81, 0.45) !important;
  }

  .dark .guest-fullcalendar .fc-bg-event.blackout-event {
    background: #1f2937 !important;
  }

  .dark .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-frame,
  .dark .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-bg {
    background: #1f2937 !important;
  }

  .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-bg .fc-highlight {
    background: #d1d5db !important;
  }

  .dark .guest-fullcalendar .fc-day-blackout .fc-daygrid-day-bg .fc-highlight {
    background: #334155 !important;
  }

  .guest-fullcalendar .fc-daygrid-day.fc-day-other {
    background: transparent !important;
    border-color: var(--border) !important;
  }

  .guest-fullcalendar .fc-blackout-x {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
  }

  .dark .guest-fullcalendar .fc-blackout-x {
    color: #94a3b8;
  }

  .guest-calendar-pill.guest-pill-red {
    background: #ef4444;
  }

  .guest-calendar-pill.guest-pill-amber {
    background: #f59e0b;
  }

  .guest-calendar-pill.guest-pill-rose {
    background: #f43f5e;
  }

  .guest-calendar-pill.guest-pill-blue {
    background: #3b82f6;
  }

  .guest-calendar-pill.guest-pill-teal {
    background: #14b8a6;
  }

  .guest-calendar-pill.guest-pill-purple {
    background: #8b5cf6;
  }

  .guest-calendar-pill.guest-pill-lime {
    background: #84cc16;
  }

  .calendar-key-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
  }

  .calendar-key-dot.available { background: #22c55e; }
  .calendar-key-dot.booked { background: #ef4444; }
  .calendar-key-dot.blackout { background: #94a3b8; }
  .calendar-key-dot.new-booking { background: #fb923c; }

  .guest-calendar-day-empty {
    border: 1px solid transparent;
    background: transparent;
  }

  .dark .guest-calendar-day {
    border-color: var(--border);
    background: var(--surface-strong);
  }

  .dark .guest-calendar-day.is-out {
    background: #1f2937;
  }

  .dark .guest-calendar-day.is-blackout {
    background: #334155;
  }

  .dark .guest-calendar-day.is-blackout .guest-calendar-pill,
  .dark .guest-calendar-day.is-blackout .guest-calendar-selection {
    background: transparent;
    opacity: 0;
  }

  .guest-property-row {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    transition: border 0.2s ease, background 0.2s ease;
  }

  .guest-property-row.is-available {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(34, 197, 94, 0.08);
  }

  .guest-property-row.is-unavailable {
    border-color: rgba(239, 68, 68, 0.65);
    background: rgba(239, 68, 68, 0.06);
  }

  [data-property-card] {
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  [data-property-card].is-dimmed {
    opacity: 0.4;
  }

  [data-property-card]:hover {
    background: rgba(241, 245, 249, 0.6);
    border-color: var(--border);
    box-shadow: none;
    transform: none;
  }

  .dark [data-property-card]:hover {
    background: rgba(30, 41, 59, 0.45);
    border-color: var(--border);
    box-shadow: none;
    transform: none;
  }

  .is-adding-property [data-property-card] {
    opacity: 0.4;
  }

  [data-guest-row] {
    transition: opacity 0.2s ease;
  }

  [data-guest-row].is-dimmed {
    opacity: 0.4;
  }

  .booking-row.is-dimmed,
  .blackout-row.is-dimmed {
    opacity: 0.4;
  }

  .guest-vrbo-picker {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 40;
    width: min(360px, 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    padding: 0.9rem 1rem 1.1rem;
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.5);
  }

  .guest-vrbo-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #2f5bff;
    letter-spacing: 0.02em;
  }

  .guest-vrbo-rule {
    height: 3px;
    width: 100%;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: #2f5bff;
    opacity: 0.9;
  }

  .guest-vrbo-nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }

  .guest-vrbo-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    color: #5b6b7c;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .guest-vrbo-arrow:hover {
    background: #e2e8f0;
  }

  .guest-vrbo-month {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2a44;
  }

  .guest-vrbo-weekdays {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-size: 0.85rem;
    color: #5b6b7c;
    font-weight: 600;
  }

  .guest-vrbo-grid {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .guest-vrbo-day {
    height: 42px;
    width: 42px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #1f2a44;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .guest-vrbo-day:hover {
    background: #eef2ff;
  }

  .guest-vrbo-day.is-start,
  .guest-vrbo-day.is-end {
    background: #3b82f6;
    color: #ffffff;
  }

  .guest-vrbo-day.is-in-range {
    background: #dbeafe;
    color: #1e3a8a;
    border-radius: 0.75rem;
    width: 100%;
  }

  .guest-vrbo-day.is-start.is-in-range,
  .guest-vrbo-day.is-end.is-in-range {
    border-radius: 999px;
    width: 42px;
  }

  .guest-vrbo-empty {
    height: 42px;
    width: 42px;
    margin: 0 auto;
  }

  .dark .guest-vrbo-picker {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
  }

  .dark .guest-vrbo-title {
    color: #7aa2ff;
  }

  .dark .guest-vrbo-rule {
    background: #3b6bff;
  }

  .dark .guest-vrbo-month {
    color: #e2e8f0;
  }

  .dark .guest-vrbo-weekdays {
    color: #94a3b8;
  }

  .dark .guest-vrbo-day {
    color: #e2e8f0;
  }

  .dark .guest-vrbo-day.is-in-range {
    background: rgba(59, 130, 246, 0.35);
    color: #e2e8f0;
  }

  .dark .guest-vrbo-arrow {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5f5;
  }

  .guest-vrbo-picker--floating {
    position: fixed;
    z-index: 60;
    pointer-events: auto;
  }

  .guest-dates-field {
    min-width: 320px;
  }

  .drawer-panel {
    animation: drawer-in 180ms ease-out;
  }

  @keyframes drawer-in {
    from {
      transform: translateX(28px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }


  .form-input {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    outline: none;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 0 0 0 transparent;
  }

  .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }

  .form-input:disabled {
    background: var(--surface-muted);
    border-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 1;
    -webkit-text-fill-color: var(--text-muted);
  }

  select.form-input {
    height: 2.75rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .form-label {
    @apply text-sm font-medium;
    color: var(--text-muted);
  }

  .badge {
    @apply inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold;
  }

  .badge-success {
    @apply badge;
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
  }

  .badge-warning {
    @apply badge;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
  }

  .badge-muted {
    @apply badge;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
  }

  .nav-shell {
    @apply sticky top-0 z-20 border-b backdrop-blur;
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border);
  }

  .brand-link {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
  }

  .brand-link:hover {
    color: var(--accent);
  }



  .text-muted {
    color: var(--text-muted);
  }

  .text-soft {
    color: var(--text-soft);
  }

  .text-danger {
    color: #dc2626;
  }

  .kicker {
    @apply text-xs font-semibold uppercase tracking-[0.3em];
    color: var(--text-soft);
  }

  .hero-shell {
    position: relative;
    overflow: hidden;
    background: var(--surface);
  }

  .dark .hero-shell {
    background: var(--surface);
  }

  .hero-grid {
    background: transparent;
  }

  .theme-toggle .theme-icon-dark {
    display: none;
  }

  .dark .theme-toggle .theme-icon-dark {
    display: inline-flex;
  }

  .dark .theme-toggle .theme-icon-light {
    display: none;
  }

  .theme-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .theme-toggle {
    color: var(--accent);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 6px 14px -12px rgba(15, 23, 42, 0.25);
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
  }

  .reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
  .reveal-stagger > *:nth-child(2) { animation-delay: 0.12s; }
  .reveal-stagger > *:nth-child(3) { animation-delay: 0.2s; }
  .reveal-stagger > *:nth-child(4) { animation-delay: 0.28s; }
  .reveal-stagger > *:nth-child(5) { animation-delay: 0.36s; }
  .reveal-stagger > *:nth-child(6) { animation-delay: 0.44s; }
}

@layer utilities {
  .section-divider {
    border-top: 1px solid var(--border);
  }

  .surface-sheen {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.35);
  }

  .stat-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    border: none;
    outline: none;
    box-shadow: none;
    background: var(--surface-muted);
    color: var(--text-soft);
  }

  .trust-strip {
    @apply flex flex-wrap items-center justify-between gap-6;
  }

  .trust-pill {
    @apply rounded-full px-4 py-2;
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .feature-list {
    @apply space-y-3 text-sm text-muted;
  }

  .feature-list li {
    position: relative;
    padding-left: 1.4rem;
  }

  .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 6px 14px -8px rgba(31, 75, 153, 0.5);
  }

  .feature-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 8px 18px -14px rgba(17, 24, 39, 0.18);
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .persona-card {
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.35);
  }

  .persona-points {
    display: grid;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .persona-points li {
    position: relative;
    padding-left: 1rem;
  }

  .persona-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--accent);
  }

  .workflow-card {
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 65%, transparent), transparent 45%);
    padding: 1.25rem 1.35rem;
  }

  .workflow-card-homeowners {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  }

  .workflow-card-guests {
    border-color: color-mix(in srgb, var(--accent) 16%, var(--border));
    background:
      radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent-soft) 26%, transparent), transparent 58%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 70%, transparent), transparent 45%);
  }

  .workflow-eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .workflow-steps {
    display: grid;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-muted);
  }

  .workflow-steps li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .workflow-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    flex: 0 0 auto;
  }

  .price-card {
    box-shadow: 0 28px 50px -32px rgba(17, 24, 39, 0.28);
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.98) 45%, rgba(240, 245, 255, 0.9));
  }

  .price-card .kicker {
    color: #1d4ed8;
  }

  .price-card .text-muted {
    color: #475569;
  }

  .cta-shell {
    border-radius: 1.75rem;
    border: 1px solid var(--border);
    padding: 2rem;
    border-color: var(--border);
    background: var(--surface);
    box-shadow: 0 20px 36px -28px rgba(17, 24, 39, 0.2);
  }

  .pricing-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .pricing-copy {
    max-width: 34rem;
  }

  .price-card {
    width: 100%;
    max-width: 28rem;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 28px 50px -36px rgba(37, 99, 235, 0.45);
  }

  .pricing-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .screenshot-strip {
    display: grid;
    gap: 1.5rem;
    margin-top: 0.75rem;
  }

  @media (min-width: 768px) {
    .screenshot-strip {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .screenshot-card {
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.5rem;
    box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.3);
  }

  .screenshot-trigger {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .screenshot-image {
    display: block;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
    object-fit: cover;
    background: #f8fafc;
  }

  .screenshot-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .nav-shell-mobile {
    border-bottom: 1px solid var(--border);
  }

  .nav-shell-mobile .mobile-logo {
    height: 44px;
    width: auto;
  }

  .landing-mobile .btn-primary {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .landing-mobile .btn-primary.btn-mobile-narrow {
    width: auto;
    min-width: 200px;
  }

  @media (max-width: 768px) {
    .mobile-only-btn {
      width: auto;
      min-width: 200px;
    }
  }

  .landing-mobile {
    overflow-x: hidden;
  }

  .landing-mobile main,
  .landing-mobile section {
    max-width: 100%;
  }

  @media (max-width: 768px) {
    html,
    body {
      overflow-x: hidden;
      width: 100%;
    }

    body {
      position: relative;
      overscroll-behavior-x: none;
      touch-action: pan-y;
    }

    main {
      overflow-x: visible;
    }

    body {
      -webkit-text-size-adjust: 100%;
    }

    input,
    textarea,
    select {
      font-size: 16px !important;
    }

    .form-input,
    .StripeElement,
    #card-element {
      font-size: 16px !important;
    }

    .dashboard-shell .card {
      overflow-x: visible;
      min-width: 0;
      max-width: 100%;
      width: 100%;
      box-sizing: border-box;
    }

    .dashboard-shell .card {
      overflow: hidden;
    }

    .dashboard-shell .card > * {
      max-width: 100%;
    }

    .dashboard-shell {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box;
    }

    .dashboard-shell {
      box-sizing: border-box;
    }

    .dashboard-container {
      width: 100% !important;
      max-width: 100% !important;
      padding-left: calc(0.75rem + env(safe-area-inset-left)) !important;
      padding-right: calc(0.75rem + env(safe-area-inset-right)) !important;
      box-sizing: border-box;
      overflow-x: visible;
    }

    .dashboard-shell [data-property-card] {
      min-width: 0;
      max-width: 100%;
      width: 100%;
      box-sizing: border-box;
    }

    .dashboard-shell > section,
    .dashboard-shell .card,
    .dashboard-shell .slide-panel,
    .dashboard-shell form {
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .dashboard-shell turbo-frame {
      display: block;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .dashboard-shell [data-property-card],
    .dashboard-shell [data-property-card] > div,
    .dashboard-shell [data-property-card] p,
    .dashboard-shell [data-property-card] .btn-secondary,
    .dashboard-shell [data-property-card] .btn-danger {
      max-width: 100%;
    }

    .property-card {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      overflow: hidden;
    }

    .dashboard-shell .overflow-x-auto {
      width: 100%;
      max-width: 100%;
    }

    .dashboard-shell table.data-table {
      width: 100%;
      min-width: 640px;
      table-layout: auto;
    }

    .dashboard-shell .card .overflow-x-auto {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .dashboard-shell .card .flex.items-center.justify-between {
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .dashboard-shell .card .flex.items-center.justify-between > * {
      max-width: 100%;
    }

    .dashboard-shell .card .btn-primary,
    .dashboard-shell .card .btn-secondary,
    .dashboard-shell .card .btn-danger {
      max-width: 100%;
      white-space: normal;
    }

    .dashboard-shell .card .flex {
      flex-wrap: wrap;
    }

    .dashboard-shell .card input,
    .dashboard-shell .card select,
    .dashboard-shell .card textarea {
      max-width: 100%;
    }

    .auth-shell {
      padding-left: 1rem;
      padding-right: 1rem;
      overflow-x: hidden;
      width: 100%;
    }

    .auth-card {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .auth-card-single {
      max-width: calc(100% - 1rem);
      margin-left: auto;
      margin-right: auto;
    }

    .auth-form {
      padding: 1.5rem;
    }

    .auth-fields {
      max-width: 100%;
    }

    .mobile-only-btn {
      min-width: 160px;
    }

    .dashboard-shell {
      grid-template-columns: 1fr;
      width: 100%;
      overflow-x: visible;
    }

    .dashboard-shell > aside {
      position: sticky;
      top: 0.75rem;
      z-index: 10;
      padding: 0.75rem;
      max-width: 100%;
      box-sizing: border-box;
    }

    .dashboard-shell > aside nav {
      display: flex;
      gap: 0.5rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0.25rem;
    }

    .dashboard-tab {
      width: auto;
      white-space: nowrap;
      padding: 0.45rem 0.7rem;
      flex: 0 0 auto;
    }

    .dashboard-shell > section {
      min-width: 0;
      width: 100%;
      max-width: 100%;
      overflow-x: visible;
      box-sizing: border-box;
    }

    .dashboard-shell .card {
      width: 100%;
      max-width: 100% !important;
    }

    .dashboard-shell [data-property-card] .mt-3.flex {
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    .dashboard-shell [data-property-card] .mt-3.flex > form {
      width: auto;
      max-width: none;
      min-width: 0;
      flex: 0 0 auto;
    }

    @media (orientation: portrait) {
      .dashboard-container {
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
        box-sizing: border-box;
      }

      .dashboard-shell .card {
        padding: 1.25rem;
      }

      .dashboard-shell > aside.card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
      }

      .dashboard-shell > aside nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 0.4rem;
        overflow: visible;
        align-items: stretch;
      }

      .dashboard-shell .dashboard-tab {
        font-size: clamp(0.6rem, 1.6vw, 0.8rem);
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.35rem 0.4rem;
        justify-content: center;
        height: 100%;
      }

      .dashboard-shell .dashboard-tab-icon {
        width: clamp(14px, 3.8vw, 18px);
        height: clamp(14px, 3.8vw, 18px);
      }

      .dashboard-shell .dashboard-tab-label {
        text-align: center;
        width: 100%;
        display: block;
      }

      .dashboard-shell table.data-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
      }

      .dashboard-shell table.data-table th,
      .dashboard-shell table.data-table td {
        white-space: normal;
        word-break: break-word;
      }

      .dashboard-shell table.data-table thead {
        display: none;
      }

      .dashboard-shell table.data-table tbody,
      .dashboard-shell table.data-table tr,
      .dashboard-shell table.data-table td {
        display: block;
        width: 100%;
      }

      .dashboard-shell table.data-table tr {
        padding: 0.75rem 0;
      }

      .dashboard-shell table.data-table td {
        padding: 0.4rem 0;
      }

      .dashboard-shell table.data-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--text-muted);
        margin-bottom: 0.2rem;
      }

      .dashboard-shell .guest-row-actions {
        justify-content: flex-end;
      }

      .dashboard-shell .guest-property-actions {
        width: 100%;
        justify-content: flex-end;
      }

      .dashboard-shell .card .overflow-x-auto {
        overflow-x: visible;
      }

      .dashboard-shell .guest-access-panel .grid {
        grid-template-columns: 1fr !important;
      }

      .dashboard-shell .guest-access-panel [data-door-code-field],
      .dashboard-shell .guest-access-panel [data-door-code-empty] {
        width: 100%;
      }

      .dashboard-shell .guest-access-panel {
        overflow: hidden;
      }

      .dashboard-shell .guest-access-panel .rounded-lg {
        max-width: 100%;
        box-sizing: border-box;
      }

      .dashboard-shell .guest-access-panel p {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .dashboard-shell .fc table {
        display: table !important;
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
      }

      .dashboard-shell .fc thead {
        display: table-header-group !important;
      }

      .dashboard-shell .fc tbody {
        display: table-row-group !important;
      }

      .dashboard-shell .fc tr {
        display: table-row !important;
      }

      .dashboard-shell .fc th,
      .dashboard-shell .fc td {
        display: table-cell !important;
      }

      .dashboard-shell .fc .fc-daygrid-body,
      .dashboard-shell .fc .fc-daygrid-body table {
        width: 100% !important;
        min-width: 0 !important;
      }

      .dashboard-shell .fc .fc-daygrid-day-frame,
      .dashboard-shell .fc .fc-daygrid-day-bg {
        height: 100% !important;
        min-height: 0 !important;
      }

      .dashboard-shell .fc .fc-daygrid-day-events {
        min-height: 0 !important;
      }

      .dashboard-shell .fc .fc-scrollgrid,
      .dashboard-shell .fc .fc-scrollgrid table,
      .dashboard-shell .fc .fc-scrollgrid-sync-table {
        width: 100% !important;
        min-width: 0 !important;
      }

      .dashboard-shell,
      .dashboard-shell > aside,
      .dashboard-shell > section,
      .dashboard-shell .card,
      .dashboard-shell [data-property-card] {
        box-sizing: border-box;
        max-width: 100%;
      }

      .dashboard-shell [data-property-card] .mt-3.flex {
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .dashboard-shell [data-property-card] .flex {
        flex-wrap: wrap;
      }

    }

    @media (orientation: landscape) {
      .dashboard-shell > aside.card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
      }
      .dashboard-shell > aside nav {
        align-items: stretch;
      }
      .dashboard-shell .dashboard-tab {
        justify-content: center;
        height: 100%;
      }

    }

    @media (max-width: 1024px) and (orientation: landscape) {
      .dashboard-shell {
        grid-template-columns: 1fr;
      }

      .dashboard-shell > aside {
        position: sticky;
        top: 0.75rem;
        z-index: 10;
      }

      .dashboard-shell > aside.card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
      }

      .dashboard-shell > aside nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 0.4rem;
        overflow: visible;
        align-items: stretch;
      }

      .dashboard-shell .dashboard-tab {
        font-size: clamp(0.6rem, 1.6vw, 0.8rem);
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.35rem 0.4rem;
        justify-content: center;
        height: 100%;
      }

      .dashboard-shell .dashboard-tab-icon {
        width: clamp(14px, 3.8vw, 18px);
        height: clamp(14px, 3.8vw, 18px);
      }

      .dashboard-shell .dashboard-tab-label {
        text-align: center;
        width: 100%;
        display: block;
      }
    }

    .form-input,
    .auth-link,
    .btn-primary,
    .btn-secondary {
      font-size: 16px;
    }
  }

  .lightbox-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.72);
    z-index: 50;
  }

  .lightbox-overlay.is-open {
    display: flex;
  }

  .lightbox-panel {
    width: min(960px, 92vw);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.5rem;
    box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
  }

  .lightbox-panel img {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
    object-fit: contain;
    background: #0f172a;
  }

  .lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .lightbox-close:hover {
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.95);
  }

  .lightbox-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .lightbox-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
  }

  .lightbox-arrow {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .lightbox-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .lightbox-arrow:hover {
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.85);
  }

  .property-photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .property-photo-tile {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  .property-photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .property-photo-tile:hover {
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
  }

  .upload-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .upload-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    padding: 0;
  }

  .upload-preview {
    width: 100%;
    max-width: none;
  }

  .upload-preview-image {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 0;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.12);
  }

  .upload-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0.85rem 0.85rem;
  }

  .upload-retry {
    align-self: flex-start;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
  }

  .upload-remove {
    align-self: flex-start;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
  }

  .upload-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
  }

  .upload-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.2s ease;
  }

  .auth-shell {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
  }

  .auth-card {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 24px 50px -36px rgba(15, 23, 42, 0.25);
  }

  .auth-card-single {
    max-width: 640px;
    grid-template-columns: 1fr;
  }

  iframe[name="hcaptcha-invisible"],
  iframe[src*="HCaptchaInvisible"] {
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: fixed !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .auth-form {
    padding: 2.5rem;
  }

  .auth-form h1 {
    font-size: 2rem;
    margin-top: 0.75rem;
  }

  .auth-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-soft);
  }

  .auth-subtitle {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .auth-error {
    margin: 1.25rem auto 0;
    max-width: 360px;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  .auth-fields {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-links {
    display: flex;
    justify-content: flex-end;
    font-size: 0.85rem;
  }

  .auth-links-center {
    justify-content: center;
  }

  .auth-link {
    color: var(--accent);
    text-decoration: none;
  }

  .auth-link:hover {
    text-decoration: underline;
  }


  .admin-table-left th,
  .admin-table-left td {
    text-align: left !important;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-shell > aside {
    position: static;
  }

  .dashboard-shell > aside.card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .dashboard-shell > aside nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.4rem;
    overflow: visible;
    align-items: stretch;
  }

  .dashboard-shell .dashboard-tab {
    font-size: clamp(0.6rem, 1.6vw, 0.8rem);
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.4rem;
    justify-content: center;
    height: 100%;
  }

  .dashboard-shell .dashboard-tab-icon {
    width: clamp(14px, 3.8vw, 18px);
    height: clamp(14px, 3.8vw, 18px);
  }

  .dashboard-shell .dashboard-tab-label {
    text-align: center;
    width: 100%;
    display: block;
  }
}

.dark .badge-success {
  color: #6ee7b7;
}

.dark .badge-warning {
  color: #fcd34d;
}

.dark .badge-muted {
  color: #cbd5f5;
}

.dark .text-slate-700,
.dark .text-slate-600,
.dark .text-slate-500,
.dark .text-slate-400 {
  color: var(--text-muted);
}

.dark .border-slate-200,
.dark .border-slate-100 {
  border-color: var(--border);
}

.dark .bg-white {
  background: var(--surface-strong);
}

.dark .qr-card {
  background: #ffffff;
}

.qr-card {
  width: fit-content;
  max-width: 100%;
}

.qr-code svg {
  width: 240px;
  height: 240px;
  display: block;
}

.qr-code {
  padding: 12px;
  background: #ffffff;
}

.dark .nav-shell {
  background: rgba(12, 16, 22, 0.92);
}

.dark .btn-secondary:hover {
  color: #0f172a;
}

.dark .auth-card {
  box-shadow: 0 24px 50px -36px rgba(3, 7, 18, 0.6);
}

.dark .card {
  background: var(--surface);
}

.dark .feature-card {
  background: var(--surface);
}

.dark .stat-chip,
.dark .trust-pill {
  background: rgba(16, 23, 26, 0.7);
  border-color: var(--border);
  color: var(--text-soft);
}

  .hero-media {
    min-height: 360px;
    border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='280' viewBox='0 0 360 280'%3E%3Crect width='360' height='280' fill='%23f7f7f7'/%3E%3Cpath d='M0 205L80 150L150 200L235 120L360 190V280H0Z' fill='%23e5e7eb'/%3E%3Cpath d='M0 225L60 185L120 210L200 160L360 230V280H0Z' fill='%23d1d5db'/%3E%3Ccircle cx='290' cy='70' r='26' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
    box-shadow: 0 24px 40px -30px rgba(17, 24, 39, 0.25);
  }

  .hero-rotate {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .hero-rotate.is-sliding {
    animation: hero-slide 0.4s ease;
  }

  @keyframes hero-slide {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.hero-media--contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
  padding: 16px;
  box-sizing: border-box;
}

.dark .hero-media {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(0deg, rgba(9, 13, 18, 0.7), rgba(9, 13, 18, 0.3));
  box-shadow: 0 24px 40px -30px rgba(9, 13, 18, 0.6);
}

.hero-float {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 30px -26px rgba(17, 24, 39, 0.2);
}

.hero-lift {
  animation: liftIn 0.7s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
