.form-page {
  max-width: 980px;
  margin: 0;
}

.form-page-head {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 20px;
  padding: 26px 29px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--forest), #245d4f);
  color: #fff;
  box-shadow: var(--shadow);
}

.form-page-head h2 {
  margin: 0;
  font: 600 clamp(28px, 4vw, 38px) Georgia;
}

.form-page-head p:last-child {
  margin: 8px 0 0;
  color: #c4d8d1;
  font-size: 13px;
}

.back-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #ffffff29;
  border-radius: 12px;
  background: #ffffff10;
  color: #fff;
  font-size: 22px;
}

.back-button:hover { background: #ffffff20; }

.rental-form {
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 6px 0 17px;
}

.form-section-title:not(:first-child) {
  margin-top: 31px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.form-section-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf3f0;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
}

.form-section-title b,
.form-section-title small { display: block; }
.form-section-title b { font: 600 18px Georgia; }
.form-section-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.field-wide { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #d9dedb;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.field textarea {
  min-height: 120px;
  height: auto;
  padding: 13px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select:disabled { cursor: not-allowed; background-color: #f1f3f1; color: #8d9893; }

.field input:focus,
.field select:focus,
.currency-input:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px #123d3414;
}

.field.invalid input,
.field.invalid select,
.field.invalid .currency-input,
.photo-upload.invalid {
  border-color: #d34f45;
  box-shadow: 0 0 0 3px #d34f4510;
}

.field-error {
  min-height: 13px;
  color: #c44138;
  font-size: 10px;
  font-weight: 700;
}

.currency-input {
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  border: 1px solid #d9dedb;
  border-radius: 10px;
  background: #fff;
}

.currency-input b { padding-left: 13px; color: var(--forest); font-size: 12px; }
.currency-input input { height: 46px; border: 0; box-shadow: none !important; }
.currency-input.readonly-price { background: #f1f3f1; }
.currency-input.readonly-price input { cursor: not-allowed; background: transparent; color: var(--forest); font-weight: 800; }

.photo-upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1.5px dashed #9bb2aa;
  border-radius: 15px;
  background: #f8faf8;
  cursor: pointer;
}

.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-upload > span { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); text-align: center; }
.photo-upload > span > b { color: var(--forest); font-size: 31px; }
.photo-upload > span > strong { color: var(--ink); font-size: 13px; }
.photo-upload > span > small { font-size: 10px; }
.photo-upload img { width: 100%; height: 300px; object-fit: contain; background: #eef1ef; }
.photo-error { display: block; margin-top: 7px; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.primary-button,
.secondary-button { min-width: 135px; height: 48px; border-radius: 11px; font-weight: 800; }
.primary-button { border: 0; background: linear-gradient(135deg, var(--gold), #e6c66e); color: #26352f; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.preview-notice { margin: 13px 0 0; color: var(--muted); font-size: 10px; text-align: right; }

.guest-data-page { width: 100%; max-width: 980px; margin: 0; }
.guest-data-head { margin-bottom: 14px; }
.guest-data-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; margin-bottom: 14px; }
.guest-search,
.guest-date-filter { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.guest-search:focus-within,
.guest-date-filter:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #123d3414; }
.guest-search span,
.guest-date-filter span { flex: 0 0 auto; font-size: 17px; }
.guest-search input,
.guest-date-filter input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.guest-data-status { padding: 35px 15px; border: 1px dashed #cfd7d2; border-radius: 15px; background: #ffffff80; color: var(--muted); text-align: center; font-size: 13px; }
.guest-data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guest-web-card { display: grid; grid-template-columns: minmax(0, 1fr) 142px; gap: 11px 13px; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.guest-card-identity { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.guest-card-identity > span { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 11px; background: #e9f2ee; color: var(--forest); font-weight: 900; }
.guest-card-identity div { min-width: 0; }
.guest-card-identity h3 { margin: 0 0 5px; overflow: hidden; color: var(--ink); font: 600 16px Georgia; text-overflow: ellipsis; white-space: nowrap; }
.guest-card-identity p { margin: 3px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.guest-photo-button { grid-column: 2; grid-row: 1 / span 2; width: 142px; padding: 0; overflow: hidden; border: 1px solid #dfe3df; border-radius: 11px; background: #f1f3f1; color: var(--muted); }
.guest-photo-button:not(:disabled):hover { border-color: var(--gold); }
.guest-photo-button:disabled { cursor: default; }
.guest-photo-button img { display: block; width: 100%; height: 84px; object-fit: cover; background: #e9ecea; }
.guest-photo-button small { display: block; padding: 5px; font-size: 9px; }
.guest-photo-button.photo-failed img { visibility: hidden; }
.guest-unit-line { grid-column: 1; padding: 7px 9px; border-radius: 9px; background: #f4f7f5; color: var(--forest); font-size: 10px; font-weight: 800; }
.guest-card-detail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.35fr 110px; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.guest-card-detail > div:not(.guest-card-actions) { display: flex; flex-direction: column; gap: 3px; }
.guest-card-detail small { margin-top: 4px; color: #8c9893; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.guest-card-detail b { color: var(--ink); font-size: 10px; }
.guest-card-detail strong { color: var(--forest); font-size: 12px; }
.guest-card-actions { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.guest-card-actions button { height: 30px; border: 1px solid #cbd8d3; border-radius: 8px; background: #f5f9f7; color: var(--forest); font-size: 10px; font-weight: 900; }
.guest-card-actions button:last-child { border-color: #f0cbc8; background: #fff5f4; color: #c54e45; }
.guest-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 17px; }
.guest-pagination b { color: var(--muted); font-size: 11px; }
.guest-pagination button { justify-self: start; min-width: 120px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--forest); font-size: 11px; font-weight: 900; }
.guest-pagination .next { justify-self: end; border: 0; background: var(--forest); color: #fff; }
.ktp-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 55px 20px 20px; background: #071713e8; }
.ktp-modal img { display: block; max-width: min(940px, 95vw); max-height: 84vh; border: 5px solid #fff; border-radius: 13px; background: #fff; box-shadow: 0 20px 70px #0008; object-fit: contain; }
.ktp-modal button { position: fixed; top: 18px; right: 22px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff18; color: #fff; font-size: 28px; }

.apartment-page { max-width: 980px; margin: 0; }
.apartment-page-head { margin-bottom: 14px; }
.apartment-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.apartment-tabs button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; }
.apartment-tabs button.active { background: var(--forest); color: #fff; box-shadow: 0 7px 18px #123d3430; }
.apartment-form { padding-top: 22px; }
.apartment-tower-heading { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 10px; }
.apartment-tower-heading b { font-size: 12px; }
.apartment-tower-heading small { color: var(--muted); font-size: 9px; }
.apartment-tower-fields { display: grid; gap: 9px; }
.apartment-tower-row { padding: 13px; border: 1px solid #e4ddca; border-radius: 14px; background: #fffdf8; }
.apartment-tower-main { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.apartment-tower-row .field > span { display: block; margin-bottom: 2px; }
.apartment-tower-row .field-error { min-height: 0; }
.apartment-unit-heading { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; padding-top: 11px; border-top: 1px dashed #ddd3b8; }
.apartment-unit-heading b { font-size: 11px; }
.apartment-unit-heading small { color: var(--muted); font-size: 9px; }
.apartment-unit-fields { display: grid; gap: 7px; }
.apartment-unit-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 7px; }
.remove-unit-web { width: 38px; height: 38px; border: 1px solid #efc8c5; border-radius: 9px; background: #fff3f2; color: #c84f46; font-size: 20px; }
.add-unit-web { height: 36px; margin-top: 8px; padding: 0 12px; border: 1px solid #cbd8d3; border-radius: 9px; background: #f4f8f6; color: var(--forest); font-size: 10px; font-weight: 900; }
.remove-tower-web { width: 42px; height: 42px; margin-bottom: 1px; border: 1px solid #efc8c5; border-radius: 10px; background: #fff3f2; color: #c84f46; font-size: 23px; font-weight: 700; }
.add-tower-web { height: 40px; margin-top: 10px; padding: 0 14px; border: 1px solid #d3bc7e; border-radius: 10px; background: #fffaf0; color: #86671f; font-size: 11px; font-weight: 900; }
.apartment-search-web { display: flex; align-items: center; gap: 9px; height: 44px; margin-bottom: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--forest); box-shadow: var(--shadow); }
.apartment-search-web span { font-size: 22px; line-height: 1; }
.apartment-search-web input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.apartment-search-web input::placeholder { color: var(--muted); }
.apartment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apartment-web-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.apartment-web-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ebe8f5; color: #6d5aab; font-size: 21px; }
.apartment-open-web { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 58px; padding: 6px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: left; }
.apartment-open-web:hover { background: #f8f6ee; }
.apartment-open-web strong,.apartment-open-web small { display: block; }
.apartment-open-web strong { font: 600 16px Georgia; }
.apartment-open-web small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.apartment-open-web i { color: var(--gold); font-size: 18px; font-style: normal; }
.apartment-web-card h3 { margin: 0; color: var(--ink); font: 600 16px Georgia; }
.apartment-web-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.apartment-web-card small { display: block; margin-top: 5px; color: #9a8650; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.apartment-web-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.apartment-web-actions button { min-width: 58px; height: 29px; padding: 0 10px; border: 1px solid #cbd8d3; border-radius: 8px; background: #f4f8f6; color: var(--forest); font-size: 9px; font-weight: 900; }
.apartment-web-actions button:last-child { border-color: #efc8c5; background: #fff3f2; color: #c84f46; }
.apartment-web-body { min-width: 0; }
.apartment-web-tower { margin-top: 8px; }
.apartment-web-tower p { margin: 0 0 5px; color: var(--forest); font-size: 10px; font-weight: 900; }
.apartment-web-unit-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.apartment-web-unit-buttons button { min-height: 30px; padding: 0 11px; border: 1px solid #cbdad4; border-radius: 8px; background: #edf4f1; color: var(--forest); font-size: 10px; font-weight: 900; }
.apartment-web-unit-buttons button:hover { border-color: var(--gold); background: #fff8e7; }
.apartment-web-unit-buttons small { color: var(--muted); font-size: 9px; }
.rental-price-page { width: 100%; max-width: 980px; margin: 0; }
.rental-price-page-head { margin-bottom: 14px; }
.rental-price-grid { align-items: start; }
.rental-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rental-price-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.rental-price-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--forest); color: #fff; font-size: 18px; }
.rental-price-card h3 { margin: 0; color: var(--ink); font: 600 16px Georgia; }
.rental-price-card p { margin: 5px 0 0; color: #a8771c; font-size: 13px; font-weight: 900; }
.rental-price-actions { display: flex; flex-direction: column; gap: 6px; }
.rental-price-actions button { width: 58px; height: 29px; border: 1px solid #cbd8d3; border-radius: 8px; background: #f4f8f6; color: var(--forest); font-size: 9px; font-weight: 900; }
.rental-price-actions button:last-child { border-color: #efc8c5; background: #fff3f2; color: #c84f46; }
.detail-back-button { height: 40px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--forest); font-size: 11px; font-weight: 900; }
.apartment-detail-heading { margin-bottom: 13px; padding: 20px; border-radius: 15px; background: linear-gradient(135deg, var(--forest), #245d4f); color: #fff; }
.apartment-detail-heading h3 { margin: 0; font: 600 25px Georgia; }
.apartment-detail-heading>p:last-child { margin: 7px 0 0; color: #c4d8d1; font-size: 11px; }
.apartment-detail-towers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.apartment-detail-tower { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.apartment-detail-tower h4 { margin: 0 0 10px; font: 600 17px Georgia; }
.apartment-unit-web-buttons { display: grid; gap: 7px; }
.apartment-unit-web-buttons>button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 43px; padding: 6px 10px; border: 1px solid #d7e1dd; border-radius: 10px; background: #f5f8f6; color: var(--ink); text-align: left; }
.apartment-unit-web-buttons>button:hover { border-color: var(--gold); background: #fffaf0; }
.apartment-unit-web-buttons>button span { color: var(--forest); font-size: 18px; }
.apartment-unit-web-buttons>button b { font-size: 11px; }
.apartment-unit-web-buttons>button i { color: var(--gold); font-style: normal; }
.apartment-unit-web-buttons>p { margin: 0; color: var(--muted); font-size: 11px; }
.unit-detail-placeholders { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.unit-detail-placeholders article { padding: 28px 20px; border: 1px dashed #cfc4a5; border-radius: 15px; background: #fffdf7; text-align: center; }
.unit-detail-placeholders span { color: var(--gold); font-size: 34px; }
.unit-detail-placeholders h4 { margin: 10px 0 7px; font: 600 18px Georgia; }
.unit-detail-placeholders p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.promo-page,
.facility-page { width: 100%; max-width: 980px; margin: 0; }
.promo-page-head,
.facility-page-head { margin-bottom: 14px; }
.promo-web-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.promo-web-tabs button { min-height: 43px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; }
.promo-web-tabs button:hover { background: #f5f8f6; color: var(--forest); }
.promo-web-tabs button.active { background: var(--forest); color: #fff; box-shadow: 0 7px 17px #143f3426; }
.promo-web-form { display: grid; gap: 18px; }
.promo-date-builder { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.promo-date-builder .add-tower-web { min-width: 150px; margin: 0; }
.promo-selected-dates { display: flex; flex-wrap: wrap; gap: 7px; min-height: 30px; }
.promo-selected-dates>button { min-height: 30px; padding: 5px 10px; border: 1px solid #d7bc75; border-radius: 9px; background: #fff7df; color: var(--ink); font-size: 10px; font-weight: 800; }
.promo-selected-dates>small { align-self: center; color: var(--muted); font-size: 10px; font-style: italic; }
.promo-brochure-upload { position: relative; display: grid; place-items: center; min-height: 230px; overflow: hidden; border: 1.5px dashed #c6d2cd; border-radius: 15px; background: #f8faf9; cursor: pointer; }
.promo-brochure-upload:hover { border-color: var(--gold); background: #fffaf0; }
.promo-brochure-upload.invalid { border-color: #c84f46; background: #fff6f5; }
.promo-brochure-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.promo-brochure-upload img { width: 100%; max-height: 440px; object-fit: contain; background: #151515; }
.promo-brochure-upload>span { display: grid; justify-items: center; gap: 7px; padding: 25px; color: var(--muted); text-align: center; }
.promo-brochure-upload>span b { color: var(--gold); font-size: 38px; }
.promo-brochure-upload>span strong { color: var(--ink); font-size: 12px; }
.promo-brochure-upload>span small { font-size: 9px; }
.promo-web-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.promo-web-card { display: grid; grid-template-columns: 132px minmax(0,1fr); min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.promo-web-image { display: grid; place-items: center; width: 100%; min-height: 190px; padding: 0; overflow: hidden; border: 0; background: #17231f; color: var(--gold); }
.promo-web-image:not(:disabled) { cursor: zoom-in; }
.promo-web-image img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.promo-web-image span { font-size: 34px; }
.promo-web-body { display: flex; min-width: 0; padding: 14px; flex-direction: column; }
.promo-web-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.promo-web-heading h3 { margin: 0; color: var(--ink); font: 600 17px Georgia; overflow-wrap: anywhere; }
.promo-web-heading b { display: block; margin-top: 5px; color: #a8771c; font-size: 10px; letter-spacing: .08em; }
.promo-web-heading>span { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 900; }
.promo-web-heading>span.active { background: #e3f2eb; color: var(--forest); }
.promo-web-heading>span.inactive { background: #f2eeee; color: #856c6c; }
.promo-web-body>p { margin: 11px 0; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.promo-web-dates { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.promo-web-dates small { padding: 4px 6px; border-radius: 7px; background: #f4efe2; color: #775f28; font-size: 8px; font-weight: 800; }
.promo-web-actions { display: flex; gap: 7px; margin-top: 11px; }
.promo-web-actions button { flex: 1; min-height: 30px; border: 1px solid #cbd8d3; border-radius: 8px; background: #f4f8f6; color: var(--forest); font-size: 9px; font-weight: 900; }
.promo-web-actions button:last-child { border-color: #efc8c5; background: #fff3f2; color: #c84f46; }
.page-promo-rail { width: 100%; }
.page-promo-status { padding: 16px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; box-shadow: var(--shadow); }
.page-promo-cards { display: flex; flex-direction: column; gap: 10px; }
.page-promo-card { width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.page-promo-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.page-promo-picture { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #17231f; }
.page-promo-picture img { width: 100%; height: 100%; object-fit: cover; }
.page-promo-picture i { color: var(--gold); font-size: 10px; font-style: normal; font-weight: 900; }
.facility-tabs { grid-template-columns: 1fr 1fr; }
.facility-stored-panel { margin-bottom: 14px; padding: 17px; border: 1px solid #e1d7bd; border-radius: 15px; background: #fffdf8; box-shadow: var(--shadow); }
.facility-stored-panel h3 { margin: 0 0 13px; color: var(--ink); font: 600 19px Georgia; }
.facility-stored-panel h4 { margin: 12px 0 8px; color: var(--forest); font-size: 11px; }
.facility-inline-status { padding: 18px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.facility-chip-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 26px; }
.facility-chip { display: inline-flex; align-items: center; min-height: 29px; max-width: 100%; padding: 5px 10px; border: 1px solid #d7bc75; border-radius: 9px; background: #f6e8b9; color: var(--ink); font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.facility-chip.unit { border-color: #bfd3cb; background: #e7f0ec; }
.facility-empty { align-self: center; color: var(--muted); font-size: 10px; font-style: italic; }
.facility-form { padding-top: 22px; }
.facility-name-fields { display: grid; gap: 5px; }
.facility-category-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.facility-category-actions .primary-button { width: 100%; min-width: 0; }
.facility-assigned-panel { margin: 6px 0 17px; padding: 14px; border: 1px solid #e1d7bd; border-radius: 13px; background: #fffdf8; }
.facility-assigned-panel h4 { margin: 0 0 10px; color: var(--forest); font-size: 11px; }
.facility-choice-field { margin: 3px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.facility-choice-field legend { padding: 0 7px; color: var(--ink); font-size: 11px; font-weight: 900; }
.facility-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facility-choice { position: relative; display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 1px solid #d8e1dd; border-radius: 10px; background: #f6f9f7; cursor: pointer; }
.facility-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.facility-choice span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #bfcfc8; border-radius: 7px; background: #fff; color: transparent; font-size: 13px; }
.facility-choice b { min-width: 0; color: var(--ink); font-size: 10px; overflow-wrap: anywhere; }
.facility-choice:has(input:checked) { border-color: var(--gold); background: #fff9e9; }
.facility-choice input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff; }

@media (min-width: 761px) {
  .form-page,
  .apartment-page,
  .guest-data-page,
  .rental-price-page,
  .promo-page,
  .facility-page {
    width: 100%;
    max-width: 980px;
  }
}

@media (min-width: 1051px) {
  main {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 980px) minmax(250px, 1fr);
    align-items: start;
    column-gap: 3px;
  }
  #dashboardView { grid-column: 1 / -1; }
  .form-page,
  .apartment-page,
  .guest-data-page,
  .rental-price-page,
  .promo-page,
  .facility-page {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }
  .page-promo-rail {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .form-page,
  .apartment-page,
  .guest-data-page,
  .rental-price-page,
  .promo-page,
  .facility-page { width: 100%; max-width: 980px; }
  .page-promo-rail { width: 100%; max-width: 980px; margin-top: 14px; }
  .page-promo-card { display: block; }
  .page-promo-picture { height: auto; }
}

@media (max-width: 1180px) {
  .guest-data-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #guestInputView,
  #guestDataView {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  #guestInputView .form-actions,
  #guestDataView .guest-pagination {
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }
  .page-promo-rail { width: 100%; margin-top: 14px; }
  .page-promo-cards { display: grid; grid-template-columns: 1fr; }
  .page-promo-card { display: block; }
  .page-promo-picture { height: auto; }
  .page-promo-copy { align-self: center; }
  .form-page-head { padding: 21px; }
  .rental-form { padding: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; }
  .primary-button,
  .secondary-button { width: 100%; }
  .photo-upload { min-height: 190px; }
  .photo-upload img { height: 240px; }
  .guest-data-toolbar { grid-template-columns: minmax(0, 1fr) 150px; gap: 7px; }
  .guest-search,
  .guest-date-filter { height: 44px; padding: 0 10px; }
  .guest-date-filter span { display: none; }
  .guest-web-card { grid-template-columns: minmax(0, 1fr) 128px; padding: 12px; }
  .guest-photo-button { width: 128px; }
  .guest-photo-button img { height: 78px; }
  .guest-card-detail { grid-template-columns: 1fr 1.35fr 86px; }
  .apartment-list { grid-template-columns: 1fr; }
  .rental-price-list { grid-template-columns: 1fr; }
  .promo-web-list { grid-template-columns: 1fr; }
  .facility-choice-list { grid-template-columns: 1fr; }
  .apartment-detail-towers,.unit-detail-placeholders { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .promo-web-tabs { grid-template-columns: 1fr; }
  .promo-date-builder { grid-template-columns: 1fr; }
  .promo-date-builder .add-tower-web { width: 100%; }
  .promo-web-card { grid-template-columns: 112px minmax(0,1fr); }
  .promo-web-image,.promo-web-image img { min-height: 180px; }
  .facility-category-actions { grid-template-columns: 1fr; }
  .guest-data-toolbar { grid-template-columns: minmax(0, 1fr) 132px; }
  .guest-search input { font-size: 12px; }
  .guest-web-card { grid-template-columns: minmax(0, 1fr) 116px; gap: 9px; }
  .guest-photo-button { width: 116px; }
  .guest-card-detail { grid-template-columns: 1fr 1.25fr; }
  .guest-card-actions { grid-column: 1 / -1; flex-direction: row; }
  .guest-card-actions button { flex: 1; }
}
