/* Flake Beach Resort — Lodgify-like clean theme */

:root{
  --bg: #ffffff;
  --ink: #111827;
  --muted: rgba(17,24,39,.70);
  --line: rgba(17,24,39,.12);

  --brand: #111827;          /* Lodgify-like dark */
  --accent: #0ea5e9;         /* subtle accent for buttons */

  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow2: 0 6px 18px rgba(0,0,0,.06);

  --okBg: #ecfdf5;
  --badBg: #fef2f2;
}

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

/* Page width like Lodgify */
.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

a{ color: inherit; }

/* Top header similar to flakefarmville.com */
/* Topbar scroll behavior */
.topbar.topbar-overlay{
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* When user scrolls: turn into solid bar */
.topbar.isSolid{
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.topbar.topbar-overlay.isSolid .brand .name,
.topbar.topbar-overlay.isSolid .brand .tag{
  color: rgba(17,24,39,.92);
}


.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}
.nav{
  display:flex;
  gap: 16px;
  align-items:center;
  flex-wrap:wrap;
  font-weight: 700;
  font-size: 14px;
}
.nav a{
  text-decoration:none;
  color: rgba(17,24,39,.85);
}
.nav a:hover{ text-decoration: underline; }

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.logo{
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .4px;
}
.brand .name{ font-weight: 900; font-size: 14px; }
.brand .tag{ font-size: 12px; color: var(--muted); margin-top:2px; }

/* Full-width hero with background image */
.hero{
  position: relative;
  width: 100%;
  min-height: 420px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
  background: #e5e7eb;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45)),
    url("/img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
}
.hero.isPlaceholder::before{
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45)),
    linear-gradient(135deg, #cbd5e1, #e5e7eb);
}

/* ✅ HERO BANNER + TOPBAR OVERLAY */
.hero.hero-banner{
  min-height: 520px;
}

/* Put the topbar on top of the hero banner */
.topbar.topbar-overlay{
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.50), rgba(0,0,0,.06));
  border-bottom: none;
  backdrop-filter: none; /* looks cleaner over photo */
}

/* Make brand text readable over hero */
.topbar.topbar-overlay .brand .name,
.topbar.topbar-overlay .brand .tag{
  color: rgba(255,255,255,.92);
}

/* Buttons over hero */
.topbar.topbar-overlay .btn{
  border-color: rgba(255,255,255,.20);
}
.topbar.topbar-overlay .btn.ghost{
  color: rgba(255,255,255,.92);
}

/* hero content container */
.hero-content{
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 28px 18px 22px;
  color: #fff;
}

/* Extra top padding so hero text sits below overlay topbar */
.hero.hero-banner .hero-content{
  padding-top: 120px;
  padding-bottom: 38px;
}


/* Smaller hero banner for inner pages */
.hero.hero-small{
  min-height: 280px;
}
.hero.hero-small .hero-content{
  padding-top: 110px;
  padding-bottom: 26px;
}

.hero h1{
  margin: 0 0 8px;
  font-size: 40px;
  letter-spacing: .2px;
  line-height: 1.05;
}
.hero p{
  margin: 0 0 18px;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  max-width: 720px;
}

/* Booking/search bar like Lodgify */
.searchbar{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  color: var(--ink);
}
.searchgrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr auto;
  gap: 10px;
  align-items:end;
}
@media (max-width: 980px){
  .hero{ min-height: 520px; }
  .searchgrid{ grid-template-columns: 1fr 1fr; }
  .hero.hero-banner .hero-content{ padding-top: 110px; }
}

label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(17,24,39,.85);
}
input, select, textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  outline:none;
}

/* ✅ Option 1: make sample/placeholder + disabled fields more greyed out */
input::placeholder,
textarea::placeholder{
  color: rgba(17,24,39,.35);
}

input:disabled,
textarea:disabled,
select:disabled{
  color: rgba(17,24,39,.45);
  background-color: #f6f7fb;
  cursor: not-allowed;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(14,165,233,.55);
  box-shadow: 0 0 0 4px rgba(14,165,233,.14);
}

.btn{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.btn.primary{
  background: var(--brand);
  border-color: var(--brand);
  color:#fff;
}
.btn.ghost{ background: transparent; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.section{
  padding: 26px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: 26px;
}
.muted{ color: var(--muted); }


.additional-service-option{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.additional-service-option input[type="checkbox"]{
  width:auto;
  margin:0;
}

/* Cards / rooms */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.room{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
  margin-bottom: 14px;
}
.room .img{
  min-height: 170px;
  background:
    linear-gradient(135deg, #dbeafe, #e5e7eb);
  position:relative;
}
.room .img img{ width:100%; height:100%; object-fit:cover; display:block; }
/* Subtle camera icon overlay for image placeholders */
.room .img::after{
  content:"📷";
  position:absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  color: rgba(17,24,39,.55);
  border: 1px solid rgba(17,24,39,.15);
  backdrop-filter: blur(4px);
}

.room .body{ padding: 14px; }
.room h3{ margin:0 0 6px; font-size: 18px; }

@media (max-width: 900px){
  .room{ grid-template-columns: 1fr; }
}

/* Calendar cells created by JS */
.calcell{ border: 1px solid var(--line); }

/* Pills */
.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  font-weight: 900;
  font-size: 12px;
}
.pill.ok{ background: var(--okBg); }
.pill.bad{ background: var(--badBg); }

.footer{
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align:center;
}

/* Cabin page hero: allow per-cabin hero image via CSS var */
#cabinHero::before{
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45)),
    var(--cabin-hero-url, url("/img/hero.jpg"));
  background-size: cover;
  background-position: center;
}


.room { transition: transform .12s ease, box-shadow .2s ease; }
a:hover .room { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }



/* Home page only: make Activities & Contact links white */
.hero .nav a.menu-special,
.hero .nav a.menu-special:hover {
  color: #ffffff !important;
}


/* Drag + drop reorder handles (admin) */
.drag-handle{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:1px solid #e5e8f2;background:#fafbff;color:rgba(0,0,0,.6);cursor:grab;user-select:none;}
.dragging{opacity:.55;}
