/*
Theme Name: Theme4Page
Author: Theme4Page
Description: Szablon dla domku letniskowego w Bulowicach.
Version: 1.0
*/

:root {
  color-scheme: light;
  --primary: #2f5d50;
  --accent: #f0b429;
  --bg: #f7f5f2;
  --text: #1f2933;
  --muted: #65717c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 32px 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

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

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero p {
  margin: 0 0 16px;
  color: #e6f2ee;
  font-size: 1.05rem;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1b1b;
  font-weight: 600;
}

.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

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

.card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.booking-card {
  border: 1px solid #e6edf2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.wynajem4page-booking {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.booking-type {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: #f0f6f5;
  border: 1px solid #d7e5df;
  font-weight: 600;
}

.booking-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid #d6dee3;
  gap: 4px;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.toggle-option input {
  appearance: none;
  margin: 0;
}

.toggle-option span {
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.toggle-option input:checked + span {
  background: var(--primary);
  color: #fff;
}

.booking-grid input,
.wynajem4page-booking input[type="text"],
.wynajem4page-booking input[type="date"],
.wynajem4page-booking input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6dee3;
  font-size: 0.95rem;
  background: #fff;
}

.wynajem4page-booking label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.people-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-weight: 600;
}

.booking-company-fields {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px dashed #d6dee3;
  background: #fff;
}

.flatpickr-day.is-unavailable,
.flatpickr-day.is-unavailable:hover {
  background: #fda4af;
  border-color: #f43f5e;
  color: #7f1d1d;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: #fee2e2;
  color: #991b1b;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.gallery-tabs button {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.gallery-tabs button.active {
  background: var(--primary);
  color: #fff;
}

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

.gallery-grid.active {
  display: grid;
}

.gallery-placeholder {
  background: #e2e8f0;
  height: 160px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

footer {
  background: #0f2923;
  color: #d7e5df;
  padding: 32px 0;
}

footer .grid {
  align-items: start;
}
