/**
 * Public booking site only — home + booking_details.
 * Design tokens + layout; pair with Bootstrap 5 utilities.
 */

:root {
  --pb-bg: #f6f4f0;
  --pb-surface: #ffffff;
  --pb-text: #1c1917;
  --pb-muted: #57534e;
  --pb-primary: #14532d;
  --pb-primary-hover: #166534;
  --pb-accent: #b45309;
  --pb-accent-soft: rgba(180, 83, 9, 0.12);
  --pb-border: rgba(28, 25, 23, 0.08);
  --pb-shadow: 0 4px 24px rgba(28, 25, 23, 0.07);
  --pb-shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.12);
  --pb-radius: 14px;
  --pb-radius-sm: 10px;
  --pb-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --pb-serif: "Cormorant Garamond", Georgia, serif;
}

body.pb-body {
  font-family: var(--pb-font);
  color: var(--pb-text);
  background-color: var(--pb-bg);
  -webkit-font-smoothing: antialiased;
}

.pb-navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pb-border);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.pb-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--pb-primary) !important;
}

.pb-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--pb-muted) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.pb-navbar .nav-link:hover,
.pb-navbar .nav-link:focus {
  color: var(--pb-primary) !important;
  background: var(--pb-accent-soft);
}

.pb-navbar .nav-link.active {
  color: var(--pb-primary) !important;
  background: rgba(20, 83, 45, 0.08);
}

/* Hero carousel */
.pb-hero-carousel {
  margin-top: -72px;
  padding-top: 72px;
}

.pb-hero-carousel .carousel-item {
  height: min(88vh, 720px);
  min-height: 380px;
  background: no-repeat center center;
  background-size: cover;
  position: relative;
}

/* Hero: full imagery; optional CTA button only */
.pb-hero-carousel .carousel-item::after {
  display: none;
}

.pb-hero-carousel .carousel-caption.pb-hero-cta {
  left: clamp(6%, 8%, 12%);
  right: auto;
  bottom: clamp(14%, 18%, 22%);
  top: auto;
  transform: none;
  padding: 0;
  margin: 0;
  text-align: left;
  z-index: 2;
}

.pb-hero-carousel .carousel-caption.pb-hero-cta .btn {
  box-shadow:
    var(--pb-shadow-lg),
    0 2px 20px rgba(0, 0, 0, 0.2) !important;
}

.pb-hero-carousel .carousel-indicators {
  margin-bottom: 1.5rem;
}

.pb-hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}

.pb-hero-carousel .carousel-indicators .active {
  opacity: 1;
  transform: scale(1.15);
  background-color: #fff;
}

.pb-hero-carousel .carousel-control-prev,
.pb-hero-carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  padding: 0;
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 4;
}

.pb-hero-carousel .carousel-control-prev {
  left: clamp(0.75rem, 3vw, 1.35rem);
}

.pb-hero-carousel .carousel-control-next {
  right: clamp(0.75rem, 3vw, 1.35rem);
}

.pb-hero-carousel .carousel-control-prev:hover,
.pb-hero-carousel .carousel-control-next:hover,
.pb-hero-carousel .carousel-control-prev:focus,
.pb-hero-carousel .carousel-control-next:focus {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.68);
  border-color: rgba(255, 255, 255, 0.85);
}

.pb-hero-carousel .carousel-control-prev-icon,
.pb-hero-carousel .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  margin-inline: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* Static/legal pages below fixed navbar (e.g. /tncs) */
.pb-static-page {
  padding-top: 5.75rem;
  padding-bottom: 2rem;
}

/* Terms page — scanned rules sheet */
.pb-rules-figure {
  max-width: 52rem;
}

.pb-rules-img {
  box-shadow: var(--pb-shadow-lg);
}

/* Anchor targets — offset fixed navbar */
.pb-anchor-section,
#venues,
#footer {
  scroll-margin-top: 5.5rem;
}

/* History section (home) */
.pb-section-history {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65) 0%,
    var(--pb-bg) 100%
  );
  border-bottom: 1px solid var(--pb-border);
}

.pb-history-card {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  background: var(--pb-surface);
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.pb-history-prose {
  font-size: 1.02rem;
  line-height: 1.8;
}

.pb-history-prose p {
  color: var(--pb-muted);
  margin-bottom: 1.125rem;
}

.pb-history-banner {
  font-family: var(--pb-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--pb-primary);
  border-bottom-color: var(--pb-border) !important;
}

/* Venues section */
.pb-section-venues {
  padding: 4rem 0 4.5rem;
}

.pb-section-title {
  font-family: var(--pb-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--pb-text);
  letter-spacing: -0.02em;
}

.pb-section-lead {
  color: var(--pb-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.pb-venue-card {
  background: var(--pb-surface);
  border-radius: var(--pb-radius);
  overflow: hidden;
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pb-venue-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pb-shadow-lg);
}

.pb-venue-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e5e4;
}

.pb-venue-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.pb-venue-card:hover .pb-venue-card-media img {
  transform: scale(1.05);
}

.pb-venue-card-media .pb-venue-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
}

.pb-venue-price-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pb-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pb-venue-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pb-venue-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--pb-text);
}

.pb-venue-desc {
  color: var(--pb-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pb-venue-meta {
  font-size: 0.875rem;
  color: var(--pb-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pb-border);
}

.pb-venue-meta-label {
  font-weight: 600;
  color: var(--pb-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pb-btn-primary-soft {
  --bs-btn-bg: var(--pb-primary);
  --bs-btn-border-color: var(--pb-primary);
  --bs-btn-hover-bg: var(--pb-primary-hover);
  --bs-btn-hover-border-color: var(--pb-primary-hover);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
}

.pb-emphasis {
  font-weight: 600;
  color: var(--pb-text);
}

/* Footer */
.pb-footer {
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.pb-footer h3 {
  font-family: var(--pb-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.pb-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.pb-footer a:hover {
  color: #fff;
}

.pb-footer-credits {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Booking details page */
.pb-booking-page {
  padding-bottom: 3rem;
}

.pb-booking-hero {
  background: linear-gradient(135deg, var(--pb-primary) 0%, #0f2918 100%);
  color: #fff;
  padding: 2.75rem 0 2rem;
  margin-bottom: 2rem;
}

.pb-booking-hero h1 {
  font-family: var(--pb-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.pb-booking-hero p {
  opacity: 0.9;
  margin-bottom: 0;
  font-size: 1rem;
}

.pb-booking-shell {
  max-width: 1120px;
}

.pb-summary-card {
  background: var(--pb-surface);
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow);
  padding: 1.5rem;
  position: sticky;
  top: 96px;
}

.pb-summary-card .pb-price-display {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pb-primary);
  letter-spacing: -0.03em;
}

.pb-form-card {
  background: var(--pb-surface);
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow);
  padding: 1.75rem 1.75rem 2rem;
}

.pb-form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pb-muted);
  margin-bottom: 1rem;
}

.pb-form-card .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pb-text);
}

.pb-form-card .form-control,
.pb-form-card .input-group-text {
  border-radius: var(--pb-radius-sm);
}

.pb-form-card .form-control:focus {
  border-color: var(--pb-primary);
  box-shadow: 0 0 0 0.2rem rgba(20, 83, 45, 0.18);
}

.pb-form-card .input-group-text {
  background: var(--pb-bg);
  border-color: var(--pb-border);
  color: var(--pb-muted);
}

.pb-field-with-errors .input-group {
  width: 100%;
}

.pb-field-with-errors .input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.pb-field-errors {
  margin-top: 0.35rem;
}

.pb-field-errors .just-validate-error-label {
  margin-top: 0;
}

.pb-tnc-notice {
  background: var(--pb-accent-soft);
  border-radius: var(--pb-radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.pb-tnc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.pb-tnc-check.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 0;
  margin-left: 0;
  min-width: 8.5rem;
}

.pb-tnc-check .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
  cursor: pointer;
}

.pb-tnc-check .form-check-label {
  cursor: pointer;
  line-height: 1.35;
}

.pb-tnc-row .pb-tnc-notice {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

.pb-datetime-field #datetimepicker.input-group {
  width: 100%;
  max-width: 100%;
}

.pb-datetime-field #datetimepicker.input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 14rem;
}

.pb-tnc-notice a {
  color: #b90000;
  font-weight: 700;
  text-decoration: underline;
}

.pb-tnc-notice a:hover {
  color: #991b1b;
}

.pb-submit-btn {
  --bs-btn-bg: var(--pb-accent);
  --bs-btn-border-color: var(--pb-accent);
  --bs-btn-hover-bg: #92400e;
  --bs-btn-hover-border-color: #92400e;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 11px;
}

/* JustValidate error placement */
.just-validate-error-field {
  border-color: #dc2626 !important;
}

.pb-form-card .just-validate-error-label {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

/* Datepicker disabled cells — booking page */
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
  color: #b90000 !important;
  text-decoration: line-through;
}

/* Overlay + spinner (booking page) */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, 0.45);
}

#overlay .cv-spinner {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

#overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px #ddd solid;
  border-top: 4px solid var(--pb-primary);
  border-radius: 50%;
  animation: pb-spin 0.8s infinite linear;
}

@keyframes pb-spin {
  100% {
    transform: rotate(360deg);
  }
}

#overlay.pb-overlay-show {
  display: flex !important;
}
