:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f3;

  --text: #0f172a;
  --muted: rgba(15,23,42,.62);
  --border: rgba(15,23,42,.12);

  --accent: #f5a623;
  --accent-soft: rgba(245,166,35,.18);

  --shadow: 0 18px 40px rgba(2,6,23,.10);
  --t: 180ms cubic-bezier(.2,.8,.2,1);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-lg: 18px;
  --r-md: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--bg);
}

/* Layout */
.page{
  width:min(1100px, calc(100% - 44px));
  margin:0 auto;
  padding: 22px 0 70px;
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 22px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

/* Brand / Logo */
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

/* small header logo */
.brand__logo--header{
  width:58px;
  height:58px;
  display:block;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

.brand__text{
  font-weight: 850;
  letter-spacing:.02em;
  font-size: 1.12rem;
}

/* Nav */
.nav{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  justify-content:center;
}

.nav__link{
  color:var(--muted);
  text-decoration:none;
  font-size: 1.02rem;
  font-weight: 650;
  padding: 10px 0;
  border-bottom:2px solid transparent;
  transition: color var(--t), border-color var(--t), transform var(--t);
}

.nav__link:hover{
  color:var(--text);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

/* ===== Right side (Instagram + Language) ===== */
.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.social{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--text);
  text-decoration:none;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}

.social:hover{
  transform: translateY(-1px);
  border-color: rgba(245,166,35,.55);
  background:#fff;
  box-shadow: 0 10px 18px rgba(2,6,23,.10);
}

.social__icon{ display:block; }

.social__img{
  width:20px;
  height:20px;
  display:block;
}

/* ===== Contact actions (phone/WhatsApp) ===== */
.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.btn--icon{ gap:10px; }

.icon{
  width:18px;
  height:18px;
  display:inline-block;
  flex:0 0 auto;
}

/* Phone icon (CSS mask) */
.icon--phone{
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1C10.07 22 2 13.93 2 3.5a1 1 0 0 1 1-1H6.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1C10.07 22 2 13.93 2 3.5a1 1 0 0 1 1-1H6.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* WhatsApp icon (CSS mask) */
.icon--whatsapp{
  background: #25D366;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.52 3.48A11.86 11.86 0 0 0 12.06 0C5.45.02.07 5.4.1 12.01c.01 2.11.57 4.17 1.62 5.98L0 24l6.18-1.62a11.9 11.9 0 0 0 5.88 1.5h.01c6.61 0 11.99-5.38 12.01-11.99a11.9 11.9 0 0 0-3.56-8.41zM12.06 21.8h-.01a9.9 9.9 0 0 1-5.04-1.38l-.36-.21-3.67.96.98-3.58-.24-.37a9.88 9.88 0 0 1-1.55-5.21c-.02-5.49 4.44-9.97 9.93-9.99a9.88 9.88 0 0 1 7.02 2.9 9.9 9.9 0 0 1 2.92 7.02c-.02 5.49-4.5 9.96-9.98 9.98zm5.76-7.86c-.31-.16-1.84-.91-2.13-1.02s-.5-.16-.72.16-.82 1.02-1 1.23-.36.24-.67.08a8.11 8.11 0 0 1-2.38-1.47 8.88 8.88 0 0 1-1.64-2.04c-.17-.31 0-.48.13-.64.14-.14.31-.36.47-.54.16-.18.21-.31.31-.52.1-.21.05-.39-.03-.54-.08-.16-.72-1.73-.98-2.37-.26-.63-.52-.54-.72-.55h-.62c-.21 0-.54.08-.82.39s-1.08 1.05-1.08 2.56 1.11 2.98 1.27 3.19 2.18 3.33 5.28 4.67c.74.32 1.32.51 1.77.65.74.24 1.41.2 1.94.12.59-.09 1.84-.75 2.1-1.47.26-.72.26-1.34.18-1.47-.08-.13-.29-.21-.6-.37z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.52 3.48A11.86 11.86 0 0 0 12.06 0C5.45.02.07 5.4.1 12.01c.01 2.11.57 4.17 1.62 5.98L0 24l6.18-1.62a11.9 11.9 0 0 0 5.88 1.5h.01c6.61 0 11.99-5.38 12.01-11.99a11.9 11.9 0 0 0-3.56-8.41zM12.06 21.8h-.01a9.9 9.9 0 0 1-5.04-1.38l-.36-.21-3.67.96.98-3.58-.24-.37a9.88 9.88 0 0 1-1.55-5.21c-.02-5.49 4.44-9.97 9.93-9.99a9.88 9.88 0 0 1 7.02 2.9 9.9 9.9 0 0 1 2.92 7.02c-.02 5.49-4.5 9.96-9.98 9.98zm5.76-7.86c-.31-.16-1.84-.91-2.13-1.02s-.5-.16-.72.16-.82 1.02-1 1.23-.36.24-.67.08a8.11 8.11 0 0 1-2.38-1.47 8.88 8.88 0 0 1-1.64-2.04c-.17-.31 0-.48.13-.64.14-.14.31-.36.47-.54.16-.18.21-.31.31-.52.1-.21.05-.39-.03-.54-.08-.16-.72-1.73-.98-2.37-.26-.63-.52-.54-.72-.55h-.62c-.21 0-.54.08-.82.39s-1.08 1.05-1.08 2.56 1.11 2.98 1.27 3.19 2.18 3.33 5.28 4.67c.74.32 1.32.51 1.77.65.74.24 1.41.2 1.94.12.59-.09 1.84-.75 2.1-1.47.26-.72.26-1.34.18-1.47-.08-.13-.29-.21-.6-.37z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Map panel */
.panel--map .map{
  margin-top:10px;
  overflow:hidden;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
}

.panel--map iframe{ display:block; }

/* small link under map */
.map-links{ margin-top:10px; }
.map-links__a{
  color: var(--muted);
  text-decoration:none;
  font-weight:650;
}
.map-links__a:hover{
  color: var(--text);
  text-decoration:underline;
}

/* ===== Language dropdown ===== */
.lang{position:relative; display:inline-flex}

.lang__btn{
  height: 40px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--text);
  cursor:pointer;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.lang__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(245,166,35,.55);
  background:#fff;
}

.lang__flag{
  width:22px;
  height:16px;
  display:block;
  border-radius:4px;
  box-shadow: 0 10px 18px rgba(2,6,23,.12);
}

.lang__code{
  font-size:.78rem;
  letter-spacing:.14em;
  font-weight:800;
  color:var(--muted);
}

.lang__chev{
  width:8px;height:8px;
  border-right:2px solid rgba(15,23,42,.55);
  border-bottom:2px solid rgba(15,23,42,.55);
  transform: rotate(45deg);
  margin-left:2px;
  transition: transform var(--t);
}

.lang.is-open .lang__chev{ transform: rotate(-135deg); }

.lang__menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width:190px;
  padding:8px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display:none;
  z-index:100;
}

.lang.is-open .lang__menu{display:block}

.lang__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  border:1px solid transparent;
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.lang__item:hover{
  background: rgba(245,166,35,.12);
  border-color: rgba(245,166,35,.30);
  transform: translateY(-1px);
}

.lang__item.is-active{
  background: rgba(245,166,35,.16);
  border-color: rgba(245,166,35,.45);
}

/* ===== Hero ===== */
.hero{
  min-height: 50vh;
  display:flex;
  align-items:center;
  padding: 28px 0 10px;
}

.hero__card{
  width:100%;
  max-width: 900px;
  padding: 28px 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fbfbfc);
  box-shadow: var(--shadow);
}

.hero__brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin: 0 0 14px;
}

.hero__logo{
  width:210px;
  height:210px;
  display:block;
  border-radius: 22px;
  background:#fff;
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(2,6,23,.12);
}

.hero__brandName{
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 1.55rem;
  line-height: 1.1;
}

.hero__brandTagline{
  margin-top: 6px;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* Text */
.kicker{
  margin:0 0 10px;
  font-size:.8rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
}

/* Buttons */
.cta{display:flex; flex-wrap:wrap; gap:10px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  text-decoration:none;
  font-size:.95rem;
  cursor:pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t), border-color var(--t), transform var(--t);
}

.btn--primary{
  background: linear-gradient(135deg, #f5a623, #ffd36b);
  color:#201305;
  box-shadow: 0 14px 34px rgba(245,166,35,.28);
}

.btn--primary:hover{ transform: translateY(-1px); }

.btn--ghost{
  border-color: var(--border);
  background: rgba(15,23,42,.03);
}

.btn--ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(245,166,35,.35);
}

/* Sections / cards */
.section{ padding: 34px 0; }

.section__head{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.section__head p{
  margin:0;
  color:var(--muted);
  max-width: 70ch;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.card{
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 18px 16px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
  border-color: rgba(245,166,35,.35);
}

.card__top{display:flex; align-items:center; justify-content:space-between; gap:10px}

.badge{
  font-size:.74rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: rgba(15,23,42,.03);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.muted{ color: var(--muted); }

.features{ margin:10px 0 0; padding-left:18px; }
.list{ margin:0 0 14px; padding-left:18px; color:var(--muted); }

.grid2{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.grid3{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }

.panel{
  padding:16px 14px;
  border-radius: var(--r-md);
  border:1px solid var(--border);
  background: var(--surface);
}

/* Soft sections (contacts) */
.section--soft{
  background: var(--surface-2);
  border-radius: 18px;
  padding: 34px 18px;
  border: 1px solid var(--border);
}

/* Footer */
.footer--light{
  padding: 22px 22px 34px;
  text-align:center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Force uppercase for brand */
.brand__text,
.hero__brandName,
.footer small {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:1fr; }
}

@media (max-width: 820px){
  .topbar{ flex-wrap:wrap; }
  .nav{ width:100%; order:3; justify-content:flex-start; }
}

@media (max-width: 520px){
  .page{ width:min(1100px, calc(100% - 28px)); }
  .topbar{ padding-inline:12px; }
  .brand__text{ font-size: 1.05rem; }
  .nav__link{ font-size: .98rem; }
  .hero__logo{ width:156px; height:156px; padding:12px; border-radius:20px; }
}

/* ===== Modal (Apple-like + fullscreen override) ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:200;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.6);
  backdrop-filter: blur(6px);
}

.modal__dialog{
  position:relative;
  width: calc(100% - 48px);
  height: calc(100vh - 48px);
  margin: 24px auto;
  border-radius: 24px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: none;
}

.modal__close{
  position:absolute;
  top:10px;
  right:12px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:26px;
  line-height:1;
  z-index: 10;
}

/* IMPORTANT: min-height:0 fixes flex/grid children cropping */
.modal__content{
  height: 100%;
  display:grid;
  grid-template-columns: 1.65fr 0.85fr;
  gap:0;
  min-height: 0;
}

/* left column: fixed height, children can shrink, nothing pushes thumbs out */
.modal__media{
  height: 100%;
  min-height: 0;
  padding:16px;
  border-right:1px solid var(--border);
  position: relative;
  align-self: stretch;

  display:flex;
  flex-direction: column;
  gap:12px;
  overflow: hidden;
}

/* image takes remaining space but cannot "grow" beyond container */
.modal__img{
  width:100%;
  height:auto;
  flex: 1 1 0;
  min-height: 0;          /* key */
  object-fit: cover;
  border-radius: 18px;
  border:1px solid var(--border);
  display:block;
  background:#fff;

  transition: opacity 220ms ease;
}
.modal__img.is-fading{ opacity: .15; }

.modal__nav{
  flex: 0 0 auto;
  display:flex;
  justify-content:space-between;
}

.modal__navBtn{
  width:46px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:22px;
}

/* thumbs always visible: fixed bar height */
.modal__thumbs{
  flex: 0 0 auto;
  margin-top:0;
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom: 6px;
  max-height: 86px;
}

.modal__thumb{
  width:88px;
  height:62px;
  border-radius: 14px;
  border:1px solid var(--border);
  object-fit: cover;
  cursor:pointer;
  opacity:.75;
  flex:0 0 auto;
}

.modal__thumb.is-active{
  opacity:1;
  border-color: rgba(245,166,35,.65);
  box-shadow: 0 10px 20px rgba(245,166,35,.18);
}

.modal__text{
  height: 100%;
  min-height: 0;          /* key */
  padding: 18px 18px;
  max-height: none;
  overflow:auto;
  scroll-behavior: smooth;

  transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}

/* badge in modal */
.modal__kicker{
  display:inline-flex;
  font-size:.74rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: rgba(15,23,42,.03);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:10px;
}

.btn--details{ margin-top: 10px; }

/* reveal sections inside modal */
.msec{
  padding: 10px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(.2,.8,.2,1), transform 520ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.msec.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.modal__text h4{ margin: 16px 0 8px; }

/* modal switching premium transition */
.modal__media{
  transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}
.modal.is-switching .modal__media,
.modal.is-switching .modal__text{
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
}

/* cottage switch arrows */
.modal__switch{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(2,6,23,.18);
  cursor:pointer;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9;
}
.modal__switch--left{ left: 10px; }
.modal__switch--right{ right: 10px; }

/* ===== Card reveal on page ===== */
.card{
  opacity:0;
  transform: translateY(10px);
  transition: opacity 420ms var(--t), transform 420ms var(--t), box-shadow var(--t), border-color var(--t);
}
.card.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* ===== Card slider ===== */
.card__slider{
  margin: 12px 0 8px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.card__img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: opacity 260ms ease;
}

.card__dots{
  position:absolute;
  left: 12px;
  bottom: 10px;
  display:flex;
  gap:6px;
  padding:6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
}

.card__dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background: rgba(15,23,42,.25);
}
.card__dot.is-active{ background: rgba(15,23,42,.85); }

/* Responsive modal + card slider */
@media (max-width: 920px){
  .card__img{ height: 200px; }

  .modal__dialog{
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 18px;
  }

  .modal__content{
    grid-template-columns: 1fr;
    height: auto;
  }

  .modal__media{
    border-right:none;
    border-bottom:1px solid var(--border);
    height:auto;
    overflow: visible;
  }

  .modal__img{
    height: 340px;
    flex: 0 0 auto;
    min-height: 0;
  }

  .modal__thumbs{
    max-height: none;
    overflow: auto;
  }

  .modal__text{
    height:auto;
  }

  .modal__switch{ display:none; }
}
