/* ═══════════════════════════════════════════════════════════════
   Casa del Sol – Gastenportaal (bovenop style.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Actieve portaal nav-link ─────────────────────────────────── */
.nav-guest { display: flex; align-items: center; gap: 6px; }
.active-portal {
  color: var(--gold) !important;
  font-weight: 600;
}

/* ── Gast-balk (ingelogd als ...) ─────────────────────────────── */
.guest-bar {
  background: var(--blue);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 0;
  position: sticky;
  top: 72px;
  z-index: 98;
}
.guest-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guest-bar-label { display: flex; align-items: center; gap: 8px; }
.guest-bar-label i { color: var(--gold); }
.guest-bar-logout {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.guest-bar-logout:hover { background: rgba(255,255,255,0.22); }

/* ── Portaal tabs ─────────────────────────────────────────────── */
.portal-tabs-wrap {
  background: var(--white);
  border-bottom: 2px solid var(--sand-dark);
  position: sticky;
  top: 109px;
  z-index: 97;
}
.portal-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}
.portal-tabs::-webkit-scrollbar { display: none; }
.portal-tab {
  flex-shrink: 0;
  padding: 14px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.portal-tab:hover  { color: var(--blue); }
.portal-tab.active { color: var(--blue); border-bottom-color: var(--gold); font-weight: 600; }

/* ── Hoofdinhoud ──────────────────────────────────────────────── */
.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Kalender navigatie ───────────────────────────────────────── */
.cal-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.cal-nav-btn {
  width: 38px; height: 38px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: var(--blue-light); }
.cal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--blue);
  min-width: 240px;
  text-align: center;
}

/* Kalender grid (hergebruik van style.css klassen) */
.cal-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .cal-display { grid-template-columns: 1fr; } }

.cal-month-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(26,58,92,0.07);
}
.cal-month-title {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-name {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 7px 2px;
  border-radius: 6px;
  font-size: 0.82rem;
}
.cal-day.empty    { background: none; }
.cal-day.available{ background: #E8F5E9; color: #2E7D32; }
.cal-day.booked   { background: #FFEBEE; color: #C62828; }
.cal-day.option   { background: #FFF3E0; color: #E65100; }
.cal-day.blocked  { background: #ECEFF1; color: #546E7A; }
.cal-day.past     { opacity: 0.4; }
.cal-day.today    { outline: 2px solid var(--gold); font-weight: 700; }

/* ── Content grid (info-blokken) ──────────────────────────────── */
.portal-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.portal-info-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(26,58,92,0.07);
  border-left: 4px solid var(--gold);
}
.portal-info-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-info-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ── Gast-tips ────────────────────────────────────────────────── */
.tips-heading {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--blue);
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sand-dark);
}
.tip-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(26,58,92,0.06);
  border-left: 4px solid var(--gold-light, #E2C97E);
}
.tip-card h4 { color: var(--blue); font-size: 0.95rem; margin-bottom: 4px; }
.tip-card .tip-address { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.tip-card p { font-size: 0.88rem; color: var(--text); line-height: 1.6; }
.tip-card .tip-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 10px; }

/* ── Tip indienen formulier ───────────────────────────────────── */
.tip-submit-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  color: var(--white);
}
.tip-submit-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}
.tip-submit-card p {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 24px;
}
.tip-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .tip-form-row { grid-template-columns: 1fr; } }
.tip-submit-card input,
.tip-submit-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 9px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.tip-submit-card input::placeholder,
.tip-submit-card textarea::placeholder { color: rgba(255,255,255,0.5); }
.tip-submit-card input:focus,
.tip-submit-card textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.18);
}
.tip-submit-card .btn-primary {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}
.tip-submit-card .btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}
.tip-feedback { font-size: 0.84rem; min-height: 18px; margin-bottom: 8px; }
.tip-feedback.error   { color: #FFCDD2; }
.tip-feedback.success { color: #C8E6C9; }

/* ── Login sectie ─────────────────────────────────────────────── */
.portal-login-section {
  min-height: calc(100vh - 72px - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  padding: 48px 24px;
}
.portal-login-wrap { width: 100%; max-width: 460px; }
.portal-login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(26,58,92,0.12);
  text-align: center;
}
.portal-login-icon {
  width: 72px; height: 72px;
  background: var(--sand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--blue);
  margin: 0 auto 24px;
}
.portal-login-card h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.portal-login-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.portal-login-card .form-group { text-align: left; margin-bottom: 16px; }
.portal-login-card .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.input-icon-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.input-icon-wrap input:focus { outline: none; border-color: var(--blue-light); }
.portal-login-feedback {
  font-size: 0.84rem;
  min-height: 20px;
  margin: 8px 0;
  text-align: left;
}
.portal-login-feedback.error   { color: #C62828; }
.portal-login-feedback.success { color: #2E7D32; }
.portal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.portal-back-link:hover { color: var(--blue); }

/* ── Laad / leeg staat ────────────────────────────────────────── */
.portal-loading, .portal-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.portal-loading i, .portal-empty i { font-size: 1.8rem; display: block; margin-bottom: 12px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .portal-main { padding: 28px 16px 60px; }
  .tip-submit-card { padding: 24px 20px; }
  .portal-login-card { padding: 32px 24px; }
  .guest-bar-inner { padding: 8px 16px; }
  .portal-tabs { padding: 0 16px; }
  .portal-tab { padding: 12px 14px; font-size: 0.82rem; }
  .portal-tabs-wrap { top: 105px; }
}
