/* ===== StayEasy — стили ===== */
:root {
  --primary: #c65335;
  --primary-dark: #9f3d27;
  --accent: #e5a33b;
  --dark: #30291f;
  --gray: #71685c;
  --light: #fff5e8;
  --border: #ead9c4;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hidden { display: none !important; }

/* Header */
.header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; color: var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }
.logo_Img{height: 45px;}
.nav { display: flex; gap: 8px; }
.nav-btn {
  border: none; background: none; font-size: 15px; padding: 10px 14px;
  border-radius: 10px; cursor: pointer; color: var(--dark); font-weight: 600;
}
.nav-btn:hover { background: var(--light); }
.nav-btn.active { background: var(--primary); color: #fff; }
a.nav-btn { text-decoration: none; display: inline-block; line-height: 1.2; }

/* Hero */
.hero { text-align: center; padding: 40px 0 24px; }
.hero-logo { display: block;  height: 300px; object-fit: contain; margin: 0 auto 12px; }
.hero h1 { font-size: 34px; margin-bottom: 8px; }
.hero p { color: var(--gray); font-size: 17px; }

/* Search bar */
.search-bar {
  display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin: 16px 0 28px; align-items: end;
}
.search-bar label span { display: block; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 4px; text-transform: uppercase; }
.search-field > span { display: block; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 4px; text-transform: uppercase; }
.search-bar input, .search-bar select, .booking-form input, .booking-form textarea, .lookup-bar input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
}
.search-bar select {
  min-width: 0; min-height: 42px; padding-right: 36px; appearance: none;
  color: var(--dark); background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23c65335' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
.search-bar select:hover { border-color: #d9b895; }
.search-bar select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-bar select option { color: var(--dark); background: #fff; }
.search-bar .native-select-hidden { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.custom-select { position: relative; min-width: 0; }
.custom-select-trigger { display: block; width: 100%; min-height: 42px; padding: 10px 36px 10px 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--dark); font: inherit; font-size: 15px; line-height: 20px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.custom-select-trigger::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.custom-select-trigger[aria-expanded="true"] { border-color: var(--accent); outline: 2px solid rgba(229, 163, 59, .18); }
.custom-select-trigger[aria-expanded="true"]::after { transform: translateY(-25%) rotate(225deg); }
.custom-select-menu { position: absolute; z-index: 35; top: calc(100% + 8px); left: 0; width: max(100%, 240px); max-width: min(360px, calc(100vw - 28px)); max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(48, 41, 31, .18); }
.custom-select-menu[hidden] { display: none; }
.custom-select-option { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--dark); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.custom-select-option:hover, .custom-select-option:focus-visible { outline: none; background: var(--light); }
.custom-select-option.is-selected { background: #fff0d8; color: var(--primary-dark); font-weight: 700; }
.date-picker { position: relative; }
.date-picker-trigger { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--dark); font: inherit; text-align: left; cursor: pointer; }
.date-picker-trigger::after { content: "▣"; float: right; color: var(--primary); }
.date-value { position: absolute; width: 0 !important; height: 0; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.date-picker-popover { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 280px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(48, 41, 31, .18); }
.date-picker-popover[hidden] { display: none; }
.date-calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--dark); }
.date-calendar-head button { width: 32px; height: 32px; border: 0; border-radius: 9px; color: var(--primary); background: var(--light); font-size: 22px; cursor: pointer; }
.date-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.date-weekday { padding: 6px 0; color: var(--gray); font-size: 11px; font-weight: 700; }
.date-day { aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; color: var(--dark); cursor: pointer; }
.date-day:hover:not(:disabled), .date-day.selected { background: var(--primary); color: #fff; }
.date-day:disabled { color: #c9c1b7; cursor: not-allowed; }
.search-bar input:focus, .search-bar select:focus { outline: 2px solid var(--primary); border-color: transparent; }

.results-info { color: var(--gray); margin-bottom: 14px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; padding-bottom: 40px; }
.cards-grid#listings { display: block; padding-bottom: 0; }
.listing-group { margin: 26px 0 38px; }
.listing-group-heading { margin-bottom: 16px; padding: 0 0 10px; border-bottom: 2px solid #edcfaa; }
.listing-group-heading h2 { color: #57331f; font-size: 23px; }
.listing-group-heading p { color: var(--gray); margin-top: 4px; font-size: 14px; }
.listing-group .cards-grid { padding-bottom: 0; }
.card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--light); }
.card-body { padding: 14px 16px 16px; }
.card-type { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.card-title { font-weight: 700; margin: 2px 0; font-size: 16px; }
.card-city { color: var(--gray); font-size: 14px; }
.card-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.card-rating { font-size: 14px; font-weight: 600; }
.card-price b { font-size: 17px; }
.card-price span { color: var(--gray); font-size: 13px; }

/* Detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 20px 0 50px; min-width: 0; }
.detail > *, .detail-content, .price-box, .calendar { min-width: 0; max-width: 100%; }
.detail .meta, .detail-desc, .price-box p { overflow-wrap: anywhere; }
.detail-img { width: 100%; border-radius: var(--radius); max-height: 420px; object-fit: cover; }
.detail h2 { font-size: 26px; margin-bottom: 4px; }
.detail .meta { color: var(--gray); margin-bottom: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badge { background: var(--light); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.detail-desc { line-height: 1.55; margin-bottom: 18px; }
.price-box {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; width: 100%;
  box-shadow: var(--shadow); align-self: start; position: sticky; top: 84px; background: #fff;
}
.price-box .big { font-size: 26px; font-weight: 800; }
.price-box .per { color: var(--gray); }

/* Booking form */
.booking-summary { display: flex; gap: 16px; align-items: center; background: var(--light); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0 24px; }
.booking-summary img { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
.booking-form label { font-size: 14px; font-weight: 600; display: block; }
.booking-form input, .booking-form textarea { margin-top: 5px; font-weight: 400; }
.booking-total { grid-column: 1 / -1; font-size: 18px; font-weight: 700; padding: 10px 0; }
.error { grid-column: 1 / -1; color: var(--primary-dark); background: #ffecec; border-radius: 10px; padding: 12px; }

/* Buttons */
.btn {
  border: none; border-radius: 12px; padding: 12px 22px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: none; color: var(--gray); }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-danger { background: #fff; color: var(--primary-dark); border: 1px solid var(--primary); }
.btn-danger:hover { background: #ffecec; }
.back-link { background: none; border: none; color: var(--primary-dark); font-size: 15px; font-weight: 600; cursor: pointer; margin: 20px 0 8px; }

/* My bookings */
.lookup-bar { display: flex; gap: 10px; max-width: 560px; margin-bottom: 24px; }
.booking-item {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
}
.booking-item .status { font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #842029; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 34px; max-width: 420px; text-align: center; margin: 20px; }
.modal-icon { font-size: 44px; margin-bottom: 10px; }
.modal-box h3 { margin-bottom: 8px; }
.modal-box p { color: var(--gray); margin-bottom: 18px; }
.modal-box .btn { margin: 4px; }

/* Footer */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 20px 0; color: var(--gray); font-size: 14px; }
.footer a { color: var(--primary-dark); }

/* ===== Календарь занятости ===== */
.calendar { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 16px; min-width: 0; width: 100%; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 16px; min-width: 0; }
.cal-nav {
  border: 1px solid var(--border); background: #fff; width: 32px; height: 32px;
  border-radius: 50%; font-size: 18px; cursor: pointer; line-height: 1;
}
.cal-nav:hover { background: var(--light); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(2px, 1vw, 4px); width: 100%; min-width: 0; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray); padding: 4px 0; }
.cal-day {
  min-width: 0; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: clamp(10px, 3vw, 13px); border: none; background: none;
}
button.cal-day.free { cursor: pointer; background: #eafaf0; color: #1c7c3f; font-weight: 600; }
button.cal-day.free:hover { background: #d2f2df; transform: scale(1.06); }
button.cal-day.today { cursor: pointer; background: #fff4e0; color: #b25e00; font-weight: 700; box-shadow: inset 0 0 0 2px #f0a23c; }
button.cal-day.today:hover { background: #ffe9c9; transform: scale(1.06); }
button.cal-day.checkout-ok { cursor: pointer; opacity: .85; text-decoration: none; border: 1px dashed #b4232a; }
.cal-day.booked { color: #b4232a; background: #ffe3e4; text-decoration: line-through; cursor: not-allowed; }
.cal-day.past { color: #c4c4c4; cursor: default; }
.cal-day.in-range { background: var(--primary) !important; color: #fff !important; text-decoration: none; font-weight: 700; }
.cal-day.sel-edge { outline: 2px solid var(--primary-dark); }
.cal-loading { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 14px 0; font-size: 13px; }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--gray); flex-wrap: wrap; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot-free { background: #eafaf0; border: 1px solid #1c7c3f; }
.dot-booked { background: #ffe3e4; border: 1px solid #b4232a; }
.dot-sel { background: var(--primary); }
.cal-selection { margin-top: 10px; font-size: 13px; color: var(--gray); background: var(--light); border-radius: 10px; padding: 8px 12px; }
.cal-selection.cal-warn { background: #ffecec; color: var(--primary-dark); font-weight: 600; }

/* ===== Админка ===== */
.admin-login-card {
  max-width: 380px; margin: 8vh auto; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.admin-login-card h2 { margin-bottom: 16px; }
.admin-login-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.admin-login-card input { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.admin-tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.admin-tab { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer; font-size: 14px; }
.admin-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.stat-card .num { font-size: 26px; font-weight: 800; }
.stat-card .lbl { color: var(--gray); font-size: 13px; margin-top: 2px; }
.stat-card.accent { background: var(--dark); color: #fff; border-color: var(--dark); }
.stat-card.accent .lbl { color: #bbb; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filters-bar label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; display: block; margin-bottom: 3px; }
.filters-bar input, .filters-bar select { padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--light); font-size: 12px; text-transform: uppercase; color: var(--gray); position: sticky; top: 0; }
.admin-table tr:hover td { background: #fbfbfb; }
.admin-table .btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.mini-select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-bar > button { width: 100%; }
  .detail { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .logo_Img { height: 35px; }
  .hero-logo { height: clamp(150px, 28vw, 230px); max-width: 100%; }
}
@media (max-width: 640px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .header-inner { height: 58px; }
  .logo { font-size: 21px; display: flex; align-items: center; }
  .logo_Img { height: 32px; }
  .hero { margin: 14px 0; padding: 24px 14px 22px; border-radius: 18px; }
  .hero-logo { height: clamp(110px, 35vw, 180px); margin-bottom: 8px; }
  .hero h1 { font-size: clamp(23px, 6vw, 30px); line-height: 1.15; }
  .hero p { font-size: 15px; }
  .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; margin: 12px 0 22px; }
  .search-bar label, .search-field { min-width: 0; }
  .search-bar > button { grid-column: 1 / -1; }
  .search-bar input, .search-bar select, .date-picker-trigger, .custom-select-trigger { min-height: 44px; font-size: 16px; }
  .search-bar label span, .search-field > span { font-size: 11px; }
  .date-picker-popover { position: fixed; top: auto; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); }
  .listing-group { margin: 22px 0 30px; }
  .listing-group-heading h2 { font-size: 19px; line-height: 1.25; }
  .listing-group-heading p { font-size: 12px; line-height: 1.4; }
  .cards-grid:not(#listings), .listing-group .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .card img { height: clamp(170px, 55vw, 250px); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px 0 30px; }
  .detail > *, .gallery, .gal-main, .price-box, .calendar { min-width: 0; max-width: 100%; }
  .price-box { padding: 16px 12px; }
  .detail .meta { line-height: 1.45; }
  .detail h2 { font-size: 23px; }
  .gal-main img { height: clamp(220px, 65vw, 360px); }
  .gal-arrow { width: 34px; height: 34px; }
  .booking-summary { align-items: flex-start; gap: 12px; padding: 12px; }
  .booking-summary img { width: 76px; height: 64px; flex-shrink: 0; }
  .booking-form { grid-template-columns: 1fr; gap: 12px; }
  .booking-form input, .booking-form textarea { font-size: 16px; }
  .booking-form .btn { width: 100%; }
  .lookup-bar { flex-direction: column; width: 100%; }
  .lookup-bar .btn { width: 100%; }
  .booking-item { align-items: flex-start; padding: 13px; gap: 10px; }
  .cal-legend { gap: 8px; }
  .modal-box { width: calc(100% - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 24px 18px; margin: 14px; }
  .modal-box .btn { width: 100%; margin: 5px 0; }
  .footer { padding: 16px 0; }
  .admin-login-card { margin: 5vh auto; padding: 22px 16px; }
  .admin-tabs { gap: 6px; }
  .admin-tab { padding: 8px 10px; font-size: 12px; }
  .filters-bar { align-items: stretch; }
  .filters-bar label, .filters-bar input, .filters-bar select { width: 100%; }
}
@media (max-width: 380px) {
  .search-bar { grid-template-columns: 1fr; }
  .search-bar > button { grid-column: auto; }
  .date-picker-popover { width: calc(100vw - 20px); }
  .card-row { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .cal-grid { gap: 1px; }
  .cal-day { border-radius: 6px; }
}

/* ===== Галерея фото на странице объекта ===== */
.gallery { margin-bottom: 4px; }
.gal-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--light); }
.gal-main img { width: 100%; max-height: 420px; height: 380px; object-fit: cover; display: block; cursor: zoom-in; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18);
  font-size: 20px; line-height: 1; color: var(--dark);
}
.gal-arrow:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-counter {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb {
  width: 76px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .75; flex-shrink: 0; transition: .15s;
}
.gal-thumb:hover { opacity: 1; }
.gal-thumb.active { border-color: var(--primary); opacity: 1; }

/* Лайтбокс */
.lb-box {
  position: relative; max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center;
}
.lb-box img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-close {
  position: fixed; top: 18px; right: 22px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 18px;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); z-index: 60; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-counter { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: rgba(0,0,0,.6); color:#fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; }
#lightbox { background: rgba(10,10,10,.88); }

/* ===== Редактор объекта в админке ===== */
.editor-box { max-width: 760px; width: 100%; max-height: 92vh; overflow-y: auto; text-align: left; }
.editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.editor-head h3 { font-size: 20px; }
.listing-editor label { display: block; font-size: 13px; font-weight: 600; }
.listing-editor input, .listing-editor select, .listing-editor textarea {
  width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit;
}
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-full { grid-column: 1 / -1; }
.ed-images { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 14px; }
.ed-images-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.ed-img { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: var(--light); }
.ed-img.cover { border-color: var(--primary); }
.ed-img img { width: 100%; height: 84px; object-fit: cover; display: block; }
.ed-img img.broken { opacity: .25; }
.ed-img-badge {
  position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.ed-img-tools {
  position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px;
}
.ed-img-tools button {
  width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(0,0,0,.62); color: #fff; font-size: 13px; line-height: 1;
}
.ed-img-tools button:hover { background: rgba(0,0,0,.85); }
.ed-img-tools button.del:hover { background: var(--primary-dark); }
.ed-img-empty { color: var(--gray); font-size: 13px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; grid-column: 1/-1; }
.ed-img-add { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.ed-img-add input[type="text"] { flex: 1; min-width: 220px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.editor-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#listing-modal { align-items: flex-start; padding-top: 4vh; }
/* === Переменные для cookie-баннера (Природная палитра) === */
:root {
  --cookie-bg: #ffffff;
  --cookie-border: #e5e0d8;
  --cookie-text: #1b2e1f;
  --cookie-text-muted: #6b7280;
  --cookie-primary: #2d6a4f;       /* Лесной зелёный */
  --cookie-primary-hover: #1b4332;
  --cookie-accent: #d4a373;        /* Терракота для акцентов */
  --cookie-radius: 16px;
  --cookie-shadow: 0 8px 32px rgba(27, 46, 31, 0.12);
}

/* === Основной контейнер === */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 100%;
  max-width: 420px;
  background: var(--cookie-bg);
  border: 1px solid var(--cookie-border);
  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-shadow);
  padding: 24px;
  z-index: 9999;
  font-family: inherit; /* Наследует шрифт вашего сайта */
  display: flex;
  flex-direction: column;
  gap: 20px;
  
  /* Анимация появления */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Контент (иконка + текст) === */
.cookie-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-icon {
  flex-shrink: 0;
  color: var(--cookie-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-text h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cookie-text);
  line-height: 1.3;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cookie-text-muted);
}

.cookie-link {
  color: var(--cookie-primary);
  text-decoration: underline;
  text-decoration-color: var(--cookie-accent);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cookie-link:hover {
  color: var(--cookie-primary-dark);
}

/* === Кнопки === */
.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.cookie-btn-primary {
  background: var(--cookie-primary);
  color: #ffffff;
}

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

.cookie-btn-secondary {
  background: transparent;
  color: var(--cookie-text-muted);
  border: 1px solid var(--cookie-border);
}

.cookie-btn-secondary:hover {
  background: var(--cookie-bg);
  border-color: var(--cookie-text-muted);
  color: var(--cookie-text);
}

/* === Адаптивность для мобильных устройств === */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 20px;
    box-shadow: 0 -4px 24px rgba(27, 46, 31, 0.1);
  }
  
  .cookie-actions {
    flex-direction: column-reverse; /* Кнопка "Принять" сверху на мобильных для удобства большого пальца */
  }
  
  .cookie-btn {
    width: 100%;
    padding: 14px;
  }
}

/* Более тёплая, выразительная палитра для главной страницы */
body { background: #fffaf3; }
.header { background: #fffaf3; }
.footer { background: #30291f; color: #fff5e8; border-top: 4px solid var(--accent); }
.hero {
  margin: 22px 0 18px;
  padding: 34px 20px 30px;
  border-radius: 22px;
  background: linear-gradient(115deg, #fff0d8 0%, #ffe2bd 55%, #f7c994 100%);
}
.hero h1 { color: #57331f; }
.hero p { color: #74543c; }
.search-bar { border-color: #edcfaa; background: #fff; }
.card { border-color: #ead3b7; box-shadow: 0 5px 18px rgba(117, 71, 35, .08); }
.card:hover { box-shadow: 0 12px 28px rgba(117, 71, 35, .16); }
.btn-primary, .cookie-btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover, .cookie-btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { color: var(--primary); }
.logo span { color: var(--primary); }
.search-bar input:focus, .search-bar select:focus,
.booking-form input:focus, .booking-form textarea:focus,
.lookup-bar input:focus { outline: 2px solid var(--accent); border-color: transparent; }
