/* ─── SunnyPlaya — Apartment Form + Detail ────────────────────────────────── */

/* ══ Form shell ════════════════════════════════════════════════════════════ */

.af-shell {
  max-width: min(1560px, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.af-shell:has(#af-form-sidebar) {
  padding-left: var(--af-sidebar-w, 13.75rem);
}

/* ══ Split workspace: editor + live preview (sidebar is fixed) ════════════ */

.af-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.75rem 2rem;
  align-items: start;
}

.af-workspace__editor {
  min-width: 0;
}

/* ─── Section sidebar (full-height white rail) ───────────────────────────── */

.af-sidebar {
  --af-sidebar-w: 13.75rem;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--af-sidebar-w);
  height: 100vh;
  height: 100dvh;
}

.af-sidebar__panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: calc(var(--nav-h, 64px) + 0.85rem) 0.75rem 1.25rem;
  background: var(--white);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(11, 37, 69, 0.04);
  overflow: hidden;
}

.af-sidebar__search {
  position: relative;
  padding: 0 0.2rem 0.55rem;
}

.af-sidebar__search-icon {
  position: absolute;
  left: 0.9rem;
  top: 0.68rem;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gray-4);
  pointer-events: none;
}

.af-sidebar__search-input {
  height: 2.25rem;
  padding: 0 0.85rem 0 2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--gray-7);
  font-size: 0.8125rem;
}

.af-sidebar__search-input::placeholder {
  color: var(--gray-4);
}

.af-sidebar__search-input:focus {
  background: var(--white);
}

.af-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.af-sidebar__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--navy);
}

.af-sidebar__head-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.af-sidebar__head-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.af-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-6) transparent;
}

.af-sidebar__nav::-webkit-scrollbar {
  width: 4px;
}

.af-sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--gray-6);
  border-radius: var(--r-full);
}

.af-sidebar__group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.af-sidebar__group[hidden] {
  display: none;
}

.af-sidebar__divider {
  height: 1px;
  margin: 0.2rem 0.5rem;
  background: var(--border);
}

.af-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.55rem;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-4);
  text-decoration: none;
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.af-sidebar__icon {
  flex: 0 0 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gray-5);
  transition: color 0.22s ease;
}

.af-sidebar__text {
  min-width: 0;
}

.af-sidebar__link:hover {
  color: var(--navy);
  background: var(--cream);
}

.af-sidebar__link:hover .af-sidebar__icon {
  color: var(--navy);
}

.af-sidebar__link.is-active {
  color: var(--navy);
  font-weight: 600;
  background: var(--cream);
  box-shadow: inset 3px 0 0 var(--gold);
}

.af-sidebar__link.is-active .af-sidebar__icon {
  color: var(--gold);
}

.af-sidebar__link--danger {
  color: #d13a34;
}

.af-sidebar__link--danger .af-sidebar__icon {
  color: inherit;
}

.af-sidebar__link--danger:hover,
.af-sidebar__link--danger.is-active {
  color: #b82e29;
  background: #fff1f0;
  box-shadow: inset 3px 0 0 #ef4444;
}

.af-sidebar--filtered .af-sidebar__divider {
  opacity: 0.5;
}

body.af-modal-open {
  overflow: hidden;
}

.af-delete-modal[hidden] {
  display: none;
}

.af-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.af-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(11, 37, 69, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.af-delete-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  padding: 1.6rem 1.55rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: 0 28px 90px rgba(11, 37, 69, 0.28);
}

.af-delete-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: #fff1f0;
  color: #c92f2f;
}

.af-delete-modal__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.af-delete-modal__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.af-delete-modal__text {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  color: var(--gray-3);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.af-delete-modal__text strong {
  color: var(--navy);
}

.af-delete-modal__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.af-delete-modal__form {
  display: contents;
}

.af-delete-modal__cancel,
.af-delete-modal__confirm {
  min-width: 8.5rem;
}

.af-delete-modal__confirm svg {
  width: 1rem;
  height: 1rem;
}

.af-currency-modal[hidden] {
  display: none;
}

.af-currency-modal {
  position: fixed;
  inset: 0;
  z-index: 121;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.af-currency-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(11, 37, 69, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.af-currency-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  padding: 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: 0 28px 90px rgba(11, 37, 69, 0.28);
}

.af-currency-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.af-currency-modal__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.af-currency-modal__text {
  margin: 0.35rem 0 0;
  color: var(--gray-3);
  font-size: 0.95rem;
  line-height: 1.55;
}

.af-currency-modal__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.af-currency-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.af-currency-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.af-currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.af-currency-option__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.af-currency-option__code {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.af-currency-option__symbol {
  flex: 0 0 auto;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #f6f7fb;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.af-currency-option:hover {
  border-color: rgba(15, 157, 114, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 157, 114, 0.08);
}

.af-currency-option.is-active {
  border-color: rgba(15, 157, 114, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 157, 114, 0.14);
}

.af-form .af-panel[id] {
  scroll-margin-top: calc(1rem + var(--nav-h, 0px));
}

.af-workspace__preview {
  position: sticky;
  top: calc(1rem + var(--nav-h, 0px));
  align-self: start;
}

.af-mobile-switcher {
  display: none;
}

.af-mobile-toolbar {
  display: none;
}

.af-sidebar-backdrop {
  display: none;
}

.af-preview {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.af-preview__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.2rem 0 0.2rem;
}

.af-preview__chrome-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.af-preview__chrome-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--r-full);
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.af-preview__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.af-preview__device {
  width: min(100%, 16rem);
  height: min(30rem, calc(100dvh - 8rem));
  margin-left: auto;
  margin-right: auto;
  padding: 0.55rem;
  border-radius: 2.35rem;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.18),
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.af-preview__frame,
.af-preview__fallback {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 1.9rem;
  background: var(--white);
  overflow: hidden;
}

.af-preview__fallback {
  display: flex;
  flex-direction: column;
}

.af-savebar--preview {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, 16rem);
  margin: 0 auto;
  padding: 0.25rem 0 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  position: static;
  align-items: center;
}

.af-savebar--preview .sp-btn {
  flex: 1;
}

.af-preview__media {
  position: relative;
  flex: 0 0 11.5rem;
  min-height: 11.5rem;
  background: linear-gradient(145deg, #56b08f, #b6e2c2 56%, #e5f5ee);
  border-radius: 1.55rem 1.55rem 0 0;
  overflow: hidden;
}

.af-preview__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.38) 0 11%, transparent 12%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
  pointer-events: none;
}

.af-preview__media::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 4.75rem;
  height: 1.1rem;
  transform: translateX(-50%);
  border-radius: 0 0 1rem 1rem;
  background: #111827;
  z-index: 2;
}

.af-preview__cover,
.af-preview__cover-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.af-preview__cover {
  object-fit: cover;
}

.af-preview__cover-placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: block;
}

.af-preview__cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--gray-4);
  font-size: 0.8125rem;
}

.af-preview__cover-placeholder svg {
  width: 2rem;
  height: 2rem;
}

.af-preview__status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.24rem 0.5rem;
  border-radius: var(--r-full);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.af-preview__status.is-published {
  background: rgba(34, 197, 94, 0.24);
  color: #ffffff;
}

.af-preview__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--white);
  border-radius: 0 0 1.55rem 1.55rem;
}

.af-preview__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.af-preview__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.af-preview__location,
.af-preview__meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--gray-3);
}

.af-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.af-preview__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.48rem;
  border-radius: var(--r-full);
  background: #f4f4f5;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.65rem;
  font-weight: 600;
  color: #52525b;
}

.af-preview__description {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--gray-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.af-preview__fees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  color: var(--gray-4);
}

.af-preview__section-title {
  margin: 0 0 0.35rem;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.af-preview__amenities,
.af-preview__infos,
.af-preview__distances {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.af-preview__amenities li,
.af-preview__infos li,
.af-preview__distances li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.46rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--navy);
}

.af-preview__distances li {
  border-radius: var(--r-md);
}

.af-preview__empty {
  background: transparent !important;
  color: var(--gray-4) !important;
  font-style: italic;
  padding: 0 !important;
  border-bottom: 0 !important;
  justify-content: flex-start !important;
}

.af-preview__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.1rem 0.65rem 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 0.95rem;
  background: #0f9d72;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 157, 114, 0.28);
}

.af-preview__link svg {
  width: 0.9rem;
  height: 0.9rem;
}

.af-preview__link:hover {
  background: #0b8c65;
  color: var(--white);
}

@media (max-width: 1200px) {
  .af-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-workspace__preview {
    grid-column: 1 / -1;
    position: static;
    order: -1;
  }

  .img-grid--summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .af-shell:has(#af-form-sidebar) {
    padding-left: 0;
    overflow-x: clip;
  }

  .af-mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: sticky;
    top: calc(var(--nav-h, 64px) + 0.5rem);
    z-index: 49;
    margin: 0 0 0.75rem;
  }

  .af-mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.72rem 0.88rem;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  }

  .af-mobile-sidebar-toggle svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
  }

  .af-mobile-sidebar-toggle.is-active {
    background: var(--cream);
    border-color: rgba(221, 185, 103, 0.45);
  }

  .af-mobile-switcher {
    display: flex;
    flex: 1;
    gap: 0.45rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  }

  .af-mobile-switcher__btn {
    flex: 1;
    padding: 0.7rem 0.9rem;
    border: 1px solid transparent;
    border-radius: calc(var(--r-md) - 2px);
    background: transparent;
    color: var(--gray-4);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .af-mobile-switcher__btn.is-active {
    background: var(--cream);
    border-color: rgba(221, 185, 103, 0.45);
    color: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(221, 185, 103, 0.08);
  }

  .af-workspace {
    grid-template-columns: 1fr;
  }

  .af-workspace__editor {
    min-width: 0;
  }

  .af-sidebar {
    position: fixed;
    top: var(--nav-h, 64px);
    left: 0;
    width: min(86vw, 19rem);
    height: calc(100dvh - var(--nav-h, 64px));
    z-index: 48;
    margin: 0;
    transform: translateX(-104%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  .af-shell[data-af-mobile-sections-open="true"] .af-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .af-sidebar__panel {
    height: 100%;
    padding: 0.75rem 0.75rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: none;
    background: var(--white);
    box-shadow: 12px 0 30px rgba(11, 37, 69, 0.1);
    overflow-y: auto;
  }

  .af-sidebar__head {
    display: flex;
  }

  .af-sidebar__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 0;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: auto;
  }

  .af-sidebar__group {
    flex-direction: column;
    gap: 0.15rem;
  }

  .af-sidebar__divider {
    width: auto;
    height: 1px;
    min-height: 0;
    align-self: stretch;
    margin: 0.35rem 0.35rem 0.1rem;
    flex: 0 0 auto;
    background: var(--border);
  }

  .af-sidebar__link {
    flex: 1 1 auto;
    gap: 0.4rem;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: none;
  }

  .af-sidebar__link.is-active {
    border-color: rgba(221, 185, 103, 0.55);
    background: var(--cream);
    box-shadow: none;
  }

  .af-sidebar__text {
    font-size: 0.75rem;
  }

  .af-sidebar-backdrop {
    position: fixed;
    inset: var(--nav-h, 64px) 0 0 0;
    z-index: 47;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(1px);
    cursor: default;
  }

  .af-shell[data-af-mobile-sections-open="true"] .af-sidebar-backdrop {
    display: block;
  }

  .af-shell[data-af-mobile-view="preview"] .af-mobile-sidebar-toggle,
  .af-shell[data-af-mobile-view="preview"] .af-sidebar {
    display: none;
  }

  .af-shell[data-af-mobile-view="preview"] .af-sidebar-backdrop {
    display: none !important;
  }

  .af-shell[data-af-mobile-view="preview"] .af-workspace__editor {
    display: none;
  }

  .af-shell[data-af-mobile-view="editor"] .af-workspace__preview {
    display: none;
  }

  .af-shell[data-af-mobile-view="preview"] .af-workspace__preview {
    display: block;
  }

  .af-workspace__preview {
    width: 100%;
    overflow-x: hidden;
  }

  .af-preview__device {
    width: min(100%, 18rem);
    margin-left: auto;
    margin-right: auto;
  }

  .af-savebar--preview {
    width: min(100%, 18rem);
  }

  .pc__bar,
  .pc__grids,
  .pc__months,
  .pc__month {
    max-width: 100%;
  }

  .pc__selinfo {
    min-width: 0;
  }

  .pc__selinfo-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .pc__controls {
    width: 100%;
  }

  .pc__price-field {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .pc__price-input {
    width: 100%;
    min-width: 0;
  }
}

.af-header {
  margin-bottom: 1.2rem;
  max-width: calc(100% - 340px - 2rem);
}

.af-header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
}

.af-header__side {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--gray-4);
  white-space: nowrap;
}

.af-header__side svg {
  width: 0.95rem;
  height: 0.95rem;
}

.af-header__side:last-child {
  justify-self: end;
}

.af-header__title {
  margin: 0;
  justify-self: center;
  font-size: clamp(1.6rem, 2.2vw, 2.45rem);
  line-height: 1;
  white-space: nowrap;
}

.af-header .sp-back {
  margin: 0;
  padding: 0;
  min-height: 0;
  line-height: 1;
  font-size: 0.72rem;
  color: var(--gray-4);
  white-space: nowrap;
  justify-self: start;
}

.af-header .sp-back:hover,
.af-header .sp-back:focus-visible,
.af-header__side:hover,
.af-header__side:focus-visible {
  color: var(--navy);
}

@media (max-width: 1200px) {
  .af-header {
    max-width: 100%;
  }
}

/* ══ Panel ═════════════════════════════════════════════════════════════════ */

.af-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-anchor: none;
}

.pc,
.pc-season,
.pc-dates,
.pc__bar,
.pc__calendar,
.pc-season__grid {
  overflow-anchor: none;
}

.af-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.af-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.af-panel__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.af-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.af-panel__sub {
  font-size: 0.8125rem;
  color: var(--gray-4);
  line-height: 1.5;
  max-width: 520px;
}

.af-panel__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.af-pricing {
  gap: 1rem;
}

.af-pricing-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.af-pricing-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfaf7, #ffffff);
}

.af-pricing-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.af-pricing-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.af-pricing-list {
  display: flex;
  flex-direction: column;
}

.af-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--border);
}

.af-pricing-row:first-child {
  border-top: 0;
}

.af-pricing-row--primary {
  background: #fcfbf7;
}

.af-pricing-row__meta {
  min-width: 0;
}

.af-pricing-row__label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.af-pricing-row__hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gray-4);
}

.af-pricing-row__field {
  display: flex;
  justify-content: flex-end;
}

.af-pricing-row__field--choice {
  align-items: center;
  position: relative;
}

.af-pricing-row__field .sp-input,
.af-pricing-row__field select,
.af-pricing-row__field input[type="number"] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.af-pricing-row__field .sp-input {
  font-size: 1rem;
  border-radius: 14px;
  min-height: 3rem;
}

.af-pricing-row__field .sp-input:focus {
  box-shadow: 0 0 0 3px rgba(221, 185, 103, 0.14);
}

.af-pricing-row__field--price .sp-input {
  font-size: 1.15rem;
  font-weight: 700;
}

.af-pricing-row__field--choice .sp-input {
  width: min(100%, 10rem);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding-right: 2.35rem;
}

.af-pricing-row__field--choice::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: -0.48rem;
  border-right: 2px solid var(--gray-4);
  border-bottom: 2px solid var(--gray-4);
  transform: rotate(45deg);
  pointer-events: none;
}

.af-pricing-row__field--choice:hover::after {
  border-color: var(--navy);
}

.af-pricing-row--slider {
  align-items: stretch;
}

.af-pricing-row--slider:not(.af-pricing-row--toggle) {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
}

.af-pricing-row--slider.af-pricing-row--toggle {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr) auto;
}

.af-pricing-row__lead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.af-pricing-row__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.af-pricing-row__icon svg {
  width: 1rem;
  height: 1rem;
}

.af-pricing-row__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 5.3rem);
  gap: 0.7rem;
  align-items: center;
}

.af-pricing-row__range input[type="range"] {
  width: 100%;
  accent-color: var(--teal, #0f9d72);
}

.af-pricing-row__manual {
  display: flex;
  justify-content: flex-end;
}

.af-pricing-row__manual .sp-input {
  width: 100%;
  min-width: 0;
  max-width: 6.25rem;
  font-size: 0.97rem;
  font-weight: 700;
  text-align: right;
  min-height: 2.7rem;
  padding-inline: 0.7rem;
}

.af-pricing-row--toggle {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) auto;
}

.af-pricing-row--toggle .af-pricing-row__togglecell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.af-pricing-row.is-disabled .af-pricing-row__manual .sp-input,
.af-pricing-row.is-disabled .af-pricing-row__range input[type="range"] {
  opacity: 0.55;
}

.af-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 1.75rem;
}

.af-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.af-switch span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.2s ease;
}

.af-switch span::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.18);
  transition: transform 0.2s ease;
}

.af-switch input:checked + span {
  background: #10b981;
}

.af-switch input:checked + span::after {
  transform: translateX(1.35rem);
}

.af-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.8;
}

.af-switch input:disabled + span::after {
  box-shadow: none;
}

.af-price-service-row.is-disabled {
  opacity: 0.72;
}

.af-pricing-row.is-disabled .sp-input {
  background: #f8fafc;
  color: var(--gray-4);
}

.af-price-service-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.af-price-service-row.is-dragging {
  opacity: 0.5;
}

.af-price-service-row.is-drop-target {
  border-color: rgba(15, 157, 114, 0.4);
  box-shadow: 0 0 0 3px rgba(15, 157, 114, 0.12);
}

.af-price-service-row + .af-price-service-row {
  margin-top: 0.7rem;
}

.af-price-service-row__handle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfbfb;
  color: var(--gray-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-price-service-row__handle svg {
  width: 1rem;
  height: 1rem;
}

.af-price-service-row__switch {
  margin-right: 0.2rem;
}

.af-price-service-row__fields {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(0, 1.8fr) minmax(120px, 0.55fr);
  gap: 0.75rem;
  align-items: end;
}

.af-price-service-row__field {
  min-width: 0;
}

.af-price-service-row__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-4);
}

.af-price-service-row__field .sp-input {
  border-radius: 14px;
}

.af-price-service-row__field--price .sp-input {
  text-align: right;
  font-weight: 700;
}

.af-price-service-row__remove {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  background: #fff5f5;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-price-service-row__remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

.af-price-service-row__remove:hover {
  background: #dc2626;
  color: #fff;
}

.af-price-services__empty {
  margin-top: 0.75rem;
}

/* ══ Form field primitives ═════════════════════════════════════════════════ */

.sp-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  box-sizing: border-box;
}

.sp-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.08);
}

.sp-input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

select.sp-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

textarea.sp-input {
  resize: vertical;
  min-height: 80px;
}

.af-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.af-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.af-label--sm {
  font-size: 0.75rem;
}

.af-sublabel {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-4);
}

.af-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-4);
  margin: 4px 0 0;
}

.af-required {
  color: var(--error);
  margin-left: 2px;
}

.af-hint-inline {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-4);
  margin-left: 4px;
}

.af-error {
  font-size: 0.78rem;
  color: var(--error);
}

.af-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--error);
}

.af-form-error--inline {
  margin-bottom: 0.5rem;
}

/* ══ Row grids ═════════════════════════════════════════════════════════════ */

.af-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.af-row--2 > * { flex: 1 1 calc(50% - 0.5rem); min-width: 160px; }
.af-row--3 > * { flex: 1 1 calc(33% - 0.625rem); min-width: 130px; }
.af-row--4 > * { flex: 1 1 calc(25% - 0.75rem); min-width: 110px; }

/* ══ Amenities ═════════════════════════════════════════════════════════════ */

.af-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.af-amenity-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  user-select: none;
}

.af-amenity-check:hover {
  border-color: var(--navy);
  background: var(--cream);
}

.af-amenity-check input[type="checkbox"] {
  accent-color: var(--navy);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.af-amenity-check input:checked ~ span {
  color: var(--navy);
  font-weight: 700;
}

/* ══ Image section ═════════════════════════════════════════════════════════ */

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.img-grid--summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.img-grid:empty {
  margin-bottom: 0;
}

.img-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-7);
  border: 2px solid var(--border);
  cursor: grab;
  transition: box-shadow var(--t), border-color var(--t), opacity var(--t);
}

.img-tile:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.img-tile.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.img-tile.drag-over {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 185, 103, 0.35);
}

.img-tile.is-removing {
  opacity: 0;
  pointer-events: none;
}

.img-tile--summary-hidden {
  display: none;
}

.img-tile--summary-overflow .img-tile__preview {
  filter: brightness(0.82) saturate(0.95);
}

.img-tile__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-tile__handle {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border-radius: var(--r-sm);
  padding: 3px 4px;
  cursor: grab;
  opacity: 0;
  transition: opacity var(--t);
  line-height: 0;
}

.img-tile:hover .img-tile__handle {
  opacity: 1;
}

.img-tile__handle svg {
  width: 14px;
  height: 14px;
}

.img-tile__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t), background var(--t);
  line-height: 0;
}

.img-tile__remove:hover {
  background: var(--error);
}

.img-tile:hover .img-tile__remove {
  opacity: 1;
}

.img-tile__remove svg {
  width: 0.75rem;
  height: 0.75rem;
}

.img-tile__cover-badge {
  position: absolute;
  bottom: 0.375rem;
  left: 0.375rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

.img-tile__more-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem;
  border: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.04), rgba(11, 37, 69, 0.45));
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.img-tile__more-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  background: rgba(11, 37, 69, 0.92);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.af-photo-gallery[hidden] {
  display: none;
}

.af-photo-gallery {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.af-photo-gallery__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(11, 37, 69, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.af-photo-gallery__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 74rem);
  max-height: min(90vh, 48rem);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(11, 37, 69, 0.28);
  overflow: hidden;
}

.af-photo-gallery__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.af-photo-gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.af-photo-gallery__sub {
  margin: 0.25rem 0 0;
  color: var(--gray-4);
  font-size: 0.84rem;
  line-height: 1.45;
}

.af-photo-gallery__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--gray-4);
}

.af-photo-gallery__close svg {
  width: 1rem;
  height: 1rem;
}

.af-photo-gallery__body {
  max-height: calc(min(90vh, 48rem) - 5.5rem);
  overflow: auto;
  padding: 1rem 1.1rem 1.15rem;
}

.af-photo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
}

.af-photo-gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--gray-7);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
}

.af-photo-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.af-photo-gallery__item-title {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  max-width: calc(100% - 5.2rem);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-full);
  background: rgba(11, 37, 69, 0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
}

.af-photo-gallery__remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(11, 37, 69, 0.12);
}

.af-photo-gallery__remove:hover {
  background: var(--error);
  color: var(--white);
}

.af-photo-gallery__remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Drop zone */
.img-dropzone {
  border: 2px dashed var(--gray-6);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  user-select: none;
}

.img-dropzone:hover,
.img-dropzone.is-dragover {
  border-color: var(--navy);
  background: var(--cream);
}

.img-dropzone__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: var(--gray-5);
}

.img-dropzone__icon svg {
  width: 100%;
  height: 100%;
}

.img-dropzone__text {
  font-size: 0.9rem;
  color: var(--gray-3);
  margin-bottom: 0.3rem;
}

.img-dropzone__link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.img-dropzone__hint {
  font-size: 0.78rem;
  color: var(--gray-5);
}

/* ══ Info items ════════════════════════════════════════════════════════════ */

.af-entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.af-empty-state {
  text-align: center;
  color: var(--gray-4);
  font-size: 0.875rem;
  padding: 1.5rem;
  border: 1.5px dashed var(--gray-6);
  border-radius: var(--r-md);
}

.af-entry-handle {
  flex-shrink: 0;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  cursor: grab;
  color: var(--gray-4);
  transition: color var(--t);
}

.af-entry-handle:active {
  cursor: grabbing;
}

.af-entry-handle svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.af-entry-handle:hover {
  color: var(--navy);
}

.af-sortable-ghost {
  opacity: 0.4;
  background: var(--cream) !important;
  border-style: dashed !important;
}

.af-info-entry {
  display: flex;
  align-items: flex-end;
  gap: 0.625rem;
  padding: 0.875rem;
  background: linear-gradient(180deg, var(--white), var(--gray-7));
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  flex-wrap: wrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}

.af-info-entry__fields {
  display: flex;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.af-info-entry__fields .af-field {
  flex: 1;
  min-width: 120px;
}

/* Icon upload slot */
.af-icon-slot {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  align-self: flex-end;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.af-icon-slot:hover {
  border-color: var(--navy);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.af-icon-slot.is-dragover {
  border-color: var(--gold);
  background: #fffbf0;
}

.af-icon-slot--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.af-icon-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-md) - 2px);
}

.af-icon-slot__placeholder {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-4);
  pointer-events: none;
}

.af-icon-slot--sm .af-icon-slot__placeholder {
  width: 1rem;
  height: 1rem;
}

.af-icon-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}

/* Remove button (for entries) */
.af-entry-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--gray-4);
  cursor: pointer;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: 2px;
  transition: color var(--t), background var(--t);
}

.af-entry-remove:hover {
  color: var(--error);
  background: #fef2f2;
}

.af-entry-remove svg {
  width: 0.875rem;
  height: 0.875rem;
}


/* ══ Distance entries ══════════════════════════════════════════════════════ */

.dist-presets {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.dist-presets__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-4);
  white-space: nowrap;
  padding-top: 0.45rem;
  flex-shrink: 0;
}

.dist-presets__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dist-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}

.dist-preset-chip:hover {
  border-color: var(--navy);
  background: var(--cream);
}

.dist-preset-chip--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}

.af-dist-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  background: linear-gradient(180deg, var(--white), var(--gray-7));
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  flex-wrap: wrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}

.af-dist-entry__tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-full);
  padding: 0.4rem 0.625rem 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1.4rem;
}

.af-dist-tag__icon {
  font-size: 1rem;
  line-height: 1;
}

.af-dist-tag__label {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-dist-tag__edit {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--r-sm);
  color: white;
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t);
}

.af-dist-tag__edit:hover {
  background: rgba(255,255,255,0.3);
}

.af-dist-entry__inputs {
  display: flex;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.af-dist-entry__inputs .af-field {
  min-width: 100px;
}

.af-dist-entry__inputs .sp-input {
  width: 100%;
  max-width: 140px;
}

.af-dist-tag-editor {
  width: 100%;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.af-dist-custom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.af-dist-custom__emoji {
  width: 60px;
  text-align: center;
}

.af-dist-custom__label {
  flex: 1;
  min-width: 120px;
}

/* ══ Save bar ══════════════════════════════════════════════════════════════ */

.af-savebar {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 50;
  pointer-events: none;
}

.af-savebar .sp-btn,
.af-savebar a {
  pointer-events: auto;
}

/* ══ Detail page ═══════════════════════════════════════════════════════════ */

.detail-gallery {
  position: relative;
  background: var(--black);
  max-height: 520px;
}

.detail-gallery__main {
  position: relative;
  overflow: hidden;
}

.detail-gallery__hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.detail-gallery__prev,
.detail-gallery__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
  z-index: 2;
}

.detail-gallery__prev { left: 0.875rem; }
.detail-gallery__next { right: 0.875rem; }

.detail-gallery__prev:hover,
.detail-gallery__next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.detail-gallery__prev svg,
.detail-gallery__next svg {
  width: 1.125rem;
  height: 1.125rem;
}

.detail-gallery__counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.875rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-full);
}

.detail-gallery__thumbs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: var(--black);
  scrollbar-width: thin;
}

.detail-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--t), border-color var(--t);
  padding: 0;
  background: none;
}

.detail-gallery__thumb:hover,
.detail-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

.detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-hero-placeholder {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Detail content */
.detail-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-3);
}

/* Info grid (Gut zu wissen) */
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
}

.detail-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: var(--r-md);
}

.detail-info-item__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.detail-info-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-item__icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--gray-4);
}

.detail-info-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-info-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-info-item__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* Distance list */
.detail-dist-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-dist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--gray-7);
  border-radius: var(--r-md);
}

.detail-dist-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-dist-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-dist-item__icon svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--gray-4);
}

.detail-dist-item__label {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

.detail-dist-item__distance {
  font-size: 0.8125rem;
  color: var(--gray-4);
  font-weight: 500;
  white-space: nowrap;
}

/* Rules */
.detail-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-rule:last-child {
  border-bottom: none;
}

.detail-rule__label {
  color: var(--gray-4);
  font-weight: 500;
}

/* Price box */
.sp-price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.sp-price-box__main {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sp-price-box__amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.sp-price-box__unit {
  color: var(--gray-4);
  font-size: 0.875rem;
}

.sp-price-box__rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.sp-price-box__rows li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray-3);
}

/* Amenities (detail) */
.sp-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-amenity {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  color: var(--navy);
}

/* Section title (detail) */
.sp-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.detail-sidebar {
  min-width: 0;
}

.detail-main {
  min-width: 0;
}

/* ══ Responsive ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    order: -1;
  }

  .sp-price-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .af-shell {
    padding: 1rem 1rem 5rem;
  }

  .af-mobile-switcher {
    top: calc(var(--nav-h, 64px) + 0.35rem);
    margin-bottom: 0.65rem;
  }

  .af-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .af-row--2 > *,
  .af-row--3 > *,
  .af-row--4 > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .af-row--4 > * {
    flex: 1 1 100%;
  }

  .af-panel__title,
  .af-sidebar__head-label,
  .af-mobile-switcher__btn,
  .af-preview__title,
  .pc__selinfo-title {
    overflow-wrap: anywhere;
  }

  .af-preview__device {
    max-width: 100%;
  }

  .img-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .af-savebar {
    border-radius: var(--r-md);
    bottom: 0.5rem;
  }

  .detail-gallery__hero {
    max-height: 300px;
  }

  .detail-page {
    padding: 1.5rem 1rem 3rem;
  }

  .detail-gallery__thumbs {
    display: none;
  }

  .af-pricing-row {
    grid-template-columns: 1fr;
  }

  .af-pricing-row__field {
    justify-content: stretch;
  }

  .af-pricing-row__field .sp-input,
  .af-pricing-row__field select,
  .af-pricing-row__field input[type="number"] {
    width: 100%;
  }

  .af-pricing-row__controls {
    grid-template-columns: 1fr minmax(82px, 4.8rem);
  }

  .af-pricing-row__manual {
    justify-content: stretch;
  }

  .af-pricing-row__manual .sp-input {
    width: 100%;
    max-width: 100%;
  }

  .af-currency-modal__grid {
    grid-template-columns: 1fr;
  }

  .af-pricing-row--toggle .af-pricing-row__togglecell {
    justify-content: flex-start;
  }

  .af-price-service-row {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .af-price-service-row__fields {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .af-price-service-row__remove {
    grid-column: 2;
    justify-self: end;
  }

  .pc-season,
  .pc-dates {
    padding: 0.9rem;
  }
}

/* ══ Price calendar (seasonal / per-night pricing) ═════════════════════════ */

.pc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Control bar: selection summary + price input + actions */
.pc__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.pc__selinfo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 12rem;
}

.pc__selinfo-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.pc__selinfo-sub {
  font-size: 0.8rem;
  color: var(--gray-4);
}

.pc__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pc__price-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pc__price-input {
  width: 9.5rem;
  padding-right: 3rem;
}

.pc__price-suffix {
  position: absolute;
  right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-4);
  pointer-events: none;
}

.pc__hint {
  margin: -0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.pc__hint--ok { color: #1f8b4c; }
.pc__hint--error { color: #c0392b; }

.pc-season,
.pc-dates {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.pc-season__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Calendar */
.pc__months { position: relative; }

.pc__grids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.pc__month-name {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.pc__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.pc__nav-group {
  display: flex;
  gap: 0.35rem;
}

.pc__nav {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pc__nav svg { width: 1rem; height: 1rem; }
.pc__nav--year svg { width: 0.85rem; height: 0.85rem; }
.pc__nav:disabled { opacity: 0.3; cursor: default; }
.pc__nav:not(:disabled):hover { border-color: var(--navy); }

.pc__weekdays,
.pc__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.pc__weekdays { margin-bottom: 0.35rem; }

.pc__weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-4);
  padding: 0.2rem 0;
}

.pc__day {
  appearance: none;
  border: none;
  background: transparent;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  line-height: 1.05;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  border-radius: var(--r-full);
  padding: 0;
}

.pc__day-num {
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.pc__day-price {
  font-size: 0.56rem;
  font-weight: 500;
  color: var(--gray-4);
  letter-spacing: -0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

button.pc__day:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

.pc__day.is-empty { visibility: hidden; cursor: default; }
.pc__day.is-today .pc__day-num { font-weight: 700; }
.pc__day.is-past { color: var(--gray-5); cursor: default; }

/* Custom-priced nights: a soft gold badge under the day number. */
.pc__day.is-custom .pc__day-price {
  color: var(--navy);
  font-weight: 700;
  background: var(--gold-lt);
  border-radius: var(--r-full);
  padding: 0.02rem 0.3rem;
}

/* Selected range — navy endpoints bridged by a cream band, like the booking
   picker. Here the range is inclusive, so the end day is a paid night too. */
.pc__day.in-range {
  background: var(--cream);
  border-radius: 0;
}

.pc__day.is-start { border-radius: var(--r-full) 0 0 var(--r-full); }
.pc__day.is-end { border-radius: 0 var(--r-full) var(--r-full) 0; }

.pc__day.is-start,
.pc__day.is-end {
  position: relative;
  isolation: isolate;
  color: var(--white);
  font-weight: 700;
}

.pc__day.is-start::before,
.pc__day.is-end::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: var(--r-full);
  z-index: 0;
}

/* A single-day selection is both start and end → one round chip. */
.pc__day.is-start.is-end { border-radius: var(--r-full); }

.pc__day.is-start .pc__day-price,
.pc__day.is-end .pc__day-price {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

/* Legend */
.pc__legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray-4);
}

.pc__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pc__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.pc__swatch--base { background: var(--white); }
.pc__swatch--season { background: var(--cream-dk); border-color: var(--cream-dk); }
.pc__swatch--custom { background: var(--gold-lt); border-color: var(--gold); }
.pc__swatch--sel { background: var(--navy); border-color: var(--navy); }

/* ══ Seasonal (whole-month) prices ═════════════════════════════════════════ */

/* Sub-section heads, shared by the season grid and the specific-dates block. */
.pc-season,
.pc-dates { display: flex; flex-direction: column; gap: 0.9rem; }

.pc-season__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.15rem;
}

.pc-season__sub {
  font-size: 0.8rem;
  color: var(--gray-4);
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.pc-season__grid {
  margin-top: 0.25rem;
}

.pc-season__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.65rem 0.75rem;
}

.pc-season__item { display: flex; flex-direction: column; gap: 0.3rem; }

.pc-season__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-3);
}

.pc-season__field { position: relative; display: flex; align-items: center; }
.pc-season__input { width: 100%; padding-right: 2.85rem; }

.pc-season__suffix {
  position: absolute;
  right: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-4);
  pointer-events: none;
}

/* Horizontal rule between the monthly grid and the single-date calendar. */
.pc__divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

/* Month-priced days: a soft cream badge, sitting visually between the plain
   base price and the gold custom-date badge. */
.pc__day.is-season .pc__day-price {
  color: var(--navy);
  font-weight: 600;
  background: var(--cream-dk);
  border-radius: var(--r-full);
  padding: 0.02rem 0.3rem;
}

/* Keep the season badge legible when the day is also part of the selection. */
.pc__day.is-season.is-start .pc__day-price,
.pc__day.is-season.is-end .pc__day-price {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .pc__grids { grid-template-columns: 1fr; gap: 1rem; }
  .pc__month:nth-child(2) { display: none; }
  .pc__controls { width: 100%; }
  .pc__price-input { flex: 1; width: auto; }
  .pc-season__grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-delete-modal {
    padding: 1rem;
  }

  .af-delete-modal__dialog {
    width: min(100%, 30rem);
    padding: 1.35rem 1.1rem 1.2rem;
    border-radius: 20px;
  }

  .af-delete-modal__actions {
    flex-direction: column;
  }

  .af-delete-modal__cancel,
  .af-delete-modal__confirm {
    width: 100%;
    min-width: 0;
  }

  .af-photo-gallery {
    padding: 0.75rem;
  }

  .af-photo-gallery__dialog {
    border-radius: 20px;
  }

  .af-photo-gallery__header {
    padding: 1rem 1rem 0.85rem;
  }

  .af-photo-gallery__body {
    padding: 0.9rem;
  }

  .af-photo-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
