/* Contact The Davis Team */

/* Safer button styling:
   keep the plugin's real text, only control color/shape */
.flexmls-actions-wrapper button.flexmls-btn-primary {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 6px;
}

/* Keep Flexmls brand color areas black */
.flexmls-primary-color-background {
    background-color: #000000 !important;
}

.back-to-search-link.flexmls-primary-color-font {
    color: #000000 !important;
}

/* Contact form send button text */
#SendOne {
    color: white !important;
}

/* New Listing Tag Black on Property Cards */
.flexmls-v2-templates .new-listing-tag,
.flexmls-v2-widget .new-listing-tag {
    background: #000000 !important;
    color: #fff !important;
    padding: 8px 20px 5px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Open House Tag Specific Color on Property Cards */
.flexmls-v2-templates .new-listing-tag.open-house,
.flexmls-v2-widget .new-listing-tag.open-house {
    background: #bda76e !important;
}

/* To hide just the "Profile Edit Review" button on TDT Profile */
#edit_review {
    display: none !important;
}

/* To hide the entire TDT profile review update wrapper */
.add_review_wrapper {
    display: none !important;
}

/* Hide Review Notice on TDT Profile */
h5.review_notice {
    display: none !important;
}

#login_trigger_modal {
    display: none !important;
}

/* Map Pop-Up text on Mobile forcing scroll */
.gm-style .gm-style-iw {
    font-weight: 400 !important;
    font-size: 12px !important;
    overflow: hidden !important;
}

/* Mobile-specific styles */
@media only screen and (max-width: 650px) {
    .gm-style-iw.gm-style-iw-c {
        max-width: 100vw !important;
        min-width: 280px !important;
        max-height: none !important;
        padding: 10px !important;
    }

    .gm-style-iw-d {
        max-height: none !important;
        overflow-y: auto !important;
    }
}

/* Flexmls FBS Advanced Search Color Styles */
input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 3px solid #000000;
}

/* Removes the old padding on FBS Contact Form */
@media (max-width: 768px) {
  #flexmls_connect {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #flexmls_connect #flexmls_connect__cboxTopLeft,
  #flexmls_connect #flexmls_connect__cboxTopCenter,
  #flexmls_connect #flexmls_connect__cboxTopRight,
  #flexmls_connect #flexmls_connect__cboxMiddleLeft,
  #flexmls_connect #flexmls_connect__cboxMiddleRight,
  #flexmls_connect #flexmls_connect__cboxBottomLeft,
  #flexmls_connect #flexmls_connect__cboxBottomCenter,
  #flexmls_connect #flexmls_connect__cboxBottomRight {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  #flexmls_connect .choxContent {
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  #flexmls_connect input,
  #flexmls_connect textarea {
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  #flexmls_connect textarea {
    height: 100px !important;
  }
}

/* Hides the mobile advanced search bar on all archive and category pages */
.archive #adv-search-header-mobile,
.category #adv-search-header-mobile {
  display: none !important;
}

/* iPad portrait adjustment */
@media only screen and (min-width: 820px) and (max-width: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) {
  .row.rate-calc-head {
    margin-right: 100px;
  }
}

/* ========================================================= */
/* BASE STYLES: Centering, Padding, and Mobile Max-Width     */
/* ========================================================= */

.jp-relatedposts {
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 30px 20px 30px !important;
    max-width: 100% !important;
}

/* INNER CONTENT CENTERING */
.jp-relatedposts-items-wrapper {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.jp-relatedposts-items-wrapper .jp-relatedposts-post {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 1. Standard Phone/Small Tablet */
@media (min-width: 480px) {
    .jp-relatedposts {
        max-width: 98% !important;
    }
}

/* 2. Tablet Portrait */
@media (min-width: 820px) {
    .jp-relatedposts {
        max-width: 95% !important;
    }
}

/* 3. Tablet Landscape */
@media (min-width: 1024px) {
    .jp-relatedposts {
        max-width: 90% !important;
    }
}

/* 4. iPad Landscape */
@media (min-width: 1180px) {
    .jp-relatedposts {
        max-width: 80% !important;
    }
}

/* 5. Laptop / Small Desktop */
@media (min-width: 1440px) {
    .jp-relatedposts {
        max-width: 1100px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* 6. Widescreen */
@media (min-width: 1920px) {
    .jp-relatedposts {
        max-width: 1280px !important;
    }
}

/* WP Residence Advanced Search Widget Hiding */
#advanced_search_widget-1 {
    display: none !important;
}

/* Keep mobile zoom fix targeted instead of global */
@media (max-width: 767px) {
  input[type="search"],
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    line-height: 1.4;
  }
}

/* Specific Ivory Search fix */
#is-search-input-45422,
.is-search-input {
    font-size: 16px !important;
}