:root {
  /* Paletă verde + albastru, prietenoasă */
  --bg: #f2f7fb;            /* fundal ușor albăstrui */
  --card: #ffffff;
  --ink: #12212e;          /* albastru-gri închis */
  --muted: #5c6b78;
  --line: #e1e9f1;
  --blue: #1668dc;         /* albastru principal */
  --blue-dark: #0f4fa8;
  --green: #12a150;        /* verde accent / succes */
  --green-dark: #0c7d3d;
  --brand: var(--blue);
  --brand-ink: #ffffff;
  --ok: var(--green);
  --warn: #b9760e;
  --grad: linear-gradient(120deg, #12a150 0%, #1487b6 50%, #1668dc 100%);
  --grad-soft: linear-gradient(120deg, #e7f7ee 0%, #e6f1fb 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,45,75,.06), 0 10px 30px rgba(16,45,75,.07);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.muted { color: var(--muted); }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--blue); }
.langs { display: flex; gap: 4px; margin-left: 6px; }
.lang { font-size: 11px; padding: 2px 6px; border-radius: 6px; color: var(--muted); }
.lang.active { background: var(--grad); color: #fff; -webkit-text-fill-color: #fff; }

/* Buttons */
.btn, .btn-sm { display: inline-block; background: var(--grad); color: var(--brand-ink);
  padding: 11px 20px; border-radius: 12px; font-weight: 600; border: none; cursor: pointer;
  font-size: 15px; box-shadow: 0 4px 14px rgba(22,104,220,.22); transition: transform .06s, box-shadow .2s; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; box-shadow: none; }
.btn.ghost, .btn-sm.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: none; background-image: none; }
.btn.ok { background: linear-gradient(120deg, #12a150, #0c9c6a); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,104,220,.3); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); transform: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Cards & grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(16,45,75,.1), 0 18px 40px rgba(16,45,75,.1); }
.card .thumb { aspect-ratio: 4/3; background: var(--grad-soft) center/cover no-repeat; display: block; }
.card .body { padding: 14px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.price { font-weight: 700; color: var(--blue); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,104,220,.14); }
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
form.inline { display: inline; }

/* Hero / search */
.hero { text-align: center; padding: 48px 0 30px; }
.hero h1 { font-size: 36px; margin: 0 0 10px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--card); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto; border: 1px solid var(--line); }
.searchbar input { width: auto; flex: 1; min-width: 140px; }

/* Listing detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.gallery .main { grid-row: span 2; aspect-ratio: auto; }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.bookbox { position: sticky; top: 80px; }
.poi-list, .faq-list { list-style: none; padding: 0; margin: 0; }
.poi-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: var(--grad-soft); color: var(--blue-dark); margin-right: 6px; font-weight: 600; }
.pill { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.pill.ok { background:#e4f6ec; color:var(--green-dark); }
.pill.warn { background:#fdf0dd; color:var(--warn); }
.pill.pend { background:#e6f1fb; color:var(--blue-dark); }

/* Share */
.share { position: relative; display: inline-block; }
.share-menu { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 210px; z-index: 20; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; border: none; background: none; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: var(--grad-soft); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat { display: inline-block; margin-right: 28px; margin-bottom: 6px; }
.stat b { display: block; font-size: 24px; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); }
.notice { background: var(--grad-soft); border: 1px solid #cfe3f5; padding: 11px 14px; border-radius: 12px;
  font-size: 14px; color: #145; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 20px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
h1 { font-size: 27px; letter-spacing: -.01em; }

/* Secțiuni formular (owner listing) */
.form-section { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 14px 0; background: #fff; }
.form-section > h3 { margin: 0 0 2px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.form-section > .sec-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.form-section > .row, .form-section > .row-3 { margin-top: 4px; }

/* Upload foto — listă fișiere acumulate (mai multe rânduri) */
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--grad-soft);
  border: 1px solid #cfe3f5; color: var(--blue-dark); border-radius: 20px; padding: 4px 6px 4px 11px;
  font-size: 12.5px; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip button { border: none; background: #fff; color: #c0392b; width: 20px; height: 20px;
  border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; flex: none; }
.file-chip button:hover { background: #fdecea; }

/* Clasificare premium + parcare + grupuri POI */
.premium-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.classif-premium { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 12px;
  font-weight: 700; color: #7a5b12; background: linear-gradient(135deg, #fff8e6, #ffefc2);
  border: 1.5px solid #e6c463; box-shadow: 0 2px 10px rgba(211,160,40,.18); }
.stars-gold { color: #f0b400; letter-spacing: 1px; font-size: 16px;
  text-shadow: 0 1px 1px rgba(160,110,0,.35); }
.parking-highlight { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 12px;
  font-weight: 700; color: #145a32; background: linear-gradient(135deg, #e8f8ef, #d2f0dd);
  border: 1.5px solid #86d3a5; }
.wifi-highlight { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 12px;
  font-weight: 700; color: #1c4f80; background: linear-gradient(135deg, #eaf3fc, #d7e9fb); border: 1.5px solid #9cc6ee; }
.wifi-highlight.fast { color: #5a3a00; background: linear-gradient(135deg, #fff4e0, #ffe6bd); border-color: #f0c073; }
.wifi-bolt { color: #f0a000; }

/* Calendar rezervări */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-cell { min-height: 84px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff;
  display: flex; flex-direction: column; gap: 2px; }
.cal-cell.out { background: #f6f8fb; }
.cal-cell.out .cal-daynum { color: #b8c2cf; }
.cal-cell.today { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.cal-daynum { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.cal-ev { font-size: 10.5px; font-weight: 700; padding: 2px 5px; border-radius: 5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.cal-more { font-size: 10px; color: var(--muted); text-align: center; }
.ev-confirmed { background: #2a9d5c; }
.ev-pending   { background: #e0a52a; }
.ev-airbnb    { background: #e0506a; }
.ev-booking   { background: #2f6fb0; }
.ev-ical      { background: #8a94a3; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cal-legend .cal-ev { padding: 3px 9px; }
@media (max-width: 640px) { .cal-cell { min-height: 60px; } .cal-ev { font-size: 9px; } }
.poi-group { margin-bottom: 14px; }
.poi-group-title { font-size: 15px; margin: 0 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.poi-utilitare .poi-group-title { border-color: #cfe3f5; }
.poi-divertisment .poi-group-title { border-color: #f5d9c0; }
.poi-major .poi-group-title { border-color: #e6c463; }
.poi-group .poi-list li { padding: 7px 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; }
  .row, .row-3, .row-4 { grid-template-columns: 1fr; } .hero h1 { font-size: 28px; } }

/* Calendar de disponibilitate (guest) */
#availCal { font-size: 13px; }
.acal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.acal-nav { cursor:pointer; padding:1px 9px; border:1px solid var(--line); border-radius:6px; user-select:none; font-size:15px; line-height:1.4; }
.acal-nav.off { opacity:.3; cursor:default; }
.acal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.acal-dow { text-align:center; color:#8aa; font-size:10px; padding:2px 0; }
.acal-day { text-align:center; padding:6px 0; border-radius:6px; border:1px solid transparent; }
.acal-day.out { visibility:hidden; }
.acal-day.past { color:#c7d0d8; }
.acal-day.booked { background:#f7d9d9; color:#b03a3a; text-decoration:line-through; }
.acal-day.avail { cursor:pointer; background:#eaf5ee; color:#1c6b3f; }
.acal-day.avail:hover { background:#d5ecdd; }
.acal-day.sel { background:var(--blue); color:#fff; }
.acal-day.range { background:#cfe2fb; color:var(--ink); }
.acal-legend { display:flex; gap:14px; margin-top:6px; font-size:11px; color:#789; }
.acal-dot { display:inline-block; width:10px; height:10px; border-radius:3px; vertical-align:middle; margin-right:4px; }
.acal-dot.av { background:#eaf5ee; border:1px solid #bcd9c6; }
.acal-dot.bk { background:#f7d9d9; }

/* Meniu persistent pentru gazdă (pe toate paginile) */
.owner-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.owner-nav a { padding:7px 13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-weight:600; font-size:14px; white-space:nowrap; }
.owner-nav a:hover { border-color:var(--blue); color:var(--blue); }
.owner-nav a.on { background:var(--blue); color:#fff; border-color:var(--blue); }

/* Butoane „alege fișier" prietenoase + captură selfie live */
.filebtn { display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  padding:11px 16px; border:1.5px dashed var(--blue); border-radius:12px;
  background:#f5f9ff; color:var(--blue-dark); font-weight:600; font-size:14px; }
.filebtn:hover { background:#e9f1ff; }
.filebtn input { display:none; }
.fileinfo { display:block; font-size:12px; color:#567; margin-top:5px; }
.fileinfo.ok { color:#1f6b40; }
.selfie-cam { border:1px solid var(--line); border-radius:14px; padding:12px; background:#fafcff; text-align:center; }
.selfie-cam video, .selfie-cam img { width:100%; max-width:280px; aspect-ratio:1/1; object-fit:cover;
  border-radius:12px; background:#0b1b2b; transform:scaleX(-1); }
.selfie-cam img { transform:none; }
.selfie-cam .row { display:flex; gap:8px; justify-content:center; margin-top:10px; flex-wrap:wrap; }
.selfie-shoot { padding:11px 20px; border:none; border-radius:12px; background:var(--blue); color:#fff;
  font-weight:700; font-size:15px; cursor:pointer; }
.selfie-shoot:hover { background:var(--blue-dark); }
.selfie-retake { padding:11px 16px; border:1px solid var(--line); border-radius:12px; background:#fff;
  color:var(--ink); font-weight:600; cursor:pointer; }
.selfie-hint { font-size:12px; color:#789; margin-top:8px; }

/* Zonă mare de drag & drop pentru încărcarea fișierelor (poze/video) */
.dropzone { border: 2.5px dashed #9fc0ea; border-radius: 14px; background: #f5f9ff;
  padding: 26px 16px; text-align: center; cursor: pointer; margin-top: 4px;
  transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: #1668dc; background: #eef6ff; }
.dropzone.drag { border-color: #12a150; background: #eafaf0; }
