/* ============================================
   Apartment JuNa – Estepona
   Spanisches Küsten-Design: Terrakotta, Mittelmeer-Blau, Sand
   ============================================ */

:root {
  --terracotta: #c1623d;
  --terracotta-dark: #96492c;
  --sea: #1f6f80;
  --sea-dark: #15505c;
  --sand: #f7f0e4;
  --sand-deep: #ece0c9;
  --ink: #2b2420;
  --ink-soft: #5b5147;
  --white: #fffdf8;
  --gold: #c89b3c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.12);
  --shadow-sm: 0 4px 14px rgba(43, 36, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-dark); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: var(--sea);
  color: var(--sea);
}
.btn-outline:hover {
  background: var(--sea);
  color: var(--white);
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-deep);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  display: block;
}
.logo span.tag {
  font-family: "Mulish", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  align-self: center;
}
nav.main {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main a.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main a.nav-link:hover,
nav.main a.nav-link.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--sand-deep);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--white);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

@media (max-width: 860px) {
  nav.main {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main.open { transform: translateX(0); }
  .lang-switch { margin-left: 0; margin-top: 10px; }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 25, 28, 0.15) 0%, rgba(21, 25, 28, 0.75) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
  max-width: 720px;
}
.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-content h1 { color: var(--white); margin-bottom: 14px; }
.hero-content p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 25, 28, 0.5);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 560px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--terracotta);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Highlight cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-deep);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Photo grid / gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.photo-grid a:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ---------- Amenities list ---------- */
.amenity-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-deep);
}
.amenity-block h3 {
  color: var(--sea-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.amenity-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.amenity-block li {
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  border-top: 1px dashed var(--sand-deep);
}
.amenity-block li:first-child { border-top: none; }

/* ---------- Promo / price band ---------- */
.price-band {
  background: var(--sea);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.price-band h3 { color: var(--white); margin-bottom: 6px; }
.price-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-deep);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--sand-deep);
  background: var(--sand);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--sea);
  outline-offset: 1px;
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: #e4f3e6; color: #276a3c; }
.form-msg.error { background: #fbe6e2; color: var(--terracotta-dark); }

.host-card {
  background: var(--sand-deep);
  border-radius: var(--radius);
  padding: 30px;
}
.host-card h3 { margin-bottom: 4px; }
.host-card .host-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.95rem;
}
.host-card .host-row .ico { color: var(--terracotta); flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 50px 0 26px;
  margin-top: 40px;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  footer.site .wrap { grid-template-columns: 1fr; }
}
footer.site h4 {
  color: var(--white);
  font-family: "Mulish", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
footer.site a { color: rgba(255, 255, 255, 0.78); }
footer.site a:hover { color: var(--gold); }
footer.site .logo { color: var(--white); margin-bottom: 10px; }
footer.site p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Misc ---------- */
.badge {
  display: inline-block;
  background: var(--sand-deep);
  color: var(--sea-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.legal-page { padding: 60px 0 90px; }
.legal-page h2 { margin-top: 1.4em; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
