
:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --accent:#fd4500; /* orange logo */
  --accent-soft: rgba(253,69,0,0.12);
  --ok:#16a34a;
  --danger:#dc2626;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }
.container{ max-width: 1280px; margin: 0 auto; padding: 22px; }

.header{
  position: sticky;
  top:0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: 1280px;
  margin:0 auto;
  padding: 14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.logo{
  display:flex;
  align-items:center;
  color: var(--text);
  white-space: nowrap;
}
.logo-img{
  height: 41px;
  width: auto;
  display:block;
}
.logo-muted{ color: var(--muted); font-weight:700; margin-left:2px; }

.header-right{ display:flex; align-items:center; gap:12px; }
.link{ color: var(--text); font-weight: 600; font-size: 14px; }
.link:hover{ text-decoration: underline; }
.admin-link{ position: relative; padding-right: 10px; }
.admin-badge{
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.searchbar{
  flex: 1 1 760px;
  max-width: 980px;
  min-width: 640px;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sb-item{ display:flex; flex-direction:column; gap:4px; min-width: 0; flex: 1 1 0; }
.sb-dates{ min-width: 240px; flex: 1.2 1 0; }
.sb-label{ font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.sb-input{
  border:0;
  outline:none;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  padding: 2px 0;
  min-width: 0;
}
.sb-divider{ width:1px; height: 32px; background: var(--border); }
.sb-date-row{ display:flex; align-items:center; gap:8px; }
.sb-date-row .sb-input[type="date"]{ min-width: 120px; }
.sb-date-sep{ color: var(--muted); font-size: 12px; }

.sb-btn{
  border:0;
  background: var(--accent);
  color:#fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor:pointer;
  white-space: nowrap;
  margin-left: auto;
}
.sb-btn:hover{ filter: brightness(0.95); }
.sb-check{
  display:flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.sb-check input{ accent-color: var(--accent); }
.sb-check input[type="checkbox"]{ width:auto; padding:0; }

.grid{ display:grid; gap:16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h2, .card h3{ margin: 0 0 8px; }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,56,92,0.22);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.badge-discount{
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.35);
  color: #0f766e;
}
.badge-discount.big{
  font-size: 16px;
  padding: 6px 12px;
}
.badge-ok{
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.35);
  color: #0f766e;
}
.badge-danger{
  background: rgba(220,38,38,0.10);
  border: 1px solid rgba(220,38,38,0.35);
  color: #b91c1c;
}
.price-current{ font-size: 2rem; font-weight: 800; }
.price-old{ font-size: 1rem; color: #9CA3AF; }
.price-block{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.price-block .price-current,
.price-block .price-old{
  white-space: nowrap;
}
.nowrap{ white-space: nowrap; }
.copy-card{
  position: relative;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.copy-text{
  width: 100%;
  min-height: 140px;
  border: 0;
  background: transparent;
  resize: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.copy-text:focus{ outline: none; }
.copy-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover{ background:#f3f4f6; }
.copy-text{ padding-right: 90px; }
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor:pointer;
  color: var(--text);
}
.btn:hover{ background:#f9fafb; text-decoration:none; }
.btn.ok{ border-color: rgba(22,163,74,0.35); background: rgba(22,163,74,0.10); }
.btn.danger{ border-color: rgba(220,38,38,0.35); background: rgba(220,38,38,0.10); }

.field{ display:flex; flex-direction:column; gap:6px; margin-top: 10px; }
 .pending-field{
  border: 1px dashed rgba(255,56,92,0.45);
  background: rgba(255,56,92,0.04);
  padding: 10px;
  border-radius: 12px;
}
label{ font-size: 13px; color: var(--muted); font-weight: 650; }
input, textarea, select{
  width:100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
}
textarea{ min-height: 110px; resize: vertical; }

.form-layout{ display:grid; grid-template-columns: minmax(0, 1fr) 280px; gap:20px; align-items:start; }
.form-main{ min-width: 0; }
.form-section{
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.section-head h3{ margin: 0 0 6px; }
.section-head p{ margin: 0 0 8px; }
.form-aside{ position: sticky; top: 90px; }
.form-aside-card{ padding: 14px; }
.form-nav{ display:flex; flex-direction:column; gap:6px; margin:8px 0 12px; }
.form-nav a{
  font-size: 13px;
  color: var(--text);
  border-left: 2px solid transparent;
  padding-left: 8px;
}
.form-nav a:hover{ text-decoration:none; border-left-color: var(--accent); }
.form-actions{ display:flex; flex-direction:column; gap:8px; margin: 10px 0; }

@media (max-width: 980px){
  .form-layout{ grid-template-columns: 1fr; }
  .form-aside{ position: static; }
}

table{ width:100%; border-collapse: collapse; }
th, td{ border-bottom: 1px solid var(--border); padding: 10px 8px; text-align:left; vertical-align: top; }
thead th{ color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.flash{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.flash.success{ border-color: rgba(22,163,74,0.25); background: rgba(22,163,74,0.08); }
.flash.error{ border-color: rgba(220,38,38,0.25); background: rgba(220,38,38,0.08); }
.flash.info{ border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.08); }

hr{ border:0; border-top: 1px solid var(--border); margin: 16px 0; }

@media (max-width: 860px){
  .searchbar{ display:none; } /* simplification mobile V1 */
  .header-inner{ justify-content:space-between; }
}


/* Searchbar activation (Airbnb-like) */
.sb-item{ position: relative; padding: 2px 10px; border-radius: 999px; }
.sb-item.sb-inactive{ opacity: .65; cursor: pointer; }
.sb-item.sb-inactive .sb-input{ pointer-events: none; }
.sb-item.sb-inactive input{ pointer-events: none; }
.sb-item.sb-active{ background: var(--accent-soft); }
.sb-item.sb-active .sb-label{ color: var(--text); }
.sb-item.sb-active{ cursor: default; }
.sb-item .sb-x{
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.sb-item .sb-x:hover{ background: rgba(0,0,0,0.06); color: var(--text); }


.req{ color: var(--accent); font-weight: 900; margin-left: 4px; }
.field .error{ color: var(--danger); font-size: 12px; margin-top: 6px; }
.form-errors{
  border: 1px solid rgba(220,38,38,0.25);
  background: rgba(220,38,38,0.06);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
}

.offer-card{ overflow:hidden; padding:0; }
.offer-link{ display:block; color: inherit; text-decoration: none; }
.offer-link:hover{ text-decoration: none; box-shadow: var(--shadow); }
.offer-body{ padding: 14px 16px 16px; }
.offer-title{ font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.offer-meta{ display:flex; flex-direction:column; gap:4px; }
.price-main{
  margin-top: 10px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  color: #0f766e;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.price-main-value{ white-space: nowrap; }
.price-main-suffix{ white-space: nowrap; }
.price-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-note{ font-size: 12px; color: var(--muted); margin-top: 6px; }
.offer-cta{ margin-top: 10px; display:inline-block; }

/* Offer detail layout */
.offer-layout{ display:grid; grid-template-columns: 70% 30%; gap:20px; align-items:start; }
.offer-sidebar{ position: sticky; top: 86px; }
.reserve-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
}
.reserve-title{ font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.reserve-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.reserve-total{ font-size: 18px; font-weight: 800; }
.anchor-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.anchor-tabs a{
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font-size: 13px;
}
.section-card{ margin-top:12px; }

@media (max-width: 980px){
  .offer-layout{ grid-template-columns: 1fr; }
  .offer-sidebar{ position: static; }
}
.offer-cover{
  width:100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display:block;
  background: #f3f4f6;
}
.offer-body{ padding: 16px; }
.gallery{ display:grid; grid-template-columns: 2fr 1fr; gap:10px; }
.gallery-main img{ width:100%; height:100%; object-fit:cover; border-radius: 14px; }
.gallery-side{ display:grid; gap:10px; }
.gallery-side img{ width:100%; height:100%; object-fit:cover; border-radius: 14px; }
.gallery-img{ cursor: pointer; }
.gallery-more{
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.45);
  color:#fff;
  font-weight:700;
  border-radius:14px;
  height:100%;
}
.gallery-modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.82);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1000;
}
.gallery-full{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
}
.gallery-prev, .gallery-next, .gallery-close{
  position:fixed;
  background:#fff;
  border:0;
  border-radius:999px;
  width:44px;
  height:44px;
  font-size:24px;
  cursor:pointer;
  opacity:0.9;
}
.gallery-close{ top:20px; right:20px; font-size:28px; }
.gallery-prev{ left:20px; }
.gallery-next{ right:20px; }
.thumb-row{ display:flex; gap:10px; flex-wrap: wrap; }
.thumb{ width:120px; height:90px; object-fit:cover; border-radius: 12px; border:1px solid var(--border); }
.thumb-item{ position: relative; display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.thumb-delete{
  position:absolute;
  top:6px;
  right:6px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:#111827;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: var(--shadow);
}
.thumb-delete:hover{ background:#f3f4f6; }
