.ft-entry-page :is(.stays-header, .stays-main, .stays-footer) { max-width: 1080px; }
.ft-entry-page .stays-intro { padding-block: clamp(24px, 4vw, 40px) 24px; }
.ft-entry-page .stays-intro .ft-entry-editor-help { max-width: 74ch; }
.ft-entry-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-block: 16px 4px;
  padding: 10px 15px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.ft-entry-guide-link:hover { background: var(--green-dark); }
.ft-entry-guide-link:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }
.ft-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.ft-entry-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ft-entry-fields {
  min-inline-size: 0;
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.ft-entry-fields legend {
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--green-dark);
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}
.ft-entry-fields legend + * { clear: left; }
.ft-entry-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.ft-entry-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.ft-entry-field--full { grid-column: 1 / -1; }
.ft-entry-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cadbd3;
  border-radius: 9px;
  background: #fcfdfb;
  color: var(--ink);
  font: 400 1rem/1.35 "DM Sans", system-ui, sans-serif;
}
.ft-entry-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-dark) 50%),
    linear-gradient(135deg, var(--green-dark) 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
@media (forced-colors: active) {
  .ft-entry-field select { appearance: auto; padding-inline-end: 12px; background-image: none; }
}
.ft-entry-field textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.ft-entry-field input:focus-visible, .ft-entry-field select:focus-visible, .ft-entry-field textarea:focus-visible { outline: 3px solid #88cbb8; outline-offset: 2px; }
.ft-entry-field small, .ft-entry-editor-help { color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.6; }
.ft-entry-editor-help { margin: 12px 0 0; }
.ft-entry-preview { position: sticky; top: 20px; min-width: 0; }
.ft-entry-preview > h2 { margin: 0 0 12px; font-family: "Manrope", sans-serif; font-size: 1.08rem; font-weight: 800; }
.ft-entry-preview .stay-card { display: flex; overflow-wrap: anywhere; }
.ft-entry-preview .stay-photo { display: grid; place-items: center; height: auto; aspect-ratio: 1.6; background: #e3ece5; }
.ft-entry-preview .stay-photo > p { margin: 18px; color: #557361; font-size: .82rem; text-align: center; }
.ft-entry-preview .stay-photo img { width: 100%; height: 100%; }
.ft-entry-preview .stay-bottom-row { flex-wrap: wrap; }
.ft-entry-preview .stay-host { min-width: 0; }
.ft-entry-preview .stay-price { max-width: 100%; white-space: normal; }
.ft-entry-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.ft-entry-photo { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf7; }
.ft-entry-photo img { width: 100%; aspect-ratio: 1.35; object-fit: cover; display: block; border-radius: 5px; }
.ft-entry-photo small { display: block; margin: 7px 0; color: var(--green-dark); font-size: .7rem; }
.ft-entry-photo-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.ft-entry-photo-actions button { min-width: 30px; min-height: 32px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--green-dark); font-size: .72rem; }
.ft-entry-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ft-entry-actions button, .ft-entry-account-link { min-height: 44px; padding: 11px 17px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; text-decoration: none; font-size: .86rem; font-weight: 700; }
.ft-entry-actions .ft-entry-secondary { background: white; color: var(--green-dark); }
.ft-entry-draft-message { flex-basis: 100%; margin: 0; color: var(--green-dark); font-size: .86rem; }
.ft-entry-draft-message:empty { display: none; }
.ft-entry-drafts {
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.ft-entry-drafts summary { color: var(--green-dark); font-weight: 700; cursor: pointer; }
.ft-entry-drafts .ft-entry-own-list { margin-top: 14px; }
.ft-entry-message { padding: 15px 18px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-size: .86rem; line-height: 1.6; }
.ft-entry-message:empty { display: none; }
.ft-entry-message.is-error { background: #fff0ed; color: #873e35; }
.ft-entry-my-listings { margin-top: 42px; }
.ft-entry-my-listings h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.ft-entry-own-list { display: grid; gap: 13px; }
.ft-entry-own-row { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.ft-entry-own-row > div { min-width: 0; overflow-wrap: anywhere; }
.ft-entry-own-row h3 { margin: 0; font-size: .95rem; }
.ft-entry-own-row p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.ft-entry-own-row button { flex-shrink: 0; padding: 9px 13px; border: 1px solid #b5d5c6; border-radius: 7px; background: #f2f8f1; color: var(--green-dark); }
.ft-entry-review-note { white-space: pre-line; }
.ft-entry-status { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 5px; color: #745725; background: #fff3d4; font-size: .73rem; }
.ft-entry-status--approved { background: var(--green-soft); color: var(--green-dark); }
.ft-entry-status--rejected { background: #fff0ed; color: #873e35; }
:is(.offer-gallery, .ft-entry-detail-gallery) { display: flex; gap: 8px; padding: 12px 20px 0; overflow-x: auto; }
:is(.offer-gallery, .ft-entry-detail-gallery) button { width: 90px; padding: 0; flex: 0 0 90px; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: none; }
:is(.offer-gallery, .ft-entry-detail-gallery) button[aria-pressed="true"] { border-color: var(--green); }
:is(.offer-gallery, .ft-entry-detail-gallery) img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.offer-contact { display: flex; gap: 10px; margin: 18px 24px 24px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.offer-contact li { display: flex; flex: 1 1 0; min-width: 0; }
.offer-contact li:nth-child(3) { flex-grow: 1.55; }
.offer-contact-button {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  line-height: 1.35;
  text-decoration: none;
}
.offer-contact-button svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offer-contact-button span { min-width: 0; overflow-wrap: anywhere; }
.offer-contact-button small { display: block; margin-bottom: 2px; color: #e0f4ec; font-size: .7rem; }
.offer-contact-button strong { display: block; font-size: .85rem; font-weight: 700; }
a.offer-contact-button:hover { background: var(--green-dark, #075846); color: #fff; }
a.offer-contact-button:focus-visible { outline: 3px solid #88cbb8; outline-offset: 3px; }
@media (max-width: 520px) {
  .offer-contact { gap: 6px; margin-inline: 14px; }
  .offer-contact li:nth-child(3) { flex-grow: 1.25; }
  .offer-contact-button { flex-direction: column; align-items: flex-start; gap: 5px; padding: 9px 8px; }
  .offer-contact-button svg { width: 16px; height: 16px; flex-basis: 16px; }
  .offer-contact-button span { max-width: 100%; }
  .offer-contact-button strong { font-size: .78rem; }
}
.ft-entry-page:has(.ft-entry-detail-dialog[open]) { overflow: hidden; }
.ft-entry-detail-dialog { overflow-wrap: anywhere; overscroll-behavior: contain; }
.ft-entry-detail-dialog .stay-dialog-close { flex-shrink: 0; }
.ft-entry-detail-dialog .offer-detail-description { color: #4f6467; line-height: 1.7; }
.ft-entry-detail-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #e3ece5;
  color: #557361;
  font-size: .86rem;
  text-align: center;
}
.offer-availability { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
.ft-entry-no-offers { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) {
  .ft-entry-layout { grid-template-columns: minmax(0, 1fr); }
  .ft-entry-preview { position: static; width: min(100%, 420px); }
}
@media (max-width: 520px) {
  .ft-entry-field-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-entry-own-row { flex-direction: column; align-items: stretch; gap: 12px; }
}
.ft-entry-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.ft-entry-status--expired{background:#fff0cf;color:#80601e}
.ft-entry-status--suspended{background:#ffe8e5;color:#962d24}
