/* ============================================================
   Hotel Ziegenkrug — Booking-Style PWA
   Dark theme · Mobile-first · Booking.com UX
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #16162b;
  --bg-card: #1e1e32;
  --bg-card-hover: #262640;
  --bg-input: #16162b;
  --border-color: #333;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  --oria-orange: #f97316;
  --oria-orange-dark: #ea580c;
  --oria-orange-light: #fb923c;
  --success-green: #4ade80;
  --success-green-dark: #22c55e;
  --premium-purple: #a855f7;
  --danger-red: #ef4444;
  --warning-yellow: #eab308;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --text-on-orange: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow-orange: 0 0 20px rgba(249,115,22,0.15);

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--oria-orange); text-decoration: none; }
a:hover { color: var(--oria-orange-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-orange { color: var(--oria-orange); }
.text-green { color: var(--success-green); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--oria-orange), #dc2626);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--oria-orange);
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  background: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ---------- Page Sections ---------- */
.page {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 60px;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

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

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1040 50%, #0f0f1a 100%);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(249,115,22,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(135deg, var(--oria-orange), var(--premium-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ---------- Search Bar ---------- */
.search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.search-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-field {
  flex: 1;
}

.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.search-field input,
.search-field .guest-counter {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--transition);
}

.search-field input:focus {
  outline: none;
  border-color: var(--oria-orange);
}

.search-field input[type="date"] {
  color-scheme: dark;
  min-height: 46px;
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* Guest counter */
.guest-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

.guest-counter-label {
  color: var(--text-primary);
  font-size: 15px;
}

.guest-counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.guest-counter-btn:hover {
  border-color: var(--oria-orange);
  background: rgba(249,115,22,0.1);
}

.guest-counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.guest-counter-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.btn-search {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--oria-orange), var(--oria-orange-dark));
  color: var(--text-on-orange);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-orange);
}

.btn-search:active {
  transform: translateY(0);
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
}

.section-link {
  font-size: 14px;
  color: var(--oria-orange);
  font-weight: 500;
}

/* ---------- Property Cards ---------- */
.property-grid {
  display: grid;
  gap: 16px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.property-card:hover {
  border-color: var(--oria-orange);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.property-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.property-emoji {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.property-info {
  flex: 1;
  min-width: 0;
}

.property-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.property-address {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(249,115,22,0.1);
  border-radius: 20px;
  font-size: 11px;
  color: var(--oria-orange-light);
  font-weight: 500;
}

.property-price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--oria-orange), #dc2626);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

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

.property-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.property-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-cta {
  font-size: 14px;
  color: var(--oria-orange);
  font-weight: 600;
}

/* ---------- Loading / Error ---------- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--oria-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: var(--text-muted);
  font-size: 14px;
}

.error-box {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  color: var(--danger-red);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}

.error-box .error-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ---------- Room Cards ---------- */
.rooms-section {
  margin-top: 8px;
}

.rooms-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.room-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.room-card:hover {
  border-color: rgba(249,115,22,0.3);
}

.room-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.room-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.room-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-feature {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.room-price-area {
  text-align: right;
  flex-shrink: 0;
}

.room-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--oria-orange);
}

.room-price-note {
  font-size: 11px;
  color: var(--text-muted);
}

.room-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-book {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--oria-orange), var(--oria-orange-dark));
  color: var(--text-on-orange);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}

.btn-book:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-orange);
}

.btn-book:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Back Button ---------- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
  margin-bottom: 20px;
}

.btn-back:hover {
  color: var(--text-primary);
  border-color: var(--oria-orange);
}

/* ---------- Booking Form ---------- */
.booking-layout {
  display: grid;
  gap: 24px;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.booking-form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger-red);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--oria-orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .field-error {
  font-size: 12px;
  color: var(--danger-red);
  margin-top: 4px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger-red);
}

/* Booking summary */
.booking-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row .value {
  font-weight: 500;
  text-align: right;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.summary-total .total-price {
  color: var(--oria-orange);
  font-size: 24px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--success-green), var(--success-green-dark));
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius-sm);
  margin-top: 20px;
  transition: all var(--transition);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(74,222,128,0.2);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Confirmation ---------- */
.confirmation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.confirmation-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.confirmation-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.confirmation-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--oria-orange);
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.confirmation-details {
  text-align: left;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.confirmation-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.confirmation-detail-row .label {
  color: var(--text-muted);
}

.confirmation-detail-row .value {
  font-weight: 500;
  text-align: right;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #25D366;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--oria-orange);
  color: var(--oria-orange);
}

.confirmation-callback {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 20px;
  padding: 12px;
  background: rgba(249,115,22,0.06);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(249,115,22,0.15);
}

/* ---------- Lookup Page ---------- */
.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  max-width: 500px;
  margin: 40px auto;
}

.lookup-card .form-group {
  margin-bottom: 14px;
}

.lookup-result {
  margin-top: 24px;
}

.lookup-booking {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.lookup-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lookup-booking-id {
  font-weight: 700;
  color: var(--oria-orange);
  font-family: 'Courier New', monospace;
}

.lookup-booking-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.status-confirmed {
  background: rgba(74,222,128,0.15);
  color: var(--success-green);
}

.status-cancelled {
  background: rgba(239,68,68,0.15);
  color: var(--danger-red);
}

.lookup-booking-details {
  font-size: 13px;
  color: var(--text-muted);
}

.lookup-booking-details div {
  margin-bottom: 3px;
}

/* ---------- Admin Dashboard ---------- */
.admin-header {
  margin-bottom: 24px;
  padding-top: 24px;
}

.admin-title {
  font-size: 26px;
  font-weight: 800;
}

.admin-stats-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

.admin-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
}

.admin-stat-value.orange { color: var(--oria-orange); }
.admin-stat-value.green { color: var(--success-green); }
.admin-stat-value.purple { color: var(--premium-purple); }
.admin-stat-value.red { color: var(--danger-red); }

.admin-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 24px;
}

.admin-booking-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-booking-info {
  flex: 1;
  min-width: 0;
}

.admin-booking-info .admin-booking-name {
  font-weight: 600;
  font-size: 14px;
}

.admin-booking-info .admin-booking-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-booking-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.btn-small:hover {
  border-color: var(--oria-orange);
  color: var(--oria-orange);
}

.btn-small.danger:hover {
  border-color: var(--danger-red);
  color: var(--danger-red);
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
  pointer-events: auto;
  max-width: 360px;
}

.toast.success {
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--success-green);
}

.toast.error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger-red);
}

.toast.info {
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--oria-orange);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: all var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  border-color: var(--oria-orange);
  color: var(--oria-orange);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .search-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .search-field {
    min-width: 160px;
  }

  .btn-search {
    width: auto;
    padding: 14px 32px;
  }

  .search-bar-btn-wrap {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .confirmation-actions {
    flex-direction: row;
  }

  .confirmation-actions .btn-secondary {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .booking-layout {
    grid-template-columns: 1fr 360px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 42px;
  }
}

@media (min-width: 1200px) {
  .search-grid {
    flex-wrap: nowrap;
  }

  .search-grid .btn-search {
    white-space: nowrap;
  }
}
