:root{
  --jade:#7D9A8A;
  --jade2:#9AB7A7;
  --ink:#111214;
  --muted:#6B7280;
  --bg:#F7F5F2;
  --card:#FFFFFF;
  --gold:#CBBEAE;
  --shadow: 0 10px 30px rgba(17,18,20,.10);
  --radius: 22px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display","SF Pro Text", Arial;
  background: var(--bg);
  color: var(--ink);
}

a{color:inherit}
.safe{padding: 14px 14px 92px; max-width: 980px; margin:0 auto;}

.topbar{
  position: sticky; top:0; z-index:20;
  backdrop-filter: blur(16px);
  background: rgba(247,245,242,.75);
  border-bottom: 1px solid rgba(17,18,20,.06);
}
.topbar .inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px;
  max-width: 980px; margin:0 auto;
}
.brand{display:flex; gap:10px; align-items:center}
.brand img{width:44px; height:44px; border-radius: 14px; object-fit:cover; box-shadow: 0 6px 16px rgba(0,0,0,.12);}
.brand .t strong{display:block; font-size:14px; letter-spacing:.2px}
.brand .t span{display:block; font-size:12px; color:var(--muted)}

.langBtn{
  border:1px solid rgba(17,18,20,.10);
  background: rgba(255,255,255,.7);
  padding: 10px 12px;
  border-radius: 999px;
  display:flex; gap:10px; align-items:center;
  box-shadow: 0 10px 24px rgba(17,18,20,.08);
  cursor:pointer;
}
.langBtn .badge{
  width:34px; height:24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--jade2), var(--jade));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:12px;
}

.hero{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}
.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.hero .overlay{
  position:absolute; inset:0;
  background: radial-gradient(1200px 360px at 50% 80%, rgba(17,18,20,.05), rgba(17,18,20,.65));
}
.hero .content{
  position:relative;
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height: 340px;
  gap: 12px;
  color:#fff;
}
.hTitle h1{margin:0; font-size: 28px; line-height:1.1; letter-spacing:.2px}
.hTitle .sub{color: rgba(255,255,255,.82); font-size: 14px}

.ctaRow{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:0; border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  cursor:pointer;
  display:flex; align-items:center; gap:10px;
}
.btn.primary{background: linear-gradient(180deg, var(--jade2), var(--jade)); color:#fff; box-shadow: 0 14px 28px rgba(125,154,138,.35);}
.btn.ghost{background: rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.22);}
.btn:active{transform: translateY(1px);}

.section{margin-top: 14px;}
.grid2{display:grid; grid-template-columns: 1fr; gap: 14px;}
@media(min-width:860px){.grid2{grid-template-columns: 1fr 1fr;}}

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h2{margin:0 0 10px; font-size: 16px}
.muted{color:var(--muted); font-size: 13px}

.gallery{
  display:flex; gap:10px;
  overflow:auto;
  padding-bottom: 6px;
  scroll-snap-type:x mandatory;
}
.gItem{
  width: 160px; height: 120px;
  border-radius: 18px;
  overflow:hidden;
  flex: 0 0 auto;
  scroll-snap-align: start;
  position:relative;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}
.gItem img{width:100%; height:100%; object-fit:cover;}
.gItem:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}

.smallBtn{
  border:1px solid rgba(17,18,20,.10);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  display:flex; gap:10px; align-items:center;
  font-weight: 700;
}

.kpis{display:grid; grid-template-columns: repeat(2, 1fr); gap:10px;}
.kpi{
  border:1px solid rgba(17,18,20,.08);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(247,245,242,.35), rgba(255,255,255,1));
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.kpi .v{font-weight:800}
.kpi .l{font-size:12px; color:var(--muted); margin-top:4px}

.formRow{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
input[type="date"]{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(17,18,20,.12);
  font-family: inherit;
  font-size: 14px;
}
.hint{font-size:12px; color:var(--muted); margin-top:8px  text-align:center; }

.badgeWarn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(239,68,68,.10);
  color: #B91C1C;
  border:1px solid rgba(239,68,68,.25);
  font-weight: 800;
  font-size: 12px;
}

.calendar{
  margin-top: 12px;
  border:1px solid rgba(17,18,20,.10);
  border-radius: 18px;
  overflow:hidden;
}
.calHead{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px;
  background: rgba(247,245,242,.6);
}
.calNav{
  display:flex; gap:8px;
}
.iconBtn{
  width:38px; height:38px;
  border-radius: 12px;
  border:1px solid rgba(17,18,20,.10);
  background:#fff;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.calGrid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:0;
  background:#fff;
}
.calDow, .calCell{
  padding: 10px 8px;
  border-top:1px solid rgba(17,18,20,.06);
  border-left:1px solid rgba(17,18,20,.06);
  min-height: 44px;
  text-align:center;
  font-size: 13px;
}
.calDow{background: rgba(247,245,242,.45); font-weight:800; color:var(--muted); border-top:0;}
.calCell.mutedCell{color:#B7BDC8; background: rgba(247,245,242,.20);}
.calCell.blocked{background: rgba(239,68,68,.10); color:#B91C1C; font-weight:900;}
.calCell.today{outline: 2px solid rgba(125,154,138,.35); outline-offset:-2px;}
.calCell.selectable{cursor:pointer;}
.calCell.selected{background: rgba(125,154,138,.18); font-weight:900;}
.calLegend{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:12px; color:var(--muted)}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block; margin-inline-start:6px}
.dot.free{background: rgba(125,154,138,.55)}
.dot.blocked{background: rgba(239,68,68,.55)}

.reviews{display:flex; flex-direction:column; gap:10px}
.review{
  border:1px solid rgba(17,18,20,.08);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}
.review .stars{color: #C8A44B; font-weight:900}
.review .txt{margin-top:6px; font-size: 13px; color: #1F2937}
.review .meta{margin-top:8px; font-size: 12px; color: var(--muted)}

.mapBox iframe{
  width:100%;
  height: 260px;
  border:0;
  border-radius: 18px;
}

.bottomNav{
  position: fixed; left:0; right:0; bottom:0; z-index:30;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,245,242,.78);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(17,18,20,.06);
}
.bottomNav .inner{max-width:980px; margin:0 auto; display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px;}
.btn.whatsapp{background:#25D366; color:#fff}
.btn.call{background:#1E40AF; color:#fff}
.btn.mail{background:#111827; color:#fff}
.btn svg{width:18px; height:18px; fill: currentColor;}

.modal{
  position:fixed; inset:0; z-index:50;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
}
.modal.show{display:flex;}
.sheet{
  width: min(920px, 100%);
  background:#fff;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.sheet .head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom:1px solid rgba(17,18,20,.08);
}
.sheet .body{padding: 14px 16px;}
.sheet img{width:100%; height: 55vh; object-fit:contain; border-radius: 18px; background:#0b0c0f;}
.close{
  border:1px solid rgba(17,18,20,.10);
  background:#fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 800;
}

.splash{
  position:fixed; inset:0; z-index:60;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(600px 600px at 50% 40%, rgba(125,154,138,.18), rgba(247,245,242,1));
}
.splash.hide{display:none;}
.splash .wrap{text-align:center; transform: translateY(-8px);}
.splash .house{
  width: 110px; height: 110px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,245,242,1));
  box-shadow: 0 24px 50px rgba(17,18,20,.18);
  margin:0 auto 12px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  overflow:hidden;
}
.splash .house:before{
  content:"";
  position:absolute;
  width: 140px; height: 140px;
  border-radius: 40px;
  background: conic-gradient(from 180deg, rgba(125,154,138,.0), rgba(125,154,138,.25), rgba(203,190,174,.18), rgba(125,154,138,.0));
  filter: blur(1px);
  animation: spin 1.2s linear infinite;
}
.splash .logo{
  width: 78px; height: 78px;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  position:relative;
  background:#fff;
}
.splash .logo img{width:100%; height:100%; object-fit:cover;}
.splash .txt{font-weight:900; letter-spacing:.3px}
@keyframes spin{to{transform: rotate(360deg)}}

.toast{
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: rgba(17,18,20,.92);
  color:#fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.toast.show{opacity:1;}


/* -------- FIXED GALLERY -------- */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap:10px;
  overflow:visible;
}

.gItem{
  width:100%;
  height:120px;
}

/* -------- FIX ABOUT TEXT -------- */
#aboutText{
  line-height:1.6;
  word-break:break-word;
}

/* -------- FIX CONTACT BOTTOM -------- */
.bottomNav .inner{
  grid-template-columns: repeat(3, 1fr);
}

.btn{
  justify-content:center;
  white-space:nowrap;
  font-size:14px;
}

/* -------- WEATHER CARD IMPROVED -------- */
#weatherBox{
  font-size:14px;
  line-height:1.6;
}

/* -------- CALENDAR IMPROVED -------- */
.calendar{
  margin-top:8px;
}

.calCell{
  min-height:38px;
  font-size:12px;
}



/* -------- HOLIDAY MARKERS -------- */
.calCell.holiday{
  position: relative;
}
.calCell.holiday::after{
  content:"";
  position:absolute;
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(203,190,174,.95);
  top:6px;
  left:6px;
  box-shadow: 0 6px 14px rgba(203,190,174,.35);
}

/* Contact cards keep one line */
#contactPhone, #contactEmail{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}



/* ---- FIX HOLIDAY NOTE INSIDE CARD ---- */
#holidayNote{
  margin-top:12px;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(203,190,174,0.12);
  border: 1px solid rgba(203,190,174,0.35);
  font-size:14px;
  line-height:1.6;
  max-width:100%;
  box-sizing:border-box;
  word-break:break-word;
}

/* ---- CLEANER CALENDAR LOOK ---- */
.calendar{
  border-radius:16px;
  overflow:hidden;
}

.calCell{
  min-height:42px;
  font-size:13px;
}

.calCell.selected{
  background: rgba(79,124,172,0.15);
  border-radius:8px;
}

.calCell.blocked{
  background: rgba(220,80,80,0.12);
}

/* ---- CONTACT FIX ---- */
#contactPhone,
#contactEmail{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---- GALLERY GRID FIX ---- */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
}

.gItem{
  height:140px;
}




/* ============================
   V8 Luxury Design Upgrade
   (Design only — no feature removal)
   ============================ */

:root{
  --bg1:#F8F6F2;
  --bg2:#FFFFFF;
  --text:#2E2E2E;
  --text2:#3F3F3F;
  --gold:#CBBEAE;
  --wa:#25D366;
}

body{
  background: linear-gradient(180deg,var(--bg1),var(--bg2));
  color: var(--text);
}

/* HERO: center text + 1-row buttons */
.hero .content{
  width:min(820px, calc(100% - 28px));
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.hero .hTitle{
  width:100%;
  display:flex;
  justify-content:center;
  text-align:center;
}

.hero .hTitle h1{
  text-align:center;
  margin:0 auto;
}

.hero .ctaRow{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:nowrap;
  margin-top:14px;
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.hero .ctaRow::-webkit-scrollbar{display:none;}

.hero .ctaRow .btn{
  padding:8px 12px;
  font-size:13px;
  white-space:nowrap;
}

/* Gallery hint text already OK; make it elegant */
#galleryHint{
  font-size:13px;
}

/* About card */
#aboutCard .aboutText{
  color: var(--text2);
  line-height:1.85;
}
#aboutCard .aboutText b,
#aboutCard .aboutText strong{
  font-weight:400 !important;
}

/* Amenities: smaller, calmer */
#amenList .kpi{
  padding:10px 10px;
}
#amenList .kpi .v{
  font-size:14px;
  font-weight:600;
}
#amenList .kpi .l{
  font-size:12px;
}

/* Availability date inputs: narrower */
#availabilityCard .formRow{
  gap:12px;
  justify-content:center;
}
#availabilityCard input[type="date"]{
  width: 180px;
  max-width: 180px;
  padding:10px 10px;
}

/* Weather box spacing */
#weatherBox{
  margin-top:10px;
}

/* Center availability title */
#availabilityCard h2{
  text-align: center;
}

/* Contact: name bigger, values smaller */
#contactLine{
  font-size:16px;
}
#contactPhone, #contactEmail{
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Gallery: masonry, no gaps inside frame */
.gallery{
  column-count:2;
  column-gap:10px;
}
@media (min-width: 720px){
  .gallery{ column-count:3; }
}
.gItem{
  display:inline-block;
  width:100%;
  margin:0 0 10px;
  padding:0;
  border-radius:16px;
  overflow:hidden;
  background:transparent;
}
.gItem img{
  width:100%;
  height:auto;
  display:block;
  border-radius:0;
}

/* Cards slightly tighter width on mobile so they don't feel too wide */
.section .card{
  max-width: 920px;
  margin-left:auto;
  margin-right:auto;
}
@media (max-width: 520px){
  .section .card{ width: calc(100% - 24px); }
}



/* =========================
   V14 CSS-only fixes
   ========================= */

/* 1) Hero CTA: no horizontal scroll, text fits */
.ctaRow{
  flex-wrap: nowrap !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.ctaRow .btn{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 10px 10px !important;
  font-size: 13px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
/* prevent any accidental scrolling containers in hero */
.hero, .hero .content{ overflow-x: hidden !important; }

/* 2) Gallery preview center crop */
.gItem img{
  object-position: center 70%;
}

/* 3) Checkin / Checkout inputs reduce width by ~25% */
#availabilityCard .formRow{justify-content:center !important;}
#startDate, #endDate{
  width: 75% !important;
  max-width: 260px !important;
  margin: 0 auto !important;
  display:block !important;
}

/* 4) Contact info cards and bottom action buttons narrower */
#contactPhone, #contactEmail{
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* kpi cards in contact section */
.section .card .kpis{max-width: 420px !important; margin-left:auto !important; margin-right:auto !important;}
.section .card .kpi{padding: 12px 10px !important;}

/* bottom nav buttons: constrain width */
.bottomNav .inner{
  max-width: 420px !important;
  grid-template-columns: repeat(3, 112px) !important;
  justify-content: center !important;
}
@media (max-width: 360px){
  .bottomNav .inner{grid-template-columns: repeat(3, 104px) !important;}
}
.btn{ /* ensure buttons don't blow out */
  max-width: 100% !important;
}
/* make bottom buttons a bit shorter */
.bottomNav .inner .btn{padding: 10px 10px !important; font-size: 13px !important; justify-content:center !important;}

/* 5) Remove swipe hint text */
#galleryHint{display:none !important;}

/* 6) Remove email next to Assaf if reintroduced */
#contactLine a[href^="mailto:"]{display:none !important;}

/* Bonus: hide min-stay label under dates (user requested to remove) */
#minStay{display:none !important;}



/* =========================
   V15 Hero vertical layout
   ========================= */

/* Move hero content higher */
.hero .content{
  justify-content: flex-start !important;
  padding-top: 40px !important;
  text-align: center !important;
}

/* Stack hero buttons vertically */
.ctaRow{
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

/* Make hero buttons elegant capsules */
.ctaRow .btn{
  width: 70% !important;
  max-width: 320px !important;
  border-radius: 22px !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
}

/* Stronger text contrast */
.ctaRow .btn,
.ctaRow .btn span{
  color: #fff !important;
  font-weight: 600 !important;
}

/* Slight dark overlay for readability */
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.25));
  z-index:0;
}
.hero .content{position:relative; z-index:1;}



/* =========================
   V16 Contact refinement
   ========================= */

/* Contact section cards narrower & centered */
.section .card .kpis{
  max-width: 380px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  gap:12px !important;
}

.section .card .kpi{
  padding:14px 12px !important;
  border-radius:18px !important;
}

#contactPhone, #contactEmail{
  font-size:14px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Bottom fixed buttons more compact */
.bottomNav .inner{
  max-width:360px !important;
  grid-template-columns: repeat(3, 100px) !important;
  gap:8px !important;
}

.bottomNav .inner .btn{
  padding:9px 8px !important;
  font-size:13px !important;
  border-radius:18px !important;
}

.btn.whatsapp{
  background:#2CC96B !important;
}



/* =========================
   V20 Precise Requested Changes
   ========================= */

/* Clean contact buttons layout */
.contactButtonsClean{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:18px;
}

.contactBtnClean{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:80%;
  max-width:320px;
  padding:14px 18px;
  border-radius:22px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
}

.phoneBtnClean{ background:#1E40AF; }
.mailBtnClean{ background:#111827; }

/* Center ONLY the check-in/out hours text */
#availabilityCard .muted:last-of-type{
  text-align:center !important;
}

/* Center ONLY the inner content of amenities capsules */
#amenList div{
  text-align:center !important;
  justify-content:center !important;
}
#amenList{
  text-align:center !important;
}



/* ===== V22 targeted fixes (per request) ===== */

/* 7) Gallery preview: show center+slightly lower */
.gItem img{
  object-fit: cover !important;
  object-position:50% 70% !important;
}

/* 3) Center check-in/out hours text */
#checkinoutHint{
  text-align: center !important;
}

/* 5) Amenities: center inner content only (keep card design) */
#amenList{
  text-align:center !important;
}
#amenList .kpi{
  text-align:center !important;
  justify-items:center !important;
}
#amenList .kpi .v, #amenList .kpi .l{
  text-align: center;
direction: rtl;
}

/* 8) Modal arrows navigation */
.modal .modalImgWrap{
  position: relative;
}
.modalNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.modalPrev{ left:10px; }
.modalNext{ right:10px; }
.modalNav:active{ transform: translateY(-50%) scale(.98); }


/* Royal Villa: Hebrew only */
#langBtn{display:none !important;}

.kpi .v{ text-align:center; direction:rtl; }

#availabilityCard h2{ text-align:center; }
