@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --text: #141414;
  --accent: #fb525a;
  --accent-soft: #f5f4f1;
  --danger: #b13a3a;
  --card: #ffffff;
  --border: #e6e4df;
  --nav-bg: #0e192a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  background: var(--bg);
  color: var(--text);
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
}

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

.lang-toggle a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-toggle a:hover {
  color: var(--accent);
}

.site-nav {
  background: var(--nav-bg);
  color: #fff;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 12px;
}

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

.lang-switch {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 12px;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .active {
  color: var(--accent);
  font-size: 1.1em;
}

@media (max-width: 700px) {
  .nav-inner {
    justify-content: center;
    text-align: center;
  }
}

.site-header h1 {
  margin: 0 0 8px 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 600;
}

.site-header p {
  margin: 0;
  color: #4a4a4a;
  max-width: 620px;
}

h2, h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  margin-top: 0;
}

h3 {
  font-size: 1.4rem;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid var(--border);
  box-shadow: none;
}

.slot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slot-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.price {
  display: inline-block;
  margin-left: 12px;
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.full {
  width: 100%;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn.danger {
  background: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #ececec;
  text-align: left;
}

.hint {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin: 8px 0 0;
}

.inline-info {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.info-popup {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.9rem;
}

.error {
  color: #a12a2a;
  font-weight: 600;
}

.site-footer {
  padding: 24px 0 40px;
  text-align: center;
  color: #6b6b6b;
}

.calendar {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.calendar-table th,
.calendar-table td {
  padding: 10px;
  border: 1px solid #ececec;
  text-align: center;
}

.time-cell {
  font-weight: 600;
  background: #faf7f2;
}

.slot-cell.available {
  background: #f0f7f9;
}

.slot-cell.unavailable {
  color: #b0b0b0;
}

.booking-calendar {
  --cell-size: 44px;
  --cell-gap: 8px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.calendar-panel {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: none;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.calendar-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.nav-btn {
  border: none;
  background: #f0efec;
  color: var(--text);
  font-size: 1.4rem;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.month-label {
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.2rem;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, var(--cell-size));
  justify-content: start;
  gap: var(--cell-gap);
  font-size: 0.75rem;
  text-align: center;
  color: #6b6b6b;
  margin-top: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--cell-size));
  justify-content: start;
  gap: var(--cell-gap);
  margin-top: 8px;
}

.day-cell {
  border: none;
  background: #f4f7fb;
  border-radius: 999px;
  height: var(--cell-size);
  width: var(--cell-size);
  justify-self: center;
  cursor: pointer;
  font-weight: 600;
}

.day-cell.available {
  background: #ffe5e7;
  color: var(--accent);
}

.day-cell.available:hover {
  background: var(--accent);
  color: #fff;
}

.day-cell.selected {
  background: var(--accent);
  color: #fff;
}

.day-cell.disabled {
  color: #c0c0c0;
  background: #f2f2f2;
}

.day-cell.empty {
  background: transparent;
}

.timezone {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b6b6b;
}

.timezone-select {
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  background: #fff;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.times-panel {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: none;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.times-header {
  margin-bottom: 16px;
}

.times-list {
  display: grid;
  gap: 12px;
}

.time-pill {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}

.time-pill:hover {
  background: #ffe5e7;
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 600px) {
  .booking-calendar {
    --cell-size: 36px;
    --cell-gap: 6px;
    grid-template-columns: 1fr;
  }

  .calendar-panel,
  .times-panel {
    width: 100%;
  }

  .slot-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .calendar {
    overflow-x: auto;
  }
}
