/*
Theme Name: Feriebolig Costa del Sol
Theme URI: https://ferieboligcostadelsol.dk
Author: Thomas
Description: Udlejningsportal til private ferieboligudlejere på Costa del Sol
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: feriebolig-cds
*/
 
/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  /* Spansk palet — blå, orange, gul, rød */
  --sol-orange:   #FF6B35;   /* Levende orange */
  --sol-orange-d: #e55a28;
  --sol-red:      #DC2626;   /* Spansk rød */
  --sol-yellow:   #FFB800;   /* Sol-gul */
  --sol-blue:     #2563EB;   /* Klar mellemblå */
  --sol-blue-l:   #60A5FA;   /* Lys blå */
  --sol-sky:      #BAE6FD;   /* Himmelblå */
  --sol-white:    #FFFFFF;
  --sol-sand:     #FFF9F0;   /* Varm sandfarvet baggrund */
  --sol-light:    #EFF6FF;   /* Lysblå baggrund */
  --sol-dark:     #0B2D4E;   /* Mørk navy */
  --sol-grey:     #F1F5F9;
  --sol-border:   #E4ECF4;
  --sol-text:     #1A2B3C;
  --sol-muted:    #6B7C93;
  --radius:       12px;
  --shadow:       0 2px 16px rgba(11,45,78,0.09);
  --transition:   0.22s ease;
 
  /* Aliases — bruges af individuelle sidetemplates */
  --navy:   #0B2D4E;
  --orange: #FF6B35;
  --yellow: #FFB800;
  --green:  #22C55E;
  --sky:    #42A5F5;
  --white:  #fff;
  --off:    #F8FAFF;
  --text:   #1A2B3C;
  --muted:  #6B7C93;
  --border: #E4ECF4;
  --r:      12px;
  --sh:     0 2px 16px rgba(11,45,78,.09);
}
 
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sol-text);
  background: var(--sol-white);
}
 
a { color: var(--sol-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sol-orange); }
img { max-width: 100%; height: auto; display: block; }
 
/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
 
.section { padding: 60px 0; }
.section--grey { background: var(--sol-grey); }
.section--sand { background: var(--sol-sand); }
 
/* ─── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--sol-white);
  border-bottom: 1px solid var(--sol-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
 
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 40px;
}
 
.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sol-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
 
.site-logo span { color: var(--sol-orange); }
 
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a { font-weight: 600; color: var(--sol-text); }
.site-nav a:hover { color: var(--sol-orange); }
 
/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
 
.btn--primary { background: #FF6B35; color: #fff !important; border: 2px solid #FF6B35; }
.btn--primary:hover { background: #e55a28; border-color: #e55a28; color: #fff !important; transform: translateY(-1px); }
.btn--secondary { background: var(--sol-blue); color: #fff; border: 2px solid var(--sol-blue); }
.btn--secondary:hover { background: var(--sol-dark); color: #fff; }
.btn--outline { background: transparent; color: #0B2D4E; border: 2px solid #0B2D4E; }
.btn--outline:hover { background: #0B2D4E; color: #fff !important; }
.btn--ghost { background: transparent; color: #0B2D4E; border: 2px solid #E4ECF4; }
.btn--ghost:hover { background: #F8FAFF; border-color: #0B2D4E; color: #0B2D4E; }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 7px 14px; font-size: 0.85rem; }
.btn--lg { padding: 14px 32px; font-size: 1.05rem; }
 
/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 60%, #1d4ed8 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
 
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--sol-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
 
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
 
.hero__title em { color: var(--sol-orange); font-style: normal; }
.hero__subtitle { font-size: 1.15rem; opacity: 0.88; margin-bottom: 36px; max-width: 520px; }
 
/* ─── Search Form ───────────────────────────────────────── */
.search-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  max-width: 860px;
}
 
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--sol-muted); text-transform: uppercase; letter-spacing: 0.04em; }
 
.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--sol-border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--sol-text);
  background: #fff;
  transition: border-color var(--transition);
  width: 100%;
}
 
.form-control:focus { outline: none; border-color: var(--sol-orange); }
 
/* ─── Property Cards ────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
 
.property-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
 
.property-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,0.14); }
 
.property-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
 
.property-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-card__img img { transform: scale(1.04); }
 
.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--sol-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
 
.property-card__body { padding: 18px; }
.property-card__location { font-size: 0.82rem; color: var(--sol-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.property-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--sol-dark); }
.property-card__meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--sol-muted); margin-bottom: 14px; }
.property-card__meta span { display: flex; align-items: center; gap: 4px; }
.property-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--sol-border); }
.property-card__price { font-size: 1.15rem; font-weight: 800; color: var(--sol-blue); }
.property-card__price small { font-size: 0.8rem; font-weight: 400; color: var(--sol-muted); }
 
/* ─── Single Property ───────────────────────────────────── */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 300px 200px;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
 
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery img:first-child { grid-row: span 2; }
 
.property-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
 
.property-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
 
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--sol-grey);
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
}
 
.feature-item__icon { font-size: 1.6rem; margin-bottom: 6px; }
.feature-item__label { font-weight: 600; }
.feature-item__value { color: var(--sol-muted); font-size: 0.85rem; }
 
/* ─── Booking Box ───────────────────────────────────────── */
.booking-box {
  background: #fff;
  border: 1.5px solid var(--sol-border);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow);
}
 
.booking-box__price { font-size: 1.6rem; font-weight: 800; color: var(--sol-blue); margin-bottom: 20px; }
.booking-box__price small { font-size: 1rem; font-weight: 400; color: var(--sol-muted); }
.booking-box__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--sol-border); }
 
/* ─── Dashboard ─────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding: 40px 0; }
 
.dashboard-sidebar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--sol-border);
  padding: 20px 0;
  position: sticky;
  top: 90px;
}
 
.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--sol-text);
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
 
.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--sol-grey);
  color: var(--sol-orange);
  border-left-color: var(--sol-orange);
}
 
.dashboard-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--sol-border);
  padding: 24px;
  margin-bottom: 20px;
}
 
.dashboard-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--sol-dark); }
 
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--sol-grey); border-radius: 12px; padding: 20px; text-align: center; }
.stat-card__number { font-size: 2rem; font-weight: 800; color: var(--sol-blue); }
.stat-card__label { font-size: 0.85rem; color: var(--sol-muted); }
 
/* ─── Booking Status Badges ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
 
.badge--pending  { background: #FFF3CD; color: #856404; }
.badge--approved { background: #D1E7DD; color: #0A5C36; }
.badge--rejected { background: #F8D7DA; color: #842029; }
.badge--completed { background: #CFE2FF; color: #0842a0; }
 
/* ─── Tables ────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: var(--sol-grey); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sol-muted); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--sol-border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--sol-grey); }
 
/* ─── Forms ─────────────────────────────────────────────── */
.form-section { background: #fff; border-radius: 14px; border: 1px solid var(--sol-border); padding: 28px; margin-bottom: 24px; }
.form-section__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--sol-border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group--full { grid-column: 1 / -1; }
.form-hint { font-size: 0.8rem; color: var(--sol-muted); margin-top: 4px; }
 
textarea.form-control { min-height: 120px; resize: vertical; }
 
/* ─── Alerts & Messages ─────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 0.95rem; }
.alert--success { background: #D1E7DD; color: #0A5C36; border: 1px solid #A3CFBB; }
.alert--error   { background: #F8D7DA; color: #842029; border: 1px solid #F1AEB5; }
.alert--info    { background: #CFE2FF; color: #0842A0; border: 1px solid #9EC5FE; }
 
/* ─── Reklame zoner ─────────────────────────────────────── */
.reklame-zone { padding: 16px 0; background: var(--off); }
.reklame-zone--d { background: #081f36; padding: 20px 0; }
.reklame-zone__inner { display: flex; justify-content: center; align-items: center; min-height: 50px; }
.reklame-zone__inner img { max-width: 100%; height: auto; }
 
.site-footer { background: #0B2D4E; color: rgba(255,255,255,0.75); padding: 50px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--sol-orange); }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--sol-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }
 
/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .search-box { grid-template-columns: 1fr 1fr; }
  .property-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }}
 
@media (max-width: 600px) {
  .search-box { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: 250px; }
  .property-gallery img:first-child { grid-row: span 1; }
  .property-features { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav .btn--outline { display: none; }
}
 