/* ==============================
   Add Listing Page
   ============================== */

body {
    font-family: 'Ubuntu', sans-serif;
    background: #f3f3f3;
}

.cat-icon-svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    display: inline-block;
    flex-shrink: 0;
}

.cat-icon-svg-hero {
    width: 44px;
    height: 44px;
    display: inline-block;
    flex-shrink: 0;
}

.cat-icon-svg-mini {
    width: 14px;
    height: 14px;
    margin-bottom: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.cat-icon-svg-location {
    width: 20px;
    height: 22px;
    display: inline-block;
    flex-shrink: 0;
    filter: invert(40%) sepia(80%) saturate(300%) hue-rotate(90deg) brightness(85%) contrast(110%);
}

/* ==============================
   Hero
   ============================== */

.add-listing-hero {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.add-listing-hero-overlay {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-listing-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
}

.add-listing-notification-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-listing-notification-btn img {
    width: 22px;
}

/* ==============================
   Section / Form
   ============================== */

.add-listing-section {
    padding: 32px 0 60px;
}

.add-listing-form {
    max-width: 720px;
    margin: -40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ==============================
   Blocks
   ============================== */

.add-listing-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.add-listing-block-price-type {
    flex: 0 0 160px;
}

.add-listing-block-description {
    display: flex;
    flex-direction: column;
}

.add-listing-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-listing-heading {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #008000;
}

.add-listing-counter {
    font-size: 0.9rem;
    color: #666;
}

.add-listing-counter-row {
    display: flex;
    justify-content: flex-end;
}

.add-listing-counter-description {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 10;
    pointer-events: none;
}

/* ==============================
   Upload Box
   ============================== */

.add-listing-upload-box {
    min-height: 180px;
    max-height: 360px;
    margin-bottom: 10px;
    padding: 12px;
    border: 2px dashed #efc27c;
    border-radius: 20px;
    background: #f8f8f8;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.add-listing-upload-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 7px;
}

.add-listing-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.add-listing-image-grid::-webkit-scrollbar {
    width: 6px;
}

.add-listing-image-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.add-listing-image-card {
    position: relative;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
}

.add-listing-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-listing-image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-listing-image-remove-btn:hover {
    background: #d92d20;
}

.add-listing-image-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.add-listing-image-actions {
    display: flex;
    gap: 6px;
}

.add-listing-image-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

.add-listing-image-btn-cover {
    background: rgba(255, 255, 255, 0.95);
    color: #222222;
}

.add-listing-file-input {
    display: none;
}

.add-listing-image-order {
    min-width: 33px;
    height: 33px;
    padding: 0 10px;
    border-radius: 999px;
    background: #008000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-sizing: border-box;
}

.add-listing-image-card.is-cover .add-listing-image-order {
    width: 22px;
    height: 22px;
    background: #008000;
    color: #ffffff;
}

.add-listing-image-card.is-cover .add-listing-image-btn-cover {
    background: #f59e0b;
    color: #ffffff;
}

/* ==============================
   Inputs / Selects
   ============================== */

.add-listing-input-box,
.add-listing-select-box {
    min-height: 64px;
    padding: 0 16px;
    border: 2px solid #efc27c;
    border-radius: 20px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-listing-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-listing-input-icon img {
    width: 22px;
}

.add-listing-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    min-width: 0;
    text-indent: 0;
}

.add-listing-select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
}

.add-listing-select-arrow img {
    width: 16px;
    transition: transform 0.2s ease;
}

.custom-select-search-wrap {
    padding: 8px 8px 6px;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

.custom-select-search-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
}

#currency-options-list {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
}

.custom-option.is-muted {
    color: #777;
}

/* ==============================
   Inline Heading
   ============================== */

.add-listing-inline-heading-left {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* ==============================
   Info Boxes
   ============================== */

.add-listing-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.add-listing-info-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

.add-listing-info-btn img {
    width: 18px;
}

.add-listing-info-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    padding: 12px 14px;
    border: 1px solid rgba(58, 146, 11, 0.217);
    border-radius: 14px;
    background: #ffffff;
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    z-index: 30;
    display: none;
}

.add-listing-info-box.is-visible {
    display: block;
}

.add-listing-info-box::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==============================
   Custom Select
   ============================== */

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
}

.custom-options,
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.custom-select.open .custom-options,
.custom-select.open .custom-select-dropdown {
    display: block;
}

.custom-option-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 22px;
    object-fit: contain;
}

.custom-select-trigger-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.custom-option:hover {
    background: #f5f5f5;
}

.custom-option.selected {
    background: green;
    color: #fff;
}

.custom-select.open .add-listing-select-arrow img {
    transform: rotate(180deg);
}

/* ==============================
   Toggles
   ============================== */

.add-listing-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 0;
}

.add-listing-toggle-labels {
    max-width: 70%;
}

.add-listing-helper-text {
    margin: 0 5px;
    font-size: 0.9rem;
    color: #666;
}

.add-listing-toggle-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-listing-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.add-listing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.add-listing-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 50px;
    transition: 0.2s;
}

.add-listing-slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.add-listing-switch input:checked + .add-listing-slider {
    background: #39c75a;
}

.add-listing-switch input:checked + .add-listing-slider::before {
    transform: translateX(28px);
}

/* ==============================
   Textarea
   ============================== */

.add-listing-textarea-box {
    position: relative;
    min-height: 180px;
    max-height: 420px;
    border: 2px solid #efc27c;
    border-radius: 20px;
    background: #f8f8f8;
    overflow: hidden;
}

.add-listing-textarea {
    width: 100%;
    min-height: 180px;
    max-height: 420px;
    padding: 16px;
    padding-bottom: 38px;
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

/* ==============================
   Price / Options
   ============================== */

.price-option {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.price-option > .add-listing-block {
    flex: 1 1 220px;
    min-width: 0;
}

.add-listing-price-input {
    min-width: 22px;
}

/* ==============================
   Location
   ============================== */

.add-listing-location-box {
    width: 100%;
    min-height: 64px;
    padding: 0 16px;
    border: 2px solid #efc27c;
    border-radius: 20px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.add-listing-location-box:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.add-listing-location-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-listing-location-text {
    font-size: 1rem;
}

.add-listing-location-arrow img {
    width: 18px;
    transform: rotate(270deg);
}

/* ==============================
   Selected Locations
   ============================== */

.selected-locations-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.selected-location-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #efc27c;
    border-radius: 18px;
    background: #f8f8f8;
}

.selected-location-card-left {
    display: flex;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.selected-location-index {
    min-width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 999px;
    background: #008000;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-location-content {
    min-width: 0;
}

.selected-location-title {
    margin: 0 0 4px;
    font-size: 0.96rem;
    font-weight: 600;
    color: #2c2c2c;
    word-break: break-word;
}

.selected-location-meta {
    margin: 0;
    font-size: 0.86rem;
    color: #666;
    word-break: break-word;
}

.selected-location-remove {
    border: none;
    background: transparent;
    color: #d92d20;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    flex-shrink: 0;
}

.selected-location-remove:hover {
    opacity: 0.8;
}

/* ==============================
   Floating Map Modal
   ============================== */

.location-map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.location-map-modal.is-visible {
    display: block;
}

.location-map-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.location-map-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 760px);
    max-height: 90vh;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

.location-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #ececec;
}

.location-map-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
}

.location-map-close {
    border: none;
    background: transparent;
    color: #444;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.location-map-search-row {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f1f1;
}

.location-map-search-input {
    flex: 1;
    min-height: 48px;
    padding: 0 14px;
    border: 2px solid #efc27c;
    border-radius: 14px;
    background: #f8f8f8;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
}

.location-map-search-btn {
    min-width: 110px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: #008000;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.location-map-coordinates-input {
    min-width: 220px;
}

.floating-leaflet-map {
    width: 100%;
    height: 420px;
    min-height: 320px;
    background: #eaeaea;
    z-index: 1;
}

.location-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px 20px;
    border-top: 1px solid #f1f1f1;
}

.location-map-coordinates {
    flex: 1;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.4;
    word-break: break-word;
}

.location-map-coordinates.is-loading {
    opacity: 0.7;
}

.location-map-confirm-btn {
    min-width: 150px;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: #008000;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.map-note {
    font-size: 11px;
    color: #4c4c4c ;
}

.location-map-confirm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Leaflet fixes inside modal */
.leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
    z-index: 1;
}

/* ==============================
   Actions
   ============================== */

.add-listing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 25px;
}

.add-listing-action-btn {
    min-height: 56px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.add-listing-preview-btn {
    background: #e0e0e0;
    color: #333;
}

.add-listing-submit-btn {
    background: #008000;
    color: #ffffff;
}

/* ==============================
   Map Wrapper + Locate Button
   ============================== */

.floating-leaflet-map-wrapper {
    position: relative;
}

.locate-me-btn {
    position: absolute;
    bottom: 10%;
    right: 14px;
    z-index: 1000;

    width: 33px;
    height: 33px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
    cursor: pointer;
}

.locate-me-btn:hover {
    transform: scale(1.05);
}

.locate-me-btn:active {
    transform: scale(0.95);
}

.toast-container,
#toast-container {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 999999;
    width: min(92vw, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    pointer-events: auto;
}

/* rein */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* rausfliegen (NEU) */
.toast.fly-out {
    animation: toastFlyOut 0.8s ease forwards;
}


/* Preview Modal */

.listing-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.listing-preview-modal.is-visible {
  display: block;
}

.listing-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.listing-preview-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 430px);
  max-height: 88vh;
  transform: translate(-50%, -50%);
  background: #efeff4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.listing-preview-scroll {
  overflow-y: auto;
  max-height: 88vh;
  padding-bottom: 20px;
}

.listing-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
}

.listing-preview-hero {
  height: 150px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.25)),
              url('/images/default-preview-cover.jpg') center/cover no-repeat;
}

.listing-preview-hero-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
}

.listing-preview-card {
  margin: 18px;
  padding: 22px;
  background: #fff;
  border-radius: 24px;
}

.listing-preview-image-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.listing-preview-title {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 700;
}

.listing-preview-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.preview-price-type {
    font-size: 12px;
}

.preview-business-actions { display:flex; gap: 11px; justify-content: space-between; align-items: start;}
.preview-business-btn {color: #008000; ;}

.listing-type-switch {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;

  padding: 16px;
  border-radius: 18px;

  background: #f7f7f7;
}

.listing-type-label {
  font-size: 18px;
  font-weight: 600;

  color: #9b9b9b;
  transition: .2s ease;
}

.listing-type-label.active {
  color: #008000;
}

.private-label {
  text-align: right;
}

.business-label {
  text-align: left;
}

.listing-type-toggle input {
  display: none;
}

.listing-type-slider {
  position: relative;

  width: 54px;
  height: 30px;

  border-radius: 999px;
  background: #dddddd;

  display: block;
  cursor: pointer;
}

.listing-type-slider::after {
  content: "";

  position: absolute;
  top: 5px;
  left: 5px;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  background: #efc27c; /* orange dot */

  transition: .22s ease;
}

.listing-type-toggle input:checked + .listing-type-slider::after {
  transform: translateX(24px);
}

.listing-preview-condition {
  margin-left: auto;
  padding: 0 12px;
  min-height: 28px;
  min-width: 65px;

  border-radius: 999px;
  background: #eaf5e8;
  color: #138a10;

  font-weight: 700;
  font-size: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.listing-preview-available,
.listing-preview-card p {
  color: #7a7a7a;
  font-size: 15px;
}

.preview-location-item {
  padding: 8px 14px;
  border-radius: 12px;
  background: #f7f7f7;
  margin-top: 10px;
  font-weight: 600;
}

.listing-preview-image-slider {
  position: relative;
}

.listing-preview-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.listing-preview-image-nav.prev {
  left: 10px;
  justify-content: center;
}

.listing-preview-image-nav.next {
  right: 0px;
  justify-content: center;
}

.preview-detail-group {
    display: flex;
    flex-direction: row;
    gap: 22px;
    margin-top: 18px;
    
}

.preview-detail-label {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.preview-detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.preview-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-detail-tag {
  padding: 10px 14px;
  border-radius: 14px;
  background: #f3f3f3;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.preview-detail-tag.is-road {
  background: #f6ecdd;
}

.preview-detail-tag.is-mail {
  background: #eef3ff;
}

/* Animation */
@keyframes toastFlyOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0.95);
    }
}

.toast.success {
    background: #1a9c3d;
}

.toast.error {
    background: #ef9444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}


.business-category-limit-box {
    margin-top: -6px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.86);
    color: #14532d;
    font-size: 13px;
    line-height: 1.45;
}

.business-category-limit-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
}

.business-category-limit-box p {
    margin: 0 0 4px;
}

.business-category-limit-box p:last-child {
    margin-bottom: 0;
}

.business-category-limit-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #15803d;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================
   ADD LISTING SEO CONTENT
========================= */

.add-listing-seo-content {
    width: min(980px, calc(100% - 24px));
    margin: 30px auto 40px; 
    padding: 24px;
    border-radius: 28px;
    background: #f7faf7;
    border: 1px solid rgba(25, 42, 31, 0.10);
}

.add-listing-seo-inner {
    width: 100%;
}

.add-listing-seo-head {
    max-width: 760px;
}

.add-listing-seo-kicker {
    margin: 0 0 6px;
    color: #038120;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.add-listing-seo-content h2 {
    margin: 0;
    color: #17221b;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 750;
    text-align: left;
    text-shadow: none;
}

.add-listing-seo-head > p:last-child {
    margin: 10px 0 0;
    color: #5f6b63;
    font-size: 14.5px;
    line-height: 1.6;
}

.add-listing-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.add-listing-seo-card {
    padding: 17px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(25, 42, 31, 0.08);
}

.add-listing-seo-card img {
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(1740%) hue-rotate(117deg) brightness(91%) contrast(98%);
}

.add-listing-seo-card h3 {
    margin: 0 0 6px;
    color: #17221b;
    font-size: 15.5px;
    line-height: 1.25;
    font-weight: 750;
}

.add-listing-seo-card p {
    margin: 0;
    color: #5f6b63;
    font-size: 13.5px;
    line-height: 1.45;
}

/* ==============================
   Responsive
   ============================== */

   @media (max-width: 760px) {
    .add-listing-seo-content {
        margin-top: 22px;
        padding: 18px;
        border-radius: 22px;
    }

    .add-listing-seo-content h2 {
        font-size: 20px;
    }

    .add-listing-seo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .add-listing-seo-card {
        padding: 15px;
    }
}

@media (max-width: 640px) {

    .listing-type-label {
     font-size: 16px;
    }
    .add-listing-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .add-listing-image-preview,
    .add-listing-image-card {
        min-height: 145px;
        height: 145px;
    }

    .add-listing-info-box {
        width: 210px;
        right: -8px;
    }

    .add-listing-actions {
        grid-template-columns: 1fr;
    }

    .add-listing-page-title {
        font-size: 1.6rem;
    }

    .location-map-panel {
        width: calc(100vw - 20px);
        max-height: 92vh;
        border-radius: 20px;
    }

    .location-map-search-row {
        flex-direction: column;
    }

    .location-map-search-btn,
    .location-map-confirm-btn {
        width: 100%;
    }

    .location-map-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .floating-leaflet-map {
        height: 360px;
        min-height: 280px;
    }

    .location-map-search-row {
        flex-direction: column;
    }

    .location-map-search-input,
    .location-map-search-btn {
        width: 100%;
    }
}

.listing-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.listing-success-modal.is-visible {
    display: flex;
}

.listing-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.25);
    backdrop-filter: blur(5px);
}

.listing-success-panel {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    animation: successPanelIn 0.32s ease-out;
}

.listing-success-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: successIconPop 1.5s cubic-bezier(.2, 1.4, .4, 1);
}

.listing-success-icon img {
    width: 80px;
    height: 80px;
}

.listing-success-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #138a10;
}

.listing-success-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.listing-success-subtext {
    margin: 10px 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #5f6673;
}

.listing-success-hint {
    margin: 16px 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f4f7fb;
    font-size: 13px;
    line-height: 1.35;
    color: #4d5562;
}

.listing-success-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.listing-success-btn {
    flex: 1;
    min-height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.listing-success-btn.primary {
    background: #111827;
    color: #fff;
}

.listing-success-btn.secondary {
    background: #eef2f7;
    color: #111827;
}

@keyframes successPanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.76);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successIconPop {
    0% {
        transform: scale(0.35);
        opacity: 0;
    }

    70% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.listing-preview-panel {
    overflow: hidden;
}

.listing-preview-scroll {
    overflow-y: auto;
    border-radius: inherit;
    scrollbar-width: none;
}

.listing-preview-scroll::-webkit-scrollbar {
    display: none;
}   

