// Global
.oum-getting-started-notice {
  border-left-color: #1d8cb9;

  // Container for icon and content
  .oum-getting-started-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 11px 0;
  }

  // Icon wrapper for positioning badge
  .oum-getting-started-icon-wrapper {
    position: relative;
    flex-shrink: 0;
  }

  // Plugin icon styling
  .oum-getting-started-icon {
    width: 75px;
    height: 75px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
  }

  // Text content wrapper
  .oum-getting-started-text {
    flex: 1;
    min-width: 0; // Allows text to shrink properly
  }

  // Heading styling
  h3 {
    margin-top: 2px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.7;
  }

  // Ordered list styling
  ol {
    margin: 0;
    padding-left: 15px;
    
    li {
      margin-bottom: 6px;
      line-height: 2.4;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  // Shortcode input styling
  input.shortcode-display {
    padding: 6px 7px;
    background: #f3f3f3 !important;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    line-height: 1;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
  }

  // Responsive design for smaller screens
  @media (max-width: 782px) {
    .oum-getting-started-content {
      flex-direction: column;
      gap: 15px;
    }

    .oum-getting-started-icon-wrapper {
      align-self: flex-start;
    }

    .oum-getting-started-icon {
      width: 48px;
      height: 48px;
    }

    .oum-badge {
      font-size: 9px;
      padding: 2px 6px;
      top: -4px;
      right: -4px;
    }
  }
}

// CPT Page
.post-php.post-type-oum-location,
.post-new-php.post-type-oum-location {
  #location_customfields .inside {
    .form-table {
      > tbody > tr {
        margin-bottom: 20px;
        border-bottom: 1px solid #E8E8EB;

        > th, > td {
          padding: 20px 10px;
        }

        &:last-child {
          border-bottom: none;
        }
      }
    }
  }
  
  .oum_custom_field_description {
    font-style: italic;
    font-size: 14px;
    opacity: 0.8;
    padding: 8px;
  }

  .geo-coordinates-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    .map-wrap {
      position: relative;
      width: 520px;
      aspect-ratio: 1.77;
  
      #mapGetLocation {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 1px solid #888;
        border-radius: 2px;

        .leaflet-control-attribution {
          display: none;
        }

        .leaflet-control-geosearch {
          &.leaflet-geosearch-bar {
            form {
              background-image: url(images/ico_search_address_2.png);
              background-position: right 1px;
              background-repeat: no-repeat;
              background-size: 30px;
              background-color: #fff;
  
              input[type=text] {
                width: calc(100% - 35px);
                padding: 9px 13px 9px 0;
                min-width: unset;
                min-height: unset;
                border: none !important;
                box-shadow: none !important;
                margin: 0 !important;
                outline: none !important;
                font-size: 14px;

                @media screen and (max-width: 768px) {
                  font-size: 16px;
                }
              }
    
              button.reset {
                right: 25px;
                background-color: #fff;
                color: black;
                margin: 0;
                padding: 0 8px;
                border: none;
                box-shadow: none;
                margin: 0;
                outline: none;
                font-size: 14px;
                opacity: 0.5;

                &:hover {
                  opacity: 1;
                }
              }
            }
          }
        }

        a {
          text-decoration: none !important;
          padding: 0;
          margin: 0;
        }

        .leaflet-tile-pane img.leaflet-tile {
          box-shadow: none;
          padding: 0;
          margin: 0;
          border: none;
          border-radius: unset;
        }

        &.map-style_Custom1 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: saturate(3);
          }
          // label tiles
        }
  
        &.map-style_Custom2 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(0) saturate(28) hue-rotate(-53deg);
          }
  
          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }
  
        &.map-style_Custom3 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(1) saturate(100) brightness(1) hue-rotate(-300deg);
          }
  
          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }

        .leaflet-control-locate-location-arrow {
          mask-image: none;
          background-image: url(images/ico_mylocation.svg);
          background-color: transparent;
          background-size: contain;
          background-position: center center;
          background-repeat: no-repeat;
        }
      }
    }

    .input-wrap {
      width: 330px;

      .geo-coordinates-hint {
        box-sizing: border-box;
        margin-bottom: 30px;

        div.hint {
          font-size: 20px;
          margin-bottom: 20px;
        }

        .latlng-wrap {
          >div:not(.hint) {
            display: flex;
            gap: 15px;

            >div {
              width: 100px;
            }
          }
        }
      }
    }

    @media (max-width: 768px) {
      flex-direction: column;

      .map-wrap,
      .input-wrap {
        width: 100%;
      }
    }
  }

  #oum_location_image_preview {
    .image-preview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 10px;
      margin: 10px 0;
      width: 100%;
      min-height: 50px;
      padding: 10px;
      border: 2px dashed #ddd;
      border-radius: 4px;
      position: relative;
      
      &.dragover {
        background: #f5f5f5;
        border-color: #999;
      }
      
      &:empty {
        display: none;
        margin: 0;
      }
      
      .image-preview-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 4px;
        overflow: hidden;
        cursor: grab;
        border: 2px solid #ddd;
        background: #fff;
        will-change: transform;
        user-select: none;
        transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
        
        &.dragging {
          cursor: grabbing;
          background: #fff;
          border-color: #e82c71;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
          opacity: 0.9;
          transform: scale(1.05) rotate(1deg);
          z-index: 1000;
        }
        
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
          pointer-events: none;
        }
        
        .remove-image {
          position: absolute;
          top: 5px;
          right: 5px;
          width: 20px;
          height: 20px;
          background: rgba(255, 255, 255, 0.8);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          font-size: 14px;
          line-height: 1;
          color: #666;
          transition: all 0.2s ease;
          z-index: 2;
          
          &:hover {
            background: #fff;
            color: #000;
          }
        }

        .drag-handle {
          position: absolute;
          bottom: 5px;
          right: 5px;
          width: 20px;
          height: 20px;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: grab;
          font-size: 14px;
          line-height: 1;
          color: rgba(255, 255, 255, 0.8);
          text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
          z-index: 2;
        }
      }
    }

    .image-preview-placeholder {
      border: 2px dashed #e82c71;
      border-radius: 4px;
      background: rgba(224, 42, 175, 0.05);
      transition: all 0.15s ease-in-out;
    }
  }

  #oum_location_video_preview {
    .remove-upload {
      display: none;
    }

    &.has-video {
      width: 500px;
      max-width: 100%;
      position: relative;

      iframe {
        position: relative;
        width: 100%;
      }

      .remove-upload {
        display: block;
        position: absolute;
        z-index: 10;
        top: 10px;
        right: -30px;
        cursor: pointer;
        opacity: 0.8;
        width: 20px;
        height: 20px;
        border-radius: 100px;
        line-height: 18px;
        text-align: center;
        background: indianred;
        color: #fff;
        font-family: sans-serif;
        font-size: 17px;

        &:hover {
          opacity: 1;
        }
      }
    }
  }

  #oum_location_audio_preview {
    .remove-upload {
      display: none;
    }

    &.has-audio {
      width: 400px;
      max-width: 100%;
      margin-top: 15px;
      margin-left: 3px;
      position: relative;

      .remove-upload {
        display: block;
        position: absolute;
        z-index: 10;
        top: 10px;
        right: -30px;
        cursor: pointer;
        opacity: 0.8;
        width: 20px;
        height: 20px;
        border-radius: 100px;
        line-height: 18px;
        text-align: center;
        background: indianred;
        color: #fff;
        font-family: sans-serif;
        font-size: 17px;

        &:hover {
          opacity: 1;
        }
      }
    }
  }

  input.oum-switch[type="checkbox"] {
    position: relative;
    left: 0;
    top: 0;
    z-index: 0;
    appearance: none;
    visibility: hidden;

    + label {
      position: relative;
      display: block;
      cursor: pointer;
      font-family: sans-serif;
      font-size: 14px;
      line-height: 23px;
      padding-left: 50px;
      position: relative;
      margin-top: -18px;

      &::before {
        box-sizing: border-box;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        border: 2px solid #ddd;
        background-color: #eee;
        content: "";
        margin-right: 15px;
        transition: background-color 0.5s linear;
        z-index: 5;
        position: absolute;
        left: 0px;
        top: 1px;
      }

      &::after {
        box-sizing: border-box;
        width: 16px;
        height: 16px;
        border-radius: 30px;
        background-color: #fff;
        content: "";
        transition: margin 0.1s linear;
        box-shadow: 0px 0px 5px #aaa;
        position: absolute;
        left: 2px;
        top: 3px;
        z-index: 10;
      }
    }

    &:checked + label::before {
      background-color: #e82c71;
    }

    &:checked + label::after {
      margin: 0 0 0 20px;
    }
  }

  .marker_icons {
    display: flex;
    flex-wrap: wrap;

    label {
      width: 25%;
      overflow: hidden;
      border: 4px solid lightgrey;
      margin: 5px;
      position: relative;

      input {
        display: none;
      }

      &.checked,
      &:not(.pro-only):hover {
        border-color: #e82c71;
      }

      .marker_icon_preview {
        height: 40px;
        margin: 5px;
        background-position: center center;
        background-size: contain;
        background-repeat: no-repeat;

        &[data-style="default"] {
          background-image: url('../src/leaflet/images/marker-icon_default-2x.png');
        }
    
        &[data-style="custom1"] {
          background-image: url('../src/leaflet/images/marker-icon_custom1-2x.png');
        }

        &[data-style="custom2"] {
          background-image: url('../src/leaflet/images/marker-icon_custom2-2x.png');
        }

        &[data-style="custom3"] {
          background-image: url('../src/leaflet/images/marker-icon_custom3-2x.png');
        }

        &[data-style="custom4"] {
          background-image: url('../src/leaflet/images/marker-icon_custom4-2x.png');
        }

        &[data-style="custom5"] {
          background-image: url('../src/leaflet/images/marker-icon_custom5-2x.png');
        }

        &[data-style="custom6"] {
          background-image: url('../src/leaflet/images/marker-icon_custom6-2x.png');
        }

        &[data-style="custom7"] {
          background-image: url('../src/leaflet/images/marker-icon_custom7-2x.png');
        }

        &[data-style="custom8"] {
          background-image: url('../src/leaflet/images/marker-icon_custom8-2x.png');
        }

        &[data-style="custom9"] {
          background-image: url('../src/leaflet/images/marker-icon_custom9-2x.png');
        }

        &[data-style="custom10"] {
          background-image: url('../src/leaflet/images/marker-icon_custom10-2x.png');
        }

        &[data-style="user1"] {
          background-image: url('../src/leaflet/images/marker-icon_user1-2x.png');
        }
      }

      .name {
        text-align: center;
        padding: 0 5px 5px;
      }
    }
  }
}

// Taxonomy Pages: Types
.taxonomy-oum-type {
  .marker_icons {
    display: flex;
    flex-wrap: wrap;

    label {
      width: 50px;
      height: 82px;
      overflow: hidden;
      border: 4px solid white;
      margin: 5px;
      position: relative;

      input {
        display: none;
      }

      &.pro-only {
        cursor: default;
        overflow: visible;

        &:before {
          content: 'PRO';
          display: inline-block;
          position: absolute;
          background: #dc3232;
          color: white;
          right: 0;
          top: 0;
          font-size: 11px;
          text-align: center;
          padding: 0px 4px;
        }

        .oum-gopro-text {
          position: absolute;
          top: 15px;
          right: -130px;
          width: 115px;
        }
      }

      &.pro:before {
        content: 'PRO';
        display: inline-block;
        position: absolute;
        background: #dc3232;
        color: white;
        right: 0;
        top: 0;
        font-size: 11px;
        text-align: center;
        padding: 0px 4px;
      }

      &.checked,
      &:not(.pro-only):hover {
        border-color: #e82c71;
      }

      .marker_icon_preview {
        width: 50px;
        height: 82px;
        background-position: center center;
        background-size: 50%;
        background-repeat: no-repeat;

        &[data-style="default"] {
          background-image: url('../src/leaflet/images/marker-icon_default-2x.png');
        }
    
        &[data-style="custom1"] {
          background-image: url('../src/leaflet/images/marker-icon_custom1-2x.png');
        }

        &[data-style="custom2"] {
          background-image: url('../src/leaflet/images/marker-icon_custom2-2x.png');
        }

        &[data-style="custom3"] {
          background-image: url('../src/leaflet/images/marker-icon_custom3-2x.png');
        }

        &[data-style="custom4"] {
          background-image: url('../src/leaflet/images/marker-icon_custom4-2x.png');
        }

        &[data-style="custom5"] {
          background-image: url('../src/leaflet/images/marker-icon_custom5-2x.png');
        }

        &[data-style="custom6"] {
          background-image: url('../src/leaflet/images/marker-icon_custom6-2x.png');
        }

        &[data-style="custom7"] {
          background-image: url('../src/leaflet/images/marker-icon_custom7-2x.png');
        }

        &[data-style="custom8"] {
          background-image: url('../src/leaflet/images/marker-icon_custom8-2x.png');
        }

        &[data-style="custom9"] {
          background-image: url('../src/leaflet/images/marker-icon_custom9-2x.png');
        }

        &[data-style="custom10"] {
          background-image: url('../src/leaflet/images/marker-icon_custom10-2x.png');
        }

        &[data-style="user1"] {
          background-image: url('../src/leaflet/images/marker-icon_user1-2x.png');
        }
      }

      &.label_marker_user_icon {
        width: 170px;

        .icon_upload {
          position: absolute;
          width: 115px;
          right: 3px;
          top: 62%;
          transform: translateY(-50%);

          .button {
            cursor: pointer;
            line-height: 1.5;
            padding: 5px;
            text-align: center;
            white-space: pre-wrap;
          }

          .description {
            font-style: italic;
            font-size: 11px;
            opacity: 0.8;
          }
        }
      }
    }
  }
}

// Taxonomy Pages: Regions
.taxonomy-oum-region {

  .term-description-wrap,
  .term-slug-wrap {
    display: none;
  }

  .geo-coordinates-wrap {
    .map-wrap {
      position: relative;
      width: 520px;
      aspect-ratio: 1.77;

      #mapGetRegion {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        .leaflet-control-attribution {
          display: none;
        }

        .leaflet-control-geosearch {
          &.leaflet-geosearch-bar {
            form {
              background-image: url(images/ico_search_address_2.png);
              background-position: right 1px;
              background-repeat: no-repeat;
              background-size: 30px;
              background-color: #fff;
  
              input[type=text] {
                width: calc(100% - 35px);
                padding: 9px 13px 9px 0;
                min-width: unset;
                min-height: unset;
                border: none !important;
                box-shadow: none !important;
                margin: 0 !important;
                outline: none !important;
                font-size: 14px;

                @media screen and (max-width: 768px) {
                  font-size: 16px;
                }
              }
    
              button.reset {
                right: 25px;
                background-color: #fff;
                color: black;
                margin: 0;
                padding: 0 8px;
                border: none;
                box-shadow: none;
                margin: 0;
                outline: none;
                font-size: 14px;
                opacity: 0.5;

                &:hover {
                  opacity: 1;
                }
              }
            }
          }
        }

        a {
          text-decoration: none !important;
          padding: 0;
          margin: 0;
        }

        .leaflet-tile-pane img.leaflet-tile {
          box-shadow: none;
          padding: 0;
          margin: 0;
          border: none;
          border-radius: unset;
        }

        input.glass {
          box-shadow: none !important;
          border: none !important;
        }

        &.map-style_Custom1 {

          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: saturate(3);
          }

          // label tiles
        }

        &.map-style_Custom2 {

          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(0) saturate(28) hue-rotate(-53deg);
          }

          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }

        &.map-style_Custom3 {

          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(1) saturate(100) brightness(1) hue-rotate(-300deg);
          }

          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }
      }
    }

    .input-wrap {
      .latlng-wrap {
        display: flex;
        justify-content: space-between;
        padding-top: 1rem;

        >div {
          input {
            width: 100%;
          }

          &.zoom-wrap {
            width: 100px;
          }
        }
      }

      .geo-coordinates-hint {
        box-sizing: border-box;
        padding: 15px;
        border: 1px solid lightgrey;
        margin-top: 30px;
        margin-bottom: 30px;
        background-color: floralwhite;
      }
    }

    @media (max-width: 768px) {
      flex-direction: column;

      .map-wrap,
      .input-wrap {
        width: 100%;
      }

      .input-wrap {
        padding: 0;
      }
    }
  }
}

// Settings Page
.oum-location_page_open-user-map-settings,
.toplevel_page_open-user-map {

  &.oum-settings-wizard {
    background: #fff;

    #adminmenu li#menu-settings a::after {
      border-right-color: rgb(109,189,230);
    }

    #wpwrap {
      height: 100%;
  
      #wpbody {
        height: 100%;
      }
    }

    .oum-wizard {
      position: absolute;
      z-index: 999;
      top: 0;
      right: 0;
      bottom: 0;
      left: -20px;
      padding: 0;
      background: #fff;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
  
      >* {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 9%;
        box-sizing: border-box;
      }

      .oum-inline-plus {
        display: inline-block;
        background: #e82c71;
        color: #fff;
        border-radius: 15px;
        width: 16px;
        height: 16px;
        line-height: 13px;
        text-align: center;
        font-size: 17px;
      }
  
      .hero {
        background: url(images/block-bg.jpg) no-repeat center #26aee7;
        background-size: cover;
        color: white;
        width: 100%;
  
        .logo {
          background: url(images/icon-256x256.png) no-repeat top left transparent;
          background-size: 50px;
          width: 330px;
          height: 50px;
          margin-bottom: 30px;
          padding-left: 60px;
          position: absolute;
          top: 50px;
          font-size: 24px;
          font-weight: bold;
          line-height: 50px;
          letter-spacing: -1px;
        }
  
        ul.steps {
          display: flex;
          gap: 15px;
          position: absolute;
          top: 85vh;
          left: 22%;
  
          li {
            display: block;
            border: 2px solid #fff;
            border-radius: 100px;
            width: 8px;
            height: 8px;
            background: none;
  
            &.done {
              background: #fff;
            }
          }
        }
  
        .overline {
          font-weight: bold;
          color: #fff;
          text-transform: uppercase;
          letter-spacing: 1px;
          font-size: 22px;
          opacity: 0.7;
          margin-bottom: 30px;
        }
  
        h1 {
          color: #fff;
          font-size: 70px;
          font-weight: bold;
          letter-spacing: 4px;
          line-height: 1;
          margin: 0;
        }
      }
  
      .step-content {
        width: 100%;
        max-width: 900px;
        margin: 0;

        .intro {
          margin-bottom: 30px;
          text-align: center;
        }

        .map-types {
          display: flex;
          justify-content: space-between;
          gap: 30px;
          margin-bottom: 30px;
      
          .option {
            flex-basis: 300px;
      
            label {
              cursor: pointer;
              display: block;
              height: calc(100% - 8px);
              position: relative;
              padding: 0;
              background: #fff;
              border: 4px solid #f0f0f1;
      
              .map-type-preview {
                background-repeat: no-repeat;
                background-size: cover;
                background-position: top right;
                aspect-ratio: 2;
        
                &[data-type="interactive"] {
                  background-image: url(images/map_type_interactive_2.png);
                }
      
                &[data-type="simple"] {
                  background-image: url(images/map_type_simple.jpg);
                }
              }
      
              .label-text {
                padding: 23px 30px 20px 56px;
                position: relative;
      
                h2 {
                  margin-top: 0;
                  margin-bottom: 6px;
                }

                p {
                  margin: 0 0 10px 0;
                }

                ul {
                  margin: 0 0 10px 18px;
                  list-style: disc;
                }

                li {
                  margin-bottom: 6px;
                }

                p.description {
                  margin: 8px 0 0;
                  font-size: 12px;
                  color: #666;
                  font-style: normal;
                }
      
                input[type=radio] {
                  position: absolute;
                  left: 25px;
                  top: 29px;
                }
              }
      
      
              &:has(input[type=radio]:checked) {
                border-color: #e82c71;
                opacity: 1;
              }
      
              &:has(input[type=radio]:not(:checked)) {
                opacity: 0.6;
      
                &:hover {
                  border-color: #e82c71;
                  opacity: 1;
                }
              }
            }
          }
        }

        .next-steps {
          margin-bottom: 30px;

          li {
            margin-bottom: 20px;

            input.shortcode-display {
              background: #f3f3f3 !important;
            }
          }
        }
  
        .button-primary {
          font-size: 16px;
          height: 49px;
          line-height: 49px;
          padding: 0 20px !important;
        }
      }
    }
  }

  &:not(.oum-settings-wizard) {
    .oum-wizard {
      .hero {
        display: none;
      }
    }
  }

  .new-feature {
    display: inline-block;
    background: #50aa96;
    color: white;
    padding: 0px 4px;
    font-size: 12px;
  }

  .oum-nav-tab-wrapper {
    .nav-tab {
      outline: none;
      box-shadow: none;
    }
  }

  .oum-tab-content {
    .oum-tab-pane {
      display: none;
      padding: 1rem;

      &.active {
        display: block;
      }
    }
  }

  .oum_support_hint {
    opacity: 0.7;
    margin-left: 5px;
  }

  .form-table th {
    width: 230px;
  }

  /* Custom fields wrapper table keeps default column widths */
  .oum_custom_fields_wrapper table th {
    width: auto;
  }

  .form-table td {
    vertical-align: top;
    padding-bottom: 60px;

    &.top-padding-20 {
      padding-top: 20px;

      ol {
        margin-top: 0;
        margin-left: 20px;
      }
    }
  }

  .oum_2cols {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .oum_3cols {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  code.block {
    white-space: pre-line;
    display: inherit;
    padding: 15px;
  }

  input.shortcode-display {
    padding: 6px 7px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    line-height: 1;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
    unicode-bidi: embed;
  }

  textarea.code-display {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    line-height: 1;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
    unicode-bidi: embed;
  }

  .oum-code-snippet {
    position: relative;
    margin: 25px 0 15px;
    width: 100%;
  
    .oum-code-label {
      position: absolute;
      top: -24px;
      left: 0;
      display: inline-block;
      padding: 5px 12px;
      background: #fff;
      border: 1px solid #e5e5e5;
      border-bottom: none;
      border-radius: 6px 6px 0 0;
      font-size: 11px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #e82c71;
    }
  
    textarea.code-display {
      margin-top: 0;
      border-top-left-radius: 0;
    }
  }

  .description {
    font-style: italic;
    font-weight: normal;

    ul {
      list-style: disc;
      padding: 0 15px;
    }
  }

  .map-types {
    display: flex;
    gap: 30px;

    .option {
      width: 300px;

      label {
        display: block;
        height: 100%;
        position: relative;
        padding: 0;
        background: #fff;
        border: 4px solid white;

        .map-type-preview {
          background-repeat: no-repeat;
          background-size: cover;
          background-position: top right;
          aspect-ratio: 2;
  
          &[data-type="interactive"] {
            background-image: url(images/map_type_interactive_2.png);
          }

          &[data-type="simple"] {
            background-image: url(images/map_type_simple.jpg);
          }
        }

        .label-text {
          padding: 23px 30px 20px 56px;
          position: relative;

          h2 {
            margin-top: 0;
            margin-bottom: 6px;
          }

          input[type=radio] {
            position: absolute;
            left: 25px;
            top: 31px;
          }

          #plus_button_label {
            margin-top: 1rem;
            margin-bottom: 1rem;

            input {
              max-width: 100%;
            }
          }
        }


        &:has(input[type=radio]:checked) {
          border-color: #e82c71;
          opacity: 1;
        }

        &:has(input[type=radio]:not(:checked)) {
          opacity: 0.6;

          &:hover {
            border-color: #e82c71;
            opacity: 1;
          }
        }
      }
    }
  }

  #oum_enable_add_location {
    display: none;
  }

  /* Community Contributions card (General tab) */
  .oum-community-contributions-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
    max-width: 1070px;
    padding: 24px;
    background: #fff;
    outline: 1px solid #d0d7de;
    border-radius: 6px;

    .oum-community-contributions-content {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .oum-community-contributions-title {
      margin: 0 0 8px 0;
      font-size: 18px;
      font-weight: 600;
      color: #1d2327;
    }

    .oum-community-contributions-intro {
      margin: 0 0 16px 0;
      font-size: 14px;
      line-height: 1.5;
      color: #50575e;
    }

    /* Toggle uses existing input.oum-switch[type=checkbox] + label styles */
    .oum-community-contributions-toggle-wrap {
      margin-top: 12px;
      margin-bottom: 12px;
    }

    .community-enabled-tip,
    .community-disabled-tip {
      margin: 0 0 40px 0;
    }

    .oum-community-contributions-advanced {
      margin: auto 0 0 0;
      font-size: 13px;
      color: #646970;
      border-top: 1px solid #dee4ea;
      padding-top: 10px;
    }

    .oum-community-contributions-teaser {
      flex-shrink: 0;
      width: 350px;

      .oum-community-contributions-teaser-img {
        display: block;
        width: 100%;
        height: auto;
        border: 4px solid white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      }
    }
  }

  /* Location Submissions tab */
  #oum_plus_button_label {
    max-width: 100%;
  }

  .community-tab-disabled-message {
    margin: 20px 0;
    max-width: 700px;
    padding: 12px 14px;
    border-left: 4px solid #dba617;
    background: #fff8e5;
  }

  .community-quick-links {
    margin: 10px 0 18px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    background: #fff;
    max-width: 860px;
    border-radius: 4px;

    strong {
      margin-right: 8px;
    }

    a {
      margin-right: 10px;
      text-decoration: none;
      display: inline-block;
      padding: 3px 8px;
      border-radius: 999px;

      &:hover {
        background: #f6f7f7;
      }

      &:focus,
      &:active,
      &:focus-visible {
        outline: none;
        background: transparent;
        box-shadow: none;
      }
    }
  }

  .community-group-heading {
    td {
      padding: 0 !important;
      border-top: 0 !important;
    }

    .community-group-heading-inner {
      padding: 20px;
      border-bottom: 1px solid #e2e5e8;
      background: #f8f9fb;

      h3 {
        margin: 0 0 4px 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        color: #1d2327;
      }

      p {
        margin: 0;
        color: #50575e;
        font-size: 13px;
        line-height: 1.4;
      }
    }
  }

  .wrap-community-tab-settings {
    .form-table {
      display: flex;
      flex-direction: column;
      border-collapse: separate;
      border-spacing: 0;
      margin-top: 0;
    }

    .community-group-box {
      display: table;
      width: 100%;
      background: #fff;
      outline: 1px solid #d0d7de;
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 24px;

      > tr > th,
      > tr > td {
        background: #fff;
        padding: 30px 20px 30px;
      }

      td .community-guest-publish-warning {
        color: #646970;
        font-style: italic;
      }

      td .description {
        margin-bottom: 4px;
        display: block;
      }

      td strong {
        margin-top: 10px;
        margin-bottom: 4px;
        display: inline-block;

        &:first-of-type {
          margin-top: 0;
        }
      }
    }
  }

  // Location Submissions tab uses several .wrap-community-tab-settings blocks; only the final group
  // should drop its bottom margin (same as one big table before the split).
  #tab-2 > .wrap-community-tab-settings:last-child .community-group-box:last-child {
    margin-bottom: 0;
  }

  .map_styles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    label {
      width: 208px;
      height: 208px;
      overflow: hidden;
      border: 4px solid white;
      position: relative;

      input {
        display: none;
      }

      &.pro-only {
        cursor: default;
      }

      &.pro:before {
        content: 'PRO';
        display: inline-block;
        position: absolute;
        background: #dc3232;
        color: white;
        right: 5px;
        bottom: 5px;
        padding: 0px 4px;
        font-size: 11px;
        border: 1px solid;
      }

      &.checked,
      &:not(.pro-only):hover {
        border-color: #e82c71;
      }

      .map_style_preview {
        width: 208px;
        height: 208px;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;

        > div {
          width: 100%;
          text-align: center;
          font-size: 12px;
          padding: 5px;
          background: rgba(255,255,255,0.9);
        }

        &.commercial > div{
          &::after {
            content: 'API KEY';
            display: inline-block;
            background: grey;
            color: #fff;
            margin-left: 5px;
            padding: 2px 3px;
            font-size: 10px;
            line-height: 13px;
            position: relative;
            top: -1px;
            border-radius: 2px;
          }
        }
    
        &[data-style="Stadia.StamenTonerLite"] {
          background-image: url('images/map_style_Stamen.TonerLite.png');
        }
    
        &[data-style="Esri.WorldStreetMap"] {
          background-image: url('images/map_style_Esri.WorldStreetMap.png');
        }
    
        &[data-style="OpenStreetMap.Mapnik"] {
          background-image: url('images/map_style_OpenStreetMap.Mapnik.png');
        }

        &[data-style="OpenStreetMap.DE"] {
          background-image: url('images/map_style_OpenStreetMap.DE.png');
        }
    
        &[data-style="CartoDB.Positron"] {
          background-image: url('images/map_style_CartoDB.Positron.png');
        }

        &[data-style="CartoDB.DarkMatter"] {
          background-image: url('images/map_style_CartoDB.DarkMatter.png');
        }

        &[data-style="Esri.WorldImagery"] {
          background-image: url('images/map_style_Esri.WorldImagery.png');
        }
    
        &[data-style="Custom1"] {
          background-image: url('images/map_style_Custom1.png');
        }
    
        &[data-style="Custom2"] {
          background-image: url('images/map_style_Custom2.png');
        }
    
        &[data-style="Custom3"] {
          background-image: url('images/map_style_Custom3.png');
        }

        &[data-style="MapBox.streets"] {
          background-image: url('images/map_style_MapBox.streets.png');
        }

        &[data-style="MapBox.outdoors"] {
          background-image: url('images/map_style_MapBox.outdoors.png');
        }

        &[data-style="MapBox.light"] {
          background-image: url('images/map_style_MapBox.light.png');
        }

        &[data-style="MapBox.dark"] {
          background-image: url('images/map_style_MapBox.dark.png');
        }

        &[data-style="MapBox.satellite"] {
          background-image: url('images/map_style_MapBox.satellite.png');
        }

        &[data-style="MapBox.satellite-streets"] {
          background-image: url('images/map_style_MapBox.satellite-streets.png');
        }

        &[data-style="CustomImage"] {
          background-image: url('images/map_style_custom_image.png');
        }
      }
    }
  }

  .wrap-tile-provider-settings {
    padding: 10px;
    margin-top: 15px;
  }

  // Custom Image Settings
  .wrap-custom-image-settings {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;

    .custom-image-upload-section,
    .image-bounds-section,
    .image-display-options {
      margin-bottom: 25px;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #ffffff;

      h5 {
        margin-top: 0;
      }
    }

    .image-display-options {
      margin-bottom: 0;
    }

    .custom-image-hide-tiles-option {
      margin-bottom: 20px;

      .description {
        margin-top: 5px;
      }
    }

    #image_preview img {
      max-width: 300px;
      max-height: 200px;
      border: 1px solid #ddd;
      border-radius: 4px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .image-bounds-section {
      .grid-inputs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;

        .input-group {
          label {
            display: block;
            margin-bottom: 5px;
          }

          input {
            width: 100%;
            
            // Invalid bounds styling
            &.oum-invalid-bounds {
              border-color: #dc3232;
              background-color: #fff5f5;
              
              &:focus {
                border-color: #dc3232;
                box-shadow: 0 0 0 1px #dc3232;
              }
            }
          }

          small {
            color: #666;
            font-size: 12px;
          }
        }
      }
    }
  }

  .marker_icons {
    display: flex;
    flex-wrap: wrap;

    label {
      width: 50px;
      height: 82px;
      overflow: hidden;
      border: 4px solid white;
      margin: 5px;
      position: relative;

      input {
        display: none;
      }

      &.pro-only {
        cursor: default;
        overflow: visible;

        &:before {
          content: 'PRO';
          display: inline-block;
          position: absolute;
          background: #dc3232;
          color: white;
          right: 0;
          top: 0;
          font-size: 11px;
          text-align: center;
          padding: 0px 4px;
        }

        .oum-gopro-text {
          position: absolute;
          top: 15px;
          right: -130px;
          width: 115px;
        }
      }

      &.pro:before {
        content: 'PRO';
        display: inline-block;
        position: absolute;
        background: #dc3232;
        color: white;
        right: 0;
        top: 0;
        font-size: 11px;
        text-align: center;
        padding: 0px 4px;
      }

      &.checked,
      &:not(.pro-only):hover {
        border-color: #e82c71;
      }

      .marker_icon_preview {
        width: 50px;
        height: 82px;
        background-position: center center;
        background-size: 50%;
        background-repeat: no-repeat;

        &[data-style="default"] {
          background-image: url('../src/leaflet/images/marker-icon_default-2x.png');
        }
    
        &[data-style="custom1"] {
          background-image: url('../src/leaflet/images/marker-icon_custom1-2x.png');
        }

        &[data-style="custom2"] {
          background-image: url('../src/leaflet/images/marker-icon_custom2-2x.png');
        }

        &[data-style="custom3"] {
          background-image: url('../src/leaflet/images/marker-icon_custom3-2x.png');
        }

        &[data-style="custom4"] {
          background-image: url('../src/leaflet/images/marker-icon_custom4-2x.png');
        }

        &[data-style="custom5"] {
          background-image: url('../src/leaflet/images/marker-icon_custom5-2x.png');
        }

        &[data-style="custom6"] {
          background-image: url('../src/leaflet/images/marker-icon_custom6-2x.png');
        }

        &[data-style="custom7"] {
          background-image: url('../src/leaflet/images/marker-icon_custom7-2x.png');
        }

        &[data-style="custom8"] {
          background-image: url('../src/leaflet/images/marker-icon_custom8-2x.png');
        }

        &[data-style="custom9"] {
          background-image: url('../src/leaflet/images/marker-icon_custom9-2x.png');
        }

        &[data-style="custom10"] {
          background-image: url('../src/leaflet/images/marker-icon_custom10-2x.png');
        }

        &[data-style="user1"] {
          background-image: url('../src/leaflet/images/marker-icon_user1-2x.png');
        }
      }

      &.label_marker_user_icon {
        width: 170px;

        .icon_upload {
          position: absolute;
          width: 115px;
          right: 3px;
          top: 62%;
          transform: translateY(-50%);

          .button {
            cursor: pointer;
            line-height: 1.5;
            padding: 5px;
            text-align: center;
            white-space: pre-wrap;
          }

          .description {
            font-style: italic;
            font-size: 11px;
            opacity: 0.8;
          }
        }
      }
    }
  }

  .wrapper_marker_multicategories_icon {
    width: 170px;
    height: 82px;
    position: relative;

    input {
      display: none;
    }

    .marker_icon_preview {
      height: 50px;
      width: 50px;
      background-position: center center;
      background-size: contain;
      background-repeat: no-repeat;
    }

    .icon_upload {
      position: absolute;
      width: 225px;
      left: 60px;
      top: 8px;

      .button {
        cursor: pointer;
        line-height: 1.5;
        padding: 5px;
        text-align: center;
        white-space: pre-wrap;
      }

      .description {
        font-style: italic;
        font-size: 11px;
        opacity: 0.8;
      }
    }
  }

  .geo-coordinates-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    .map-wrap {
      position: relative;
      flex: 0 0 520px;
      aspect-ratio: 1.77;
      margin-bottom: auto;

      #mapGetInitial {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        .leaflet-control-attribution {
          display: none;
        }

        .leaflet-control-geosearch {
          &.leaflet-geosearch-bar {
            form {
              background-image: url(images/ico_search_address_2.png);
              background-position: right 1px;
              background-repeat: no-repeat;
              background-size: 30px;
              background-color: #fff;
  
              input[type=text] {
                width: calc(100% - 35px);
                padding: 9px 13px 9px 0;
                min-width: unset;
                min-height: unset;
                border: none !important;
                box-shadow: none !important;
                margin: 0 !important;
                outline: none !important;
                font-size: 14px;

                @media screen and (max-width: 768px) {
                  font-size: 16px;
                }
              }
    
              button.reset {
                right: 25px;
                background-color: #fff;
                color: black;
                margin: 0;
                padding: 0 8px;
                border: none;
                box-shadow: none;
                margin: 0;
                outline: none;
                font-size: 14px;
                opacity: 0.5;

                &:hover {
                  opacity: 1;
                }
              }
            }
          }
        }

        a {
          text-decoration: none !important;
          padding: 0;
          margin: 0;
        }

        .leaflet-tile-pane img.leaflet-tile {
          box-shadow: none;
          padding: 0;
          margin: 0;
          border: none;
          border-radius: unset;
        }

        &.map-style_Custom1 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: saturate(3);
          }
          // label tiles
        }
  
        &.map-style_Custom2 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(0) saturate(28) hue-rotate(-53deg);
          }
  
          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }
  
        &.map-style_Custom3 {
          // map tiles
          .leaflet-tile-pane .leaflet-layer:first-of-type .leaflet-tile {
            filter: sepia(1) invert(1) saturate(100) brightness(1) hue-rotate(-300deg);
          }
  
          // label tiles
          .leaflet-tile-pane .leaflet-layer:nth-child(2) .leaflet-tile {
            filter: sepia(0) contrast(1) invert(1) brightness(2);
          }
        }
      }
    }

    .input-wrap {
      width: 520px;

      .latlng-wrap {
        display: flex;
        gap: 15px;

        >div {
          width: 100px;

          input {
            width: 100%;
          }
        }
      }

      .geo-coordinates-hint {
        box-sizing: border-box;
        padding: 15px;
        border: 1px solid lightgrey;
        margin-top: 30px;
        margin-bottom: 30px;
        background-color: floralwhite;
      }

      .additional-map-settings {
        input[type=number] {
          max-width: 70px;
        }
      }
    }

    @media (max-width: 768px) {
      flex-direction: column;

      .map-wrap,
      .input-wrap {
        width: 100%;
      }

      .input-wrap {
        padding: 0;
      }
    }
  }

  .oum_custom_fields_wrapper {
    table {
      border-collapse: collapse;
      border: 1px solid #c3c4c7;
      margin-bottom: 15px;

      th, 
      td {
        border: 1px solid #c3c4c7;
        padding: 12px;
        width: auto;
        margin: 0;
      }

      thead {
        tr {
          th {
            background: #e82c71;
            color: #fff;
          }
        }
      }

      tbody {
        tr {
          td {
            .oum-custom-field-allow-empty {
              display: block;
              margin-top: 10px;
            }

            .oum-custom-field-use-label-as-text {
              display: block;
              margin-top: 10px;
            }
          }

          td.actions {
            a {
              text-decoration: none !important;
              display: inline-block;
      
              &.up, 
              &.down {
                color: green;
              }
      
              &.remove_button {
                color: #dc3232;
              }
            }
          }
        }
      }
    }
  }

  input.oum-switch[type="checkbox"] {
    position: relative;
    left: 0;
    top: 0;
    z-index: 0;
    appearance: none;
    visibility: hidden;

    + label {
      position: relative;
      display: block;
      cursor: pointer;
      font-family: sans-serif;
      font-size: 14px;
      line-height: 23px;
      padding-left: 50px;
      position: relative;
      margin-top: -18px;

      &::before {
        box-sizing: border-box;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        border: 2px solid #ddd;
        background-color: #eee;
        content: "";
        margin-right: 15px;
        transition: background-color 0.5s linear;
        z-index: 5;
        position: absolute;
        left: 0px;
        top: 1px;
      }

      &::after {
        box-sizing: border-box;
        width: 16px;
        height: 16px;
        border-radius: 30px;
        background-color: #fff;
        content: "";
        transition: margin 0.1s linear;
        box-shadow: 0px 0px 5px #aaa;
        position: absolute;
        left: 2px;
        top: 3px;
        z-index: 10;
      }
    }

    &:checked + label::before {
      background-color: #e82c71;
    }

    &:checked + label::after {
      margin: 0 0 0 20px;
    }
  }

  .oum-tooltip {
    position: relative; 
    display: inline-block; 
    margin-left: 5px;

    .oum-tooltip-trigger {
      display: inline-block; 
      width: 16px; 
      height: 16px; 
      background: #666; 
      color: white; 
      border-radius: 50%; 
      text-align: center; 
      line-height: 16px; 
      font-size: 11px; 
      cursor: help;
    }

    .oum-tooltip-content {
      display: none; 
      position: absolute; 
      bottom: 25px; 
      left: 50%; 
      transform: translateX(-50%); 
      background: #333; 
      color: white; 
      padding: 12px 16px; 
      border-radius: 6px; 
      font-size: 12px;
      z-index: 1000; 
      box-shadow: 0 2px 8px rgba(0,0,0,0.3); 
      min-width: 200px; 
      max-width: 300px;

      h4 {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 600;
      }

      p {
        margin-top: 0;
        margin-bottom: 8px;
      }

      a {
        color: #e82c71;
      }

      &::after {
        content: "";
        position: absolute; 
        top: 100%; 
        left: 50%; 
        transform: translateX(-50%); 
        width: 0; 
        height: 0; 
        border-left: 5px solid transparent; 
        border-right: 5px solid transparent; 
        border-top: 5px solid #333;
      }
    }
  }

  // Import/Export Loading Spinner
  .csv_upload {
    position: relative;

    .oum-import-loading {
      display: none;
      position: relative;
      margin-left: 10px;
      vertical-align: middle;
      display: inline-block;

      .oum-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(34, 113, 177, 0.1);
        border-top: 2px solid #2271b1;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        vertical-align: middle;
      }

      .message {
        display: none;
      }
    }
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .oum-pro {
    display: inline-block;
    background: #dc3232;
    color: white;
    font-size: 11px;
    text-align: center;
    padding: 0px 4px;
  }

  .oum-gopro-tr td,
  .oum-gopro-div {
    opacity: 0.65;
  }

  .oum-debug-info {
    opacity: 0.5;

    ul {
      margin: 0;
      padding: 0;
    }

    // Error logging configuration section
    .oum-error-config {
      margin-top: 8px;
      max-width: 800px;
    }

    .oum-status-badge {
      display: inline-block;
      padding: 4px 8px;
      margin: 2px 4px 2px 0;
      border-radius: 3px;
      font-size: 12px;
      font-weight: 500;

      &.enabled {
        background: #d4edda;
        color: #28a745;
      }

      &.disabled {
        background: #fff3cd;
        color: #fd7e14;
      }
    }

    .oum-log-paths {
      margin-top: 8px;
      padding: 8px 12px;
      background: #f8f9fa;
      border-left: 3px solid #6c757d;
      font-size: 12px;
      color: #495057;

      strong {
        font-weight: 600;
      }

      .status-icon {
        &.success {
          color: #28a745;
        }

        &.warning {
          color: #fd7e14;
        }
      }
    }

    // Recent PHP Errors section
    .oum-errors-container {
      margin-top: 10px;
    }

    .oum-error-alert {
      max-width: 900px;
      padding: 12px 16px;
      border-radius: 4px;
      margin-bottom: 10px;

      &.warning {
        background: #fff3cd;
        border-left: 4px solid #ffc107;

        strong {
          color: #856404;
        }

        .source-label {
          color: #666;
          font-size: 0.85em;
        }

        .help-text {
          color: #495057;
          font-size: 13px;

          a {
            color: #007bff;
            text-decoration: none;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }

      &.success {
        background: #d4edda;
        border-left: 4px solid #28a745;

        strong {
          color: #155724;
        }

        .success-text {
          color: #155724;
          font-size: 13px;
        }
      }

      &.info {
        background: #f8f9fa;
        border: 1px solid #dee2e6;

        em {
          color: #6c757d;
        }
      }
    }

    .oum-error-log {
      max-width: 900px;
      max-height: 300px;
      overflow-x: auto;
      overflow-y: auto;
      background: #f8f9fa;
      padding: 12px;
      border: 1px solid #dee2e6;
      border-radius: 4px;
      font-size: 11px;
      line-height: 1.6;
      margin: 0;
      white-space: pre-wrap;
      word-wrap: break-word;
    }
  }

  #oum_searchbar_type_options {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 15px;
  }

  // Shortcode documentation styles
  .oum-shortcode-docs {
    h4 {
      margin-top: 25px;
      margin-bottom: 15px;
      padding: 10px 15px;
      background: #f1f1f1;
      border-left: 4px solid #2271b1;
      font-size: 14px;
      font-weight: 600;
    }

    .oum-attribute-table {
      margin-bottom: 30px;
      border-collapse: collapse;
      border: 1px solid #e5e5e5;

      th {
        background: #f8f8f8;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
      }

      td {
        vertical-align: top;
        padding: 15px;
        border-bottom: 1px solid #e5e5e5;

        &:first-child {
          width: 25%;
        }

        &:nth-child(2) {
          width: 35%;
        }
      }

      tr:last-child td {
        border-bottom: none;
      }

      code {
        display: inline-block;
        margin: 3px 0;
        padding: 4px 8px;
        background: #f7f7f7;
        font-size: 12px;
      }
    }

    .oum-examples {
      background: #f9f9f9;
      padding: 20px;
      border-radius: 4px;
      margin-top: 15px;
      margin-bottom: 15px;

      p {
        margin-top: 20px;
        margin-bottom: 8px;

        &:first-child {
          margin-top: 0;
        }
      }

      code {
        display: block;
        padding: 12px 15px;
        background: #fff;
        margin-bottom: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 3px;
        word-break: break-all;
      }
    }
  }

  .oum-pro-trial-tab {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
  }

  #tab-pro-trial {
    .oum-trial-cta {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* Card-style box around feature list */
    .wrap-pro-feature-list {
      width: 1100px;
      max-width: 80%;
      background: #fff;
      border: 1px solid #ccd0d4;
      border-radius: 8px;
      padding: 30px;
      margin-top: 20px;
      margin-bottom: 500px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Grid layout for features */
    #oum-pro-features-list {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
      gap: 30px 40px; /* row-gap | column-gap */
      list-style: none;
      padding: 0;
      margin: 0;

      @media (max-width: 1000px) {
        grid-template-columns: repeat(2, 1fr);
      }

      @media (max-width: 768px) {
        grid-template-columns: repeat(1, 1fr);
      }

      &::after {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background: linear-gradient(0, #ffffff 0%, transparent 50%);
        position: absolute;
        z-index: 1;
        bottom: 0;
        left: 0;
      }

      &.open {
        &::after {
          display: none;
        }
      }

      li {
        margin: 0;

        p {
          margin: 0;
          padding-left: 22px;
          position: relative;
          font-size: 14px;
          line-height: 1.5;

          &::before {
            content: '✅';
            position: absolute;
            left: 0;
            top: 0;
          }
        }
      }
    }

    /* Toggle visibility for hidden items */
    .hidden-feature {
      display: none;
    }

    /* Show/hide link */
    .toggle-pro-feature-list-wrapper {
      text-align: center;

      #toggle-pro-feature-list {
        display: inline-block;
        font-size: 16px;
        color: #0073aa;
        text-decoration: none;
        font-weight: 500;
        margin-top: 20px;
        transition: color 0.2s ease, text-decoration 0.2s ease;
  
        &:hover,
        &:active {
          color: #005177; 
        }
      }
    }
  }

  // Advanced Filter Interface Styles
  .oum-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;

    h3 {
      margin-top: 0;
      color: #333;
    }
  }

  .oum-filter-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 15px;

    .oum-section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;

      h4 {
        margin: 0;
        color: #333;
      }

      .oum-section-controls {
        display: flex;
        gap: 5px;

        .button {
          padding: 4px 8px;
          font-size: 12px;
          line-height: 1;
          min-height: auto;
          height: auto;

          &.oum-move-up,
          &.oum-move-down {
            background: #f0f0f0;
            border-color: #ccc;
            color: #666;

            &:hover {
              background: #e0e0e0;
              border-color: #999;
            }
          }

          &.oum-remove-section {
            background: #ff6b6b;
            border-color: #ff5252;
            color: #fff;

            &:hover {
              background: #ff5252;
              border-color: #ff1744;
            }
          }
        }
      }
    }

    .oum-section-content {
      .form-table {
        margin: 0;

        th {
          width: 150px;
          padding: 10px 0;
          font-weight: 600;
        }

        td {
          padding: 10px 0;
        }

        .description {
          font-style: italic;
          color: #666;
          margin-top: 5px;
          font-size: 13px;
        }

        .oum-custom-field-options,
        .oum-html-options {
          display: none;

          &.active {
            display: table-row;
          }
        }
      }
    }
  }

  .oum-filter-sections-container {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    margin: 15px 0;
    max-width: 800px;
    transition: all 0.2s ease;

    &:hover {
      border-color: #8c8f94;
      background: #f6f7f7;
    }

    .oum-filter-sections-header {
      margin-bottom: 20px;

      strong {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
        color: #1d2327;
      }

      .description {
        margin: 0;
        font-size: 14px;
        color: #646970;
      }
    }

    .oum-filter-sections-footer {
      margin-top: 20px;
      text-align: left;
    }
  }

  #oum-advanced-filter-sections {
    margin-bottom: 20px;

    .oum-filter-section {
      border: 1px solid #ddd;
      border-radius: 6px;
      margin-bottom: 15px;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

      .oum-section-header {
        background: #f8f9fa;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 6px 6px 0 0;

        h4 {
          margin: 0;
          font-size: 14px;
          font-weight: 600;
          color: #1d2327;
        }

        .oum-section-controls {
          display: flex;
          gap: 5px;

          .button {
            padding: 4px 8px;
            font-size: 12px;
            line-height: 1;
            min-height: auto;
            border-radius: 3px;
          }
        }
      }
    }
  }

  #oum-add-filter-section {
    margin-top: 10px;
  }
}

// Pagebuilder: Gutenberg & Elementor
.wp-block.wp-block-open-user-map-map,
.elementor-editor-active .elementor-widget-open_user_map_widget,
.elementor-editor-preview .elementor-widget-open_user_map_widget {
  background: url(images/block-bg.jpg) top center no-repeat;
  background-size: cover;

  .hint {
    overflow: hidden;
    backdrop-filter: blur(2px);
    position: relative;
    padding: 50px 40px;
    text-align: left;
    color: white;
    border: 6px solid #fff;
    box-shadow: 0 0 1px 0px #008fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    h5 {
      font-size: 36px;
      font-weight: 900;
      margin: 0;
      padding: 0;
      color: white;
      display: flex;
      align-items: center;
      gap: 20px;

      &::before {
        content: '';
        display: block;
        width: 80px;
        height: 80px;
        background: url(images/icon-256x256.png) center center no-repeat;
        background-size: cover;
        border: 5px solid #fff;
        opacity: 0.8;
      }
    }

    p {
      font-size: 17px;
    }

    .components-button {
      margin: 5px;

      &.is-primary {
        color: #fff;
        border: 1px solid;
      }

      &.is-secondary {
        color: #fff;
        box-shadow: none;
        border: 1px solid;
      }
    }
  }
}

.oum-image-upload-wrap {
  margin-bottom: 20px;

  .oum-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    min-height: 50px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;

    &.dragover {
      background: #f5f5f5;
      border-color: #999;
    }

    .image-preview-item {
      position: relative;
      aspect-ratio: 1;
      background-size: cover;
      background-position: center;
      border-radius: 4px;
      cursor: grab;

      &.dragging {
        opacity: 0.5;
      }

      .remove-image {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        color: #666;

        &:hover {
          background: #fff;
          color: #000;
        }
      }
    }
  }

  input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
  }

  .oum-image-upload-description {
    font-size: 12px;
    color: #666;
  }
}