:root {
  --main-blue: #246C96;
  --foot-blue: #455870;
  --dark-blue: #002235;
  --font-hover-blue: #084A82;
  --font-grey: #A7A7A7;
  --white: #f9f9f9;
  --black: #212121;
  --effect: #FFA800;
  --effect-transparent: #ffaa007a;
  --effect2: #df3c27;
  --effect2-transparent: #df3d2786;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,0.12);
  --border: 1px solid rgba(0,0,0,0.08);
  --gap: 18px;
  --maxw: 1100px;
  --navw: 280px;
}

html { font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif; }
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--black);
  background: linear-gradient(180deg, rgba(36,108,150,0.10), rgba(0,0,0,0) 45%);
}

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
@media (max-width: 600px) { .container { padding: 12px; } }

/* ===== HEADER ===== */
.header { margin-bottom: 1.5rem; position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  flex-wrap: wrap;
}
.header-text h1 { margin: 0 0 0.25rem; font-size: clamp(18px, 4vw, 36px); color: var(--dark-blue); }
.header-text .muted { font-size: clamp(13px, 2vw, 16px); color: var(--foot-blue); }
.header-logo img { max-width: 180px; height: auto; object-fit: contain; }
@media (max-width: 500px) {
  .header-inner { padding: 1rem; }
  .header-logo img { max-width: 110px; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: absolute; top: 10px; right: 12px; font-size: 13px; z-index: 10; }
.lang-switcher a {
  text-decoration: none; color: #2563eb; font-weight: 600;
  padding: 4px 10px; border: 1px solid #2563eb; border-radius: 4px; white-space: nowrap;
}
.lang-switcher a:hover { background: #2563eb; color: #fff; }

/* ===== LAYOUT ===== */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; gap: 0; } }

/* ===== SIDEBAR NAV ===== */
.nav a { display: block; padding: 6px 8px; text-decoration: none; color: var(--black); border-radius: 6px; }
.nav a:hover { background: var(--font-grey); }
.group { margin: 18px 0 6px; font-weight: 700; }

@media (max-width: 980px) {
  .nav {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    margin-bottom: 12px;
  }
}

/* ===== PRODUCT NAV ITEMS ===== */
.nav-product { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; text-decoration: none; }
.nav-product-thumb, .nav-product-placeholder {
  width: 64px; height: 48px; flex: 0 0 64px;
  border-radius: 8px; overflow: hidden;
  background: rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.08);
}
.nav-product-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-product-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-product-name { font-weight: 600; line-height: 1.2; }
.nav-product-desc { font-size: 12px; opacity: 0.8; line-height: 1.25; }

/* ===== PANEL ===== */
.panel {
  min-height: 340px; background: var(--main-blue);
  border: 2px solid var(--dark-blue); border-radius: 6px; padding: 18px;
  color: var(--white); display: flex; align-items: stretch; justify-content: flex-start;
}
.panel .content { max-width: 950px; width: 100%; text-align: left; }
.panel h2 { margin: 0 0 10px; font-size: 20px; }
.panel p { margin: 0; line-height: 1.4; }
.muted { opacity: 0.9; }
@media (max-width: 980px) { .panel { padding: 12px; } }

/* ===== PRODUCT DETAIL ===== */
.product-header h2 { margin: 0 0 12px; font-size: clamp(16px, 3vw, 22px); }
.product-body { margin-bottom: 14px; }
.product-body p { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.panel-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 12px;
}
.panel-card h3 { margin: 0 0 10px; font-size: 16px; }

/* ===== BOOKING FORM ===== */
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.form .field { flex: 1; min-width: 140px; }
.form label { display: block; margin-bottom: 4px; font-size: 14px; }
.form input, .form textarea {
  width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15); resize: vertical;
  font-size: 16px; /* prevents iOS auto-zoom */
}
.btn {
  background: var(--white); color: var(--foot-blue); border: 0;
  padding: 12px 18px; margin-top: 1rem; border-radius: 8px;
  cursor: pointer; font-weight: 700; font-size: 16px; width: 100%;
}
.btn:hover { opacity: 0.92; }

/* ===== CALENDAR ===== */
.calendar-wrapper { width: 100%; max-width: 100%; overflow-x: auto; }
.cal {
  width: 100%; table-layout: fixed; border-collapse: collapse;
  background: rgba(255,255,255,0.06); min-width: 260px;
}
.cal th, .cal td {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px; height: 44px; vertical-align: top;
}
.cal th { font-size: 11px; opacity: 0.95; text-align: center; }
.cal-num { font-weight: 700; font-size: 13px; }
.cal-empty { background: rgba(0,0,0,0.08); }

.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-title { font-weight: 800; flex: 1; text-align: center; }
.cal-nav {
  background: rgba(255,255,255,0.14); color: var(--white);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 18px;
  line-height: 1; min-width: 44px; text-align: center;
}

.cal-day.cal-approved { background: var(--effect2-transparent); }
.cal-day.cal-pending  { background: var(--effect-transparent); }
.cal-legend { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.badge-approved { background: var(--effect2); border: 1px solid rgba(255,255,255,0.2); }
.badge-pending  { background: var(--effect); border: 1px solid rgba(255,255,255,0.2); }
.badge-free     { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.2); }

.cal-day.cal-free { cursor: pointer; }
.cal-pick-btn {
  width: 100%; height: 100%; background: transparent; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  padding: 2px; min-height: 36px;
}
.cal-day.cal-selected-start,
.cal-day.cal-selected-end {
  outline: 2px solid var(--dark-blue);
  background: var(--effect2) !important;
  color: #fff;
}
.cal-day.cal-selected-range { background: var(--effect-transparent) !important; }

/* ===== GALLERY ===== */
.product-gallery { margin: 0 0 18px 0; }
.gallery-main { margin-bottom: 12px; }
.gallery-main img {
  display: block; width: 100%; max-width: 720px;
  height: auto; max-height: 60vh; object-fit: contain;
  border-radius: 14px; box-shadow: 0 10px 25px rgba(0,0,0,.12);
  background: #fff; cursor: zoom-in;
}
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.gallery-thumbs img {
  display: block; width: 80px; height: 60px; object-fit: cover;
  border-radius: 8px; cursor: pointer; opacity: .9;
  border: 2px solid transparent; background: #fff;
}
@media (max-width: 600px) { .gallery-thumbs img { width: 60px; height: 45px; } }
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.is-active { border-color: var(--effect); }
.product-gallery img { max-width: 100%; }

/* ===== EXTRAS ===== */
.extras-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.extra-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  cursor: pointer; color: var(--white); font-size: 13px; line-height: 1.4;
}
.extra-item input { width: auto; margin-top: 2px; flex-shrink: 0; min-width: 18px; min-height: 18px; }

/* ===== INTRO PAGE ===== */
.intro { background: #ffffff; border-radius: 14px; padding: 24px; box-shadow: 0 12px 28px rgba(0,0,0,.08); margin-bottom: 20px; }
.intro h2 { margin-top: 0; font-size: clamp(20px, 5vw, 28px); color: #1e3a5f; }
.intro-lead { font-size: clamp(15px, 2.5vw, 18px); color: #374151; line-height: 1.6; margin-bottom: 18px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
@media (max-width: 600px) { .intro { padding: 16px; } .intro-grid { grid-template-columns: 1fr; } }
.intro-card { background: #f8fafc; border-radius: 12px; padding: 18px; border: 1px solid #e5e7eb; }
.intro-card h3 { margin-top: 0; color: #1f2937; }
.intro-card ul { padding-left: 18px; line-height: 1.6; }
.intro-highlight { background: #eef6ff; border: 1px solid #c7ddff; padding: 16px; border-radius: 12px; margin-top: 20px; }
.intro-highlight strong { color: #1e40af; }
.intro-hero { width: 100%; border-radius: 14px; margin-bottom: 20px; }

/* ===== FOOTER ===== */
.site-footer { margin-top: 0; padding: 0 0 2px; border-top: 1px solid rgba(0,0,0,0.1); background: #f7f7f7; font-size: 14px; line-height: 1.2; }
.footer-inner { display: flex; flex-direction: column; gap: 4px; }

/* ===== ADMIN DROPZONE ===== */
.dropzone {
  display: block; width: 100%; min-height: 100px;
  border: 2px dashed #94a3b8; border-radius: 12px; background: #f8fafc;
  padding: 18px; text-align: center; cursor: pointer; transition: all .15s ease;
}
.dropzone.dragover { border-color: #2563eb; background: #eff6ff; }
.dropzone-title { font-weight: 700; margin-bottom: 6px; }
.dropzone-note { color: #6b7280; font-size: 13px; }
.dropzone input[type=file] { display: none !important; }
