/* ==========================================================================
   My Property Tenerife — stylesheet
   Brand palette (see BRAND GUIDELINES.My property tenerife.pdf):
     Verde        #9ebe38
     Grigio       #585857
     Verde Acqua  #6aae84
   ========================================================================== */

@font-face {
  font-family: 'Champagne Limousines';
  src: url('../assets/fonts/ChampagneLimousines-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Champagne Limousines';
  src: url('../assets/fonts/ChampagneLimousines-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #6aae84;
  --green-dark: #3d7a54;
  --grey: #585857;
  --teal: #6aae84;
  --teal-dark: #3d7a54;

  --ink: #2c2c2b;
  --ink-soft: #585857;
  --cream: #faf9f5;
  --cream-deep: #f1efe6;
  --white: #ffffff;
  --line: #e6e3d8;

  --font-head: 'Champagne Limousines', 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(44, 44, 43, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(44, 44, 43, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--cream-deep); }
.section--dark { background: var(--ink); color: #f1efe6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2c5f40;
  background: #e3f1e8;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #26310a; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-teal { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-teal:hover { background: #2f6342; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, .98);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 76px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name span { display: block; font-size: 1.15rem; letter-spacing: .01em; color: var(--ink); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal-dark); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,32,24,.35) 0%, rgba(20,26,20,.55) 55%, rgba(15,20,16,.82) 100%);
  z-index: 1;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 120px 0 90px; }
.hero-content .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.hero-content p.lead { font-size: 1.15rem; color: #eceae1; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.22);
  margin-top: 40px;
}
.hero-stats div { padding: 18px 20px 0; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #8fe3ac; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hero-stats span { font-size: .82rem; color: #dedcd2; }

/* Page header (inner pages) --------------------------------------------- */
.page-hero {
  padding: 64px 0 48px;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: var(--ink-soft); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--teal-dark); }

/* Cards: services --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(106, 174, 132, .16);
  color: var(--green-dark);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.service-card a.link { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--teal-dark); }

/* Property cards ----------------------------------------------------------*/
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
a.property-card { text-decoration: none; color: inherit; }
.property-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-available { background: var(--teal-dark); color: #fff; }
.badge-sold { background: var(--grey); color: #fff; }
.badge-rent { background: var(--green); color: #26310a; }
.property-type {
  position: absolute; top: 14px; right: 14px;
  background: rgba(44,44,43,.55);
  color: #fff; font-size: .72rem; font-family: var(--font-head);
  padding: 5px 10px; border-radius: 999px;
}
.property-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.property-loc { font-size: .82rem; color: var(--teal-dark); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.property-loc svg { width: 14px; height: 14px; }
.property-title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; }
.property-title a { color: inherit; text-decoration: none; }
.property-title a:hover { text-decoration: underline; }
.property-price { margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.property-price.muted { color: var(--ink-soft); font-size: 1rem; font-weight: 500; }

/* Blog ---------------------------------------------------------------------*/
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-date { font-size: .78rem; color: var(--teal-dark); font-weight: 600; font-family: var(--font-head); }
.blog-title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; margin: 0; }
.blog-excerpt { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.blog-readmore { margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--teal-dark); }

.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article-cover { width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.blog-article-body { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.blog-article-body p { margin: 0 0 18px; }
.blog-article-body h2 { color: var(--ink); font-size: 1.4rem; margin: 32px 0 14px; }
.blog-article-body h3 { color: var(--ink); font-size: 1.15rem; margin: 26px 0 12px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 18px 22px; }
.blog-article-body li { margin-bottom: 6px; }
.blog-article-body a { color: var(--teal-dark); text-decoration: underline; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0 18px; }
.blog-article-body blockquote { border-left: 3px solid var(--teal); padding-left: 18px; color: var(--ink); font-style: italic; margin: 0 0 18px; }

/* Filter tabs -------------------------------------------------------------*/
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Reformas / before-after --------------------------------------------------*/
.reforma-block {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.reforma-block:last-child { border-bottom: none; }
.reforma-block.reverse { direction: rtl; }
.reforma-block.reverse > * { direction: ltr; }

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap {
  position: absolute; inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%;
}
.ba-slider .ba-before-wrap img { width: var(--slider-w, 100%); max-width: none; height: 100%; }
.ba-tag { position: absolute; top: 14px; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; z-index: 3; }
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 44px; margin-left: -22px;
  z-index: 4;
  cursor: ew-resize;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  transform: translateX(-50%);
}
.ba-handle .grip {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  z-index: 1;
}
.ba-handle .grip svg { width: 18px; height: 18px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; }

.reforma-meta { font-size: .82rem; color: var(--ink-soft); display: flex; gap: 14px; margin-bottom: 10px; font-family: var(--font-head); font-weight: 600; }
.reforma-meta .tag { background: #e3f1e8; color: #2c5f40; padding: 3px 10px; border-radius: 999px; }
.reforma-block h3 { font-size: 1.5rem; }
.reforma-block .loc { color: var(--teal-dark); font-weight: 600; margin-bottom: 12px; }

/* About / team --------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); text-align: center;
}
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-size: 1.8rem; font-weight: 600;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--teal-dark); font-weight: 600; font-size: .88rem; margin-bottom: 14px; font-family: var(--font-head); }
.team-contact { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.team-contact a { color: var(--ink); }
.team-contact a:hover { color: var(--teal-dark); }

.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stats-strip strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--green-dark); }
.stats-strip span { color: var(--ink-soft); font-size: .88rem; }

/* Reviews ------------------------------------------------------------- */
.review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.review-score { display: flex; align-items: center; gap: 18px; }
.review-score .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); }
.stars { color: var(--green); letter-spacing: 2px; font-size: 1.1rem; }
.review-score p { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; }

/* Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px;
}
.contact-card svg { width: 22px; height: 22px; color: var(--teal-dark); flex-shrink: 0; margin-top: 3px; }
.contact-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.contact-card a { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--teal-dark); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 8px; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.cc-gated { position: relative; }
.cc-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background: var(--cream-deep); color: var(--ink-soft); font-size: .9rem;
}
.cc-gated.cc-loaded .cc-placeholder { display: none; }
.pm-map.cc-gated { min-height: 220px; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }

.form-msg { font-size: .9rem; font-weight: 600; margin-top: 14px; display: none; }
.form-msg:empty { display: none; }
.form-msg-ok { display: block; color: var(--green-dark); }
.form-msg-error { display: block; color: #b3413a; }

/* CTA banner --------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal) 60%, var(--green));
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: #f1efe6; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfcdc3; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand span { font-family: var(--font-head); font-weight: 600; color: #fff; }
.site-footer p { color: #a9a79c; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cfcdc3; font-size: .92rem; }
.footer-links a:hover { color: var(--green); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.footer-social a:hover { background: var(--teal-dark); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: #8a887e;
}
.footer-bottom a { color: #8a887e; }
.footer-bottom a:hover { color: #fff; }

/* Whatsapp float ----------------------------------------------------------*/
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* Utility ---------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 56px; }

/* Responsive --------------------------------------------------------------*/
/* The header's nav has 9 top-level links (Inicio…Blog) plus phone number,
   Contactar button and language switcher — that content genuinely needs
   ~1100px to fit on one row without wrapping (all nav/brand text is
   white-space:nowrap). Below that, "My Property Tenerife" and the nav
   links would visually overlap rather than shrink, so the off-canvas/
   hamburger nav has to take over well before the general 760px breakpoint,
   not just on true mobile widths. */
@media (max-width: 1180px) {
  .site-header .container { height: 76px; }
  .brand img { height: 56px; }
  .brand-name, .brand-name span { font-size: .92rem; }
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 6px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .phone-link span { display: none; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .reforma-block, .reforma-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2,1fr); row-gap: 24px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .review-banner { flex-direction: column; align-items: flex-start; }
  .hero-content { padding: 90px 0 60px; }
  .pm-modal { width: 94%; max-height: 92vh; }
  .pm-gallery { height: 240px; }
  .pm-body { padding: 20px; }
}

/* Property detail modal --------------------------------------------- */
.pm-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(24, 28, 24, .72);
  align-items: center; justify-content: center;
  padding: 24px;
}
.pm-overlay.open { display: flex; }
.pm-modal {
  background: var(--white);
  border-radius: var(--radius);
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.pm-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pm-close:hover { background: rgba(0,0,0,.75); }
.pm-gallery { position: relative; height: 420px; background: var(--ink); }
.pm-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.85); color: var(--ink);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pm-arrow:hover { background: #fff; }
.pm-prev { left: 16px; }
.pm-next { right: 16px; }
.pm-counter {
  position: absolute; bottom: 14px; right: 16px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .8rem;
  padding: 4px 10px; border-radius: 999px;
}
.pm-thumbs {
  display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto;
  background: var(--cream-deep);
}
.pm-thumb {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: .55; flex-shrink: 0; border: 2px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}
.pm-thumb:hover { opacity: .85; }
.pm-thumb.active { opacity: 1; border-color: var(--teal); }
.pm-body { padding: 28px 32px 32px; }
.pm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pm-head .pm-badge { position: static; }
.pm-title { margin: 0; font-size: 1.4rem; flex: 1 1 auto; }
.pm-price { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.pm-loc { color: var(--ink-soft); font-size: .92rem; margin: 4px 0 16px; }
.pm-specs { display: flex; gap: 22px; margin-bottom: 18px; }
.pm-specs span { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.pm-specs svg { width: 18px; height: 18px; color: var(--teal-dark); }
.pm-desc { color: var(--ink-soft); font-size: .96rem; line-height: 1.65; margin-bottom: 22px; }
.pm-desc p { margin: 0 0 12px; }
.pm-desc p:last-child { margin-bottom: 0; }
.pm-map { position: relative; margin-bottom: 22px; border-radius: var(--radius-sm); overflow: hidden; }
.pm-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.pm-map-iframe { pointer-events: none; }
.pm-map-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.pm-map-link span { background: rgba(44,44,43,.85); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: 7px 14px; border-radius: 999px; transition: background .15s ease; }
.pm-map-link:hover span { background: var(--teal-dark); }

/* Airbnb badge — shown on alquiler listings that have an Airbnb link set in
   the backoffice. Deliberately styled with Airbnb's brand red as a distinct
   accent, not a generic teal button, so it reads as "also listed elsewhere". */
.pm-airbnb { display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff1f2; border: 1px solid #ffd7dc; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 22px; }
.pm-airbnb-text { font-size: .88rem; color: var(--ink); }
.pm-airbnb-text strong { color: #ff385c; }
.pm-airbnb-btn { background: #ff385c; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap; transition: background .15s ease; }
.pm-airbnb-btn:hover { background: #e0334f; }

/* ==========================================================================
   Property detail pages (/propiedad/<slug>.html)
   ========================================================================== */
.pd-loc { display: flex; align-items: center; gap: 6px; }
.pd-loc svg { width: 16px; height: 16px; flex-shrink: 0; }
.pd-gallery { margin-bottom: 24px; }
.pd-main { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; background: var(--cream-deep); }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.pd-thumb { width: 100%; height: 70px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; opacity: .75; border: 2px solid transparent; transition: opacity .15s ease, border-color .15s ease; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb-active { opacity: 1; border-color: var(--teal); }
.pd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 18px; }
.pd-price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.pd-cta { margin-top: 8px; }

/* Airbnb badge — see .pm-airbnb above for the matching quick-view version. */
.pd-airbnb { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #fff1f2; border: 1px solid #ffd7dc; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; }
.pd-airbnb-text { font-size: .92rem; color: var(--ink); }
.pd-airbnb-text strong { color: #ff385c; }
.pd-airbnb-btn { background: #ff385c; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 9px 18px; border-radius: 999px; white-space: nowrap; transition: background .15s ease; }
.pd-airbnb-btn:hover { background: #e0334f; }

/* Location widget: a real Google Maps embed (auto-geocoded from the property's
   address, with a red pin) that's also a click-through to Google Maps. The
   iframe itself is non-interactive (pointer-events: none) — a full-size <a>
   sibling sits on top so the whole card is one big click target rather than
   fighting the embedded map's own pan/zoom for clicks. */
.pd-map { position: relative; margin-bottom: 22px; border-radius: var(--radius-sm); overflow: hidden; }
.pd-map.cc-gated { min-height: 260px; }
.pd-map-iframe { width: 100%; height: 260px; border: 0; display: block; pointer-events: none; }
.pd-map-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px; }
.pd-map-link span { background: rgba(44,44,43,.85); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 8px 16px; border-radius: 999px; transition: background .15s ease; }
.pd-map-link:hover span { background: var(--teal-dark); }

@media (max-width: 640px) {
  .pd-main { max-height: 320px; }
}

/* ==========================================================================
   Legal pages (Aviso legal / Privacidad / Cookies)
   ========================================================================== */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul, .legal-content ol { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: .4em; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-content th { background: var(--cream-deep); font-family: var(--font-head); }
.legal-content .pending { color: #b5452b; font-weight: 600; }
.legal-content .updated { color: var(--ink-soft); font-size: .88rem; margin-bottom: 2em; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -14px rgba(44,44,43,.3);
  padding: 20px 24px; display: none;
}
.cc-banner.open { display: block; }
.cc-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.cc-text { flex: 1 1 420px; font-size: .9rem; color: var(--ink-soft); margin: 0; }
.cc-text a { color: var(--teal-dark); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-actions button { font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.cc-actions .cc-accept { background: var(--green); border-color: var(--green); color: #26310a; }
.cc-actions .cc-accept:hover { background: var(--green-dark); border-color: var(--green-dark); }
.cc-actions .cc-reject:hover, .cc-actions .cc-config:hover { border-color: var(--teal); color: var(--teal-dark); }

.cc-modal-overlay { position: fixed; inset: 0; background: rgba(44,44,43,.5); z-index: 1001; display: none; align-items: center; justify-content: center; padding: 20px; }
.cc-modal-overlay.open { display: flex; }
.cc-modal { background: var(--white); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 28px; max-height: 86vh; overflow-y: auto; }
.cc-modal h3 { margin-top: 0; }
.cc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cc-row:last-of-type { border-bottom: none; }
.cc-row-text strong { font-family: var(--font-head); font-size: .95rem; }
.cc-row-text p { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 0; }
.cc-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; }
.cc-switch .cc-slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s ease; }
.cc-switch .cc-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; }
.cc-switch input:checked + .cc-slider { background: var(--teal-dark); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { background: var(--teal-dark); opacity: .5; cursor: not-allowed; }
.cc-modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cc-modal-actions button { flex: 1 1 auto; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 11px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.cc-modal-actions .cc-save { background: var(--green); border-color: var(--green); color: #26310a; }

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--ink); cursor: pointer; text-transform: uppercase;
}
.lang-switch-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.lang-switch-btn svg { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 140px; padding: 6px; display: none; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: .88rem; color: var(--ink); }
.lang-menu a:hover { background: var(--cream-deep); }
.lang-menu a.active { color: var(--teal-dark); font-weight: 600; }
@media (max-width: 760px) {
  .cc-inner { flex-direction: column; align-items: stretch; }
  .cc-actions { justify-content: stretch; }
  .cc-actions button { flex: 1 1 auto; }
}

/* ==========================================================================
   Our Story (nosotros.html)
   ========================================================================== */
.story-body { max-width: 720px; margin: 40px auto 0; }
.story-body h3 { font-size: 1.15rem; margin-top: 2em; }
.story-body h3:first-child { margin-top: 0; }
.story-body p { color: var(--ink-soft); }
.story-quote {
  margin: 32px 0; padding: 22px 28px; border-left: 4px solid var(--teal);
  background: var(--cream-deep); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--ink);
}
.story-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.story-list li { display: flex; gap: 10px; }
.story-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--teal-dark); }
.story-list span { color: var(--ink-soft); }
.story-cta { text-align: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.story-cta h3 { margin-top: 0; margin-bottom: 18px; }
