@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;700&display=swap");

:root {
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-strong: #1e40af;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 40%, #f5f7fb 100%);
  min-height: 100vh;
}

header {
  padding: 20px 24px 0;
  min-height: 120px;
}

.header-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 80px;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 60px;
  width: 144px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 20px;
  object-fit: contain;
  display: block;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand h1 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
Line-height:16px;
}

.brand p {
  margin: 0;
Font-size:12px;
  color: var(--muted);
}

.nav-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  line-height: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-pill:hover {
  border-color: #cbd5f5;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

main {
  max-width: 1100px;
  margin: 24px auto 64px;
  padding: 0 24px;
}

.page-hero {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.page-hero .panel {
  padding: 20px 24px;
}
.panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.form-grid > .field-block {
  min-width: 0;
}

.form-grid > .field-block[style*="grid-column"] {
  min-width: 100%;
}

.span-all {
  grid-column: 1 / -1;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-block label {
  min-height: 18px;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

select option:disabled {
  color: #9ca3af;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 8px;
  overflow: hidden;
}

#calendar {
  margin-top: 16px;
}

.map-wrap {
  position: relative;
  width: 100%;
}

.locate-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.inline-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.option-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.option-pill input {
  margin: 0;
}

.return-only {
  display: none;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

#availability_warning {
  display: none;
}

.option-pill:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: var(--accent-strong);
}

button.secondary {
  background: #e2e8f0;
  color: #334155;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.error {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.booking-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.booking-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.approved,
.badge.completed {
  background: #dcfce7;
  color: #166534;
}

.badge.rejected,
.badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.align-end {
  align-self: flex-end;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.pagination {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.lang-switch {
  line-height: 28px;
}

.lang-switch select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  margin: 0;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

@media (max-width: 720px) {
  header {
    padding: 20px 18px 0;
  }

  main {
    padding: 0 18px;
  }

  .panel {
    padding: 20px;
  }

  .page-hero {
    padding: 0 18px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    justify-content: stretch;
  }

  button {
    width: 100%;
  }
}
