/*
Theme Name: Worthy - Free Powerful Theme by HtmlCoder
Author:HtmlCoder
Author URI:http://www.htmlcoder.me
Version:1.0.0
Created:November 2014
License: Creative Commons Attribution 3.0 License (https://creativecommons.org/licenses/by/3.0/)
File Description: Place here your custom CSS styles
*/

/* ===================== Sevilla campaign: offer in the banner and delivery map ===================== */
html { scroll-behavior: smooth; }

/* The banner used to be a fixed 300px high; it now grows to fit its content. */
.banner { height: auto; min-height: 300px; }
.banner-image { align-self: stretch; min-height: 280px; }

.hero-zones-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
.hero-zones-link:hover { color: #F0D042; }

/* Offer block: replaces the phone-and-bags picture while an offer is running (text is live, from the database) */
.banner.banner-has-offer { padding-bottom: 0; align-items: flex-end; }
.banner-has-offer .banner-caption { width: 42%; align-self: center; padding-bottom: 20px; }
.banner-offer {
  width: 58%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.offer-text {
  align-self: center;
  padding: 10px 0 26px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #fff;
  text-align: left;
}
.offer-amount { font-size: clamp(64px, 9vw, 124px); font-weight: 800; line-height: .92; letter-spacing: -2px; }
.offer-off { color: #F0D042; font-size: clamp(22px, 3vw, 38px); font-weight: 700; line-height: 1.05; }
.offer-first { font-size: clamp(16px, 2.2vw, 28px); font-weight: 700; line-height: 1.15; }
.offer-minimum { margin-top: 6px; font-size: 12px; font-weight: 600; opacity: .85; }
.offer-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px 8px 12px;
  border-radius: 16px;
  background: #fff;
  color: #0D666A;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.05;
}
.offer-free i { font-size: 1.5em; }
.offer-photo { display: block; height: clamp(230px, 28vw, 330px); width: auto; max-width: 48%; }

@media (max-width: 767px) {
  .banner-image { min-height: 200px; }
  .banner.banner-has-offer { padding-bottom: 0; align-items: center; }
  .banner-has-offer .banner-caption { width: 100%; padding-bottom: 0; }
  .banner-offer { width: 100%; margin-top: 18px; }
  .offer-text { padding-bottom: 16px; }
  .offer-photo { height: 200px; max-width: 46%; }
}

/* Hellobar: thin promotion strip at the very top (only while an offer is running) */
.hellobar {
  position: sticky;
  top: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 44px 8px 16px;
  background: #F0D042;
  color: #0A3F3F;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.hellobar-text i { margin-right: 4px; }
.hellobar-cta {
  padding: 4px 14px;
  border-radius: 999px;
  background: #0E7878;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.hellobar-cta:hover { background: #0A5C5C; color: #fff; }
.hellobar-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #0A3F3F;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Download call-to-action strips */
.cta-strip {
  padding: 36px 20px 40px;
  background: #0E7878;
  color: #fff;
  text-align: center;
}
.cta-strip h2 { margin: 0 0 8px; color: #fff; font-size: 28px; font-weight: 700; }
.cta-strip p { margin: 0 auto 6px; max-width: 640px; color: #fff; font-size: 17px; }
.cta-strip .download-buttons { justify-content: center; margin-top: 16px; }
.cta-strip-alt { background: #0A5C5C; }
@media (max-width: 767px) {
  .cta-strip h2 { font-size: 22px; }
  .hellobar { font-size: 13px; padding-right: 38px; }
}

/* Delivery map: names around the map, area highlighted, magnified close-up underneath */
.zones-section { text-align: center; }
.zones-intro { font-size: 17px; color: #333; margin: -10px auto 8px; max-width: 700px; }
.zones-hint { margin: 0 auto 14px; max-width: 700px; font-size: 14px; color: #777; }
.zones-search { position: relative; max-width: 420px; margin: 0 auto 8px; }
.zones-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0E7878;
  pointer-events: none;
}
.zones-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  border: 1px solid #b9d3d3;
  border-radius: 999px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
.zones-search input:focus { border-color: #0E7878; box-shadow: 0 0 0 3px rgba(14, 120, 120, .18); }
.zones-msg { min-height: 24px; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.zones-msg.is-ok { color: #0E7878; }
.zones-msg.is-no { color: #b3261e; }

.zmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;           /* names and map block end at the same height */
  max-width: 1200px;
  margin: 0 auto;
}
.zlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(var(--rows, 26), auto);
  column-gap: 8px;
  align-content: space-between;   /* spreads the names so the list is as tall as the map block */
}
.zlist li { margin: 0; display: flex; align-items: center; }
.zlist-left li { text-align: right; }
.zlist-right li { text-align: left; }
.zlist-alpha { display: none; }
.zname {
  display: block;
  width: 100%;
  padding: 3px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0A5C5C;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: inherit;
  cursor: pointer;
}
.zname:hover, .zname:focus { background: #e4f0f0; outline: none; }
.zname.is-active { background: #F0D042; color: #3b2f00; font-weight: 700; }

.zmap-main {
  position: relative;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #d5e3e3;
  background: linear-gradient(#f6fafa, #e9f2f2);
  min-height: 240px;
}
.dmap { display: block; width: 100%; height: auto; max-height: 520px; }
.zarea {
  fill: #0E7878;
  fill-opacity: .85;
  stroke: #fff;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .12s;
}
.zarea:hover { fill: #0A4F4F; fill-opacity: 1; }
.zarea.is-active { fill: #F0D042; fill-opacity: 1; stroke: #B8860B; stroke-width: 2; }
.zmarker { pointer-events: none; }
.zmarker-dot { fill: #F0D042; stroke: #0A3F3F; stroke-width: 2; vector-effect: non-scaling-stroke; }
.zmarker-ring {
  fill: none;
  stroke: #F0D042;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: zpulse 1.4s ease-out infinite;
}
@keyframes zpulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.zones-tip {
  position: absolute;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: #0A3F3F;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -135%);
}
.zones-tip[hidden], .zinset-clear[hidden] { display: none; }

.zcenter { display: flex; flex-direction: column; min-width: 0; }
.zmap-main { flex: 0 0 auto; }
.zinset { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 14px; border: 1px solid #d5e3e3; border-radius: 14px; overflow: hidden; background: #fff; }
.zinset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 6px 12px 6px 16px;
  background: #0E7878;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.zinset-clear {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.zinset-clear:hover { background: rgba(255, 255, 255, .35); }
.zinset-body { position: relative; flex: 1 1 auto; min-height: 190px; background: linear-gradient(#f6fafa, #e9f2f2); }
.zinset-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.zinset-idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 24px;
  color: #6b7f7f;
  font-size: 14px;
  text-align: center;
}

.zones-legend { margin-top: 10px; font-size: 14px; color: #555; }
.zones-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  border-radius: 3px;
  background: #0E7878;
}
.zones-names { line-height: 1.7; margin: 8px 0 0; }

/* below this width the side lists would be too narrow: stack the map, the close-up and one alphabetical list */
@media (max-width: 1199px) {
  .zmap { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .zlist-left, .zlist-right { display: none; }
  .zlist-alpha {
    display: block;
    column-count: 2;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d5e3e3;
    border-radius: 14px;
    text-align: left;
    background: #fff;
  }
  .zinset-body { height: 190px; }
}
@media (max-width: 767px) {
  .zmap-main { padding: 8px; }
}

/* "Support local business" card in the features row: the Andalusian flag takes the place of an icon */
.feature .icon.flag-icon {
  width: 78px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}
@media (max-width: 480px) { .feature .icon.flag-icon { width: 80px; height: auto; } }

/* Five feature cards: centre the rows so a lone card on the last row sits in the middle */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }

/* Smaller line under a section heading (e.g. under "Discover our app") */
.section-subtitle {
  margin: -18px auto 28px;
  max-width: 640px;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #555;
}
@media (max-width: 480px) { .section-subtitle { font-size: 1.35rem; margin-top: -22px; } }

/* Logo in the top banner */
.banner-logo { display: block; width: 76px; height: auto; margin: 0 0 10px; }
@media (max-width: 767px) { .banner-logo { margin-left: auto; margin-right: auto; width: 68px; } }

/* "Why choose Miodel": all five cards in ONE row on computers and laptops */
@media (min-width: 992px) {
  .features { flex-wrap: nowrap; gap: 16px; max-width: 1320px; margin-left: auto; margin-right: auto; padding: 0 10px; }
  .feature { flex: 1 1 0; width: auto; min-width: 0; padding: 22px 12px; }
  .feature h3 { flex-direction: column; gap: 8px; text-align: center; font-size: 18px; }
  .feature h3 .icon { width: 64px; height: 64px; }
  .feature h3 .icon.flag-icon { width: 80px; height: auto; }
  .feature p { font-size: 15px; }
}
@media (max-width: 991px) {
  .features { flex-wrap: wrap; }
  .feature { flex: 0 0 280px; }
}

/* Download call to action together with the app screens */
.cta-merged { padding-bottom: 20px; overflow: hidden; }
.cta-merged .screenshot-display { padding: 30px 20px 20px; }

/* Combined download section: white background, dark text */
.cta-merged { background: #fff; color: #333; }
.cta-merged h2 { color: #0E7878; }
.cta-merged p { color: #555; }
.cta-merged .screenshot { cursor: pointer; }

/* Store chooser opened by tapping a phone on a computer */
.store-choice {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .55);
}
.store-choice[hidden] { display: none; }
.store-choice-box {
  position: relative;
  width: min(460px, 100%);
  padding: 30px 24px 26px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.store-choice-title { margin: 0 0 6px; color: #0E7878; font-size: 20px; font-weight: 700; }
.store-choice .download-buttons { justify-content: center; margin-top: 16px; }
.store-choice-close {
  position: absolute;
  top: 6px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ---- Customer reviews ---- */
.reviews-section .reviews-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-bottom:22px; }
.review-stars { position:relative; display:inline-block; font-size:26px; line-height:1; letter-spacing:2px; white-space:nowrap; }
.review-stars-bg { color:#d5dcdc; }
.review-stars-fg { position:absolute; left:0; top:0; overflow:hidden; color:#f5a623; white-space:nowrap; }
.reviews-average { font-size:28px; font-weight:700; color:#0e7878; }
.reviews-meta { color:#555; font-size:15px; }
.reviews-list { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; max-width:1100px; margin:0 auto; padding:0 10px; }
.review-card { flex:1 1 300px; max-width:340px; margin:0; background:#fff; border-radius:14px; padding:18px 18px 14px 18px; box-shadow:0 2px 12px rgba(0,0,0,.07); text-align:left; }
.review-card .review-stars { font-size:20px; margin-bottom:8px; }
.review-card blockquote { margin:0 0 10px 0; padding:0; border:0; font-size:15px; line-height:1.5; color:#333; }
.review-card figcaption { font-size:13px; color:#777; font-weight:600; }
[dir="rtl"] .review-card { text-align:right; }
