/* ============================================================
   MOBILE RESPONSIVE FIX - Nashville Signature Properties
   Replace / merge with existing responsive.css
   ============================================================ */

/* ── Global resets for mobile ── */
@media screen and (max-width: 991px) {

  /* ---------- HEADER ---------- */
  header {
    padding: 16px 15px !important;
  }

  .row.desk { display: none !important; }
  .row.mob  { display: flex !important; align-items: center; }

  .row.mob .logo {
    width: 80%;
    text-align: left;
  }

  .row.mob .logo p {
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0;
    text-align: left;
  }

  #menu-toggle1 {
    width: 20%;
    text-align: right;
    cursor: pointer;
  }

  #menu-toggle1 i {
    font-size: 26px;
    color: #fff;
  }

  /* Mobile slide-out nav */
  .mob-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #000;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 9999;
  }

  .mob-nav.active { transform: translateX(0); }

  .mob-nav .logo p {
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin: 20px 0;
  }

  .close-bar { text-align: right; }
  .close-bar i { font-size: 26px; color: #fff; cursor: pointer; }

  ul.navbar-nav {
    flex-direction: column !important;
    margin-top: 10px;
  }

  .nav-link {
    padding: 10px 0;
    font-size: 13px;
    text-align: left;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    background: #111;
    width: 100%;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-item {
    padding: 10px 16px !important;
    font-size: 12px;
  }

  /* ---------- BANNER / VIDEO ---------- */
  section.banner,
  .video-sec {
    height: 55vh !important;
  }

  .video-content {
    height: 55vh !important;
    padding: 0 20px;
  }

  .video-content h1 {
    font-size: 36px !important;
    margin-bottom: 10px;
  }

  .video-content p {
    font-size: 16px !important;
    margin-top: 6px;
  }

  /* ---------- ABOUT US SECTION ---------- */
  #justin-about-section {
    padding: 60px 20px;
  }

  #justin-about-section .justin-about-container {
    flex-direction: column;
    gap: 120px;
    width: 100%;
  }

  #justin-about-section .justin-about-images {
    width: 100%;
    min-height: 320px;
  }

  #justin-about-section .justin-img-top {
    width: 75%;
    height: 220px;
  }

  #justin-about-section .justin-img-bottom {
    width: 70%;
    height: 220px;
    bottom: -80px;
    left: 50px;
  }

  #justin-about-section .justin-about-content {
    width: 100%;
    margin-top: 20px;
  }

  #justin-about-section h2 {
    font-size: 28px !important;
  }

  /* ---------- WHY CHOOSE US ---------- */
  #wcus-section {
    padding: 60px 20px;
  }

  #wcus-section .wcus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  #wcus-section .wcus-heading {
    font-size: 22px;
    margin-bottom: 35px;
  }

  /* ---------- HOW IT WORKS ---------- */
  #how-it-works-section {
    padding: 60px 20px;
  }

  #how-it-works-section .hiw-container {
    flex-direction: column;
    width: 100%;
    gap: 40px;
  }

  #how-it-works-section .hiw-images {
    width: 100%;
    min-height: 340px;
    position: relative;
  }

  #how-it-works-section .hiw-img-large {
    width: 65%;
    height: 210px;
  }

  #how-it-works-section .hiw-img-small {
    width: 45%;
    height: 160px;
    margin-top: 15px;
  }

  #how-it-works-section .hiw-img-front {
    width: 50%;
    height: 230px;
    top: 90px;
    right: 0;
  }

  #how-it-works-section .hiw-content {
    width: 100%;
    margin-top: 30px;
  }

  #how-it-works-section h2 {
    font-size: 28px !important;
  }

  /* ==============================================
     FEATURED LISTING SECTION - IDX WIDGET FIX
     ============================================== */

  /* Make the section itself fully visible & block */
  .fp-section {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 50px 15px !important;
  }

  /* Full-width container on mobile */
  .fp-section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Header title */
  .fp-section .fp-header {
    margin-bottom: 30px;
  }

  .fp-section .fp-header h2 {
    font-size: 26px !important;
    color: #000 !important;
    text-align: center;
  }

  /* ---- IDX widget container overrides ---- */
  /* Force any IDX wrapper to be full width */
  .fp-section #IDX-main,
  .fp-section .IDX-main,
  .fp-section [id*="IDX"],
  .fp-section [class*="IDX"],
  .fp-section [class*="idx"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  /* IDX showcase row — stack cards vertically */
  .fp-section .IDX-showcaseRow,
  .fp-section [class*="showcaseRow"],
  .fp-section [class*="showcase-row"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    float: none !important;
  }

  /* Each individual IDX listing card — full width */
  .fp-section .IDX-showcaseRow > div,
  .fp-section .IDX-showcaseRow > li,
  .fp-section [class*="IDX-listing"],
  .fp-section [class*="idx-listing"],
  .fp-section [class*="IDX-card"],
  .fp-section [class*="idx-card"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* IDX listing images — responsive */
  .fp-section [class*="IDX"] img,
  .fp-section [class*="idx"] img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Prevent text overflow inside IDX cards */
  .fp-section [class*="IDX"] *,
  .fp-section [class*="idx"] * {
    max-width: 100% !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  /* IDX pagination / nav buttons */
  .fp-section [class*="IDX-paginationCell"],
  .fp-section [class*="IDX-resultInfo"] {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 0 !important;
  }

  /* ---------- ABOUT OWNER ---------- */
  #about-owner-justin-day {
    padding: 60px 20px;
  }

  #about-owner-justin-day .owner-container {
    flex-direction: column;
    gap: 30px;
  }

  #about-owner-justin-day .owner-image,
  #about-owner-justin-day .owner-content {
    width: 100%;
    flex: unset;
  }

  #about-owner-justin-day .owner-content h2 {
    font-size: 26px !important;
  }

  /* ---------- BLOG / ARTICLES ---------- */
  .reblog-section {
    padding: 60px 20px;
  }

  .reblog-title {
    font-size: 24px;
  }

  .reblog-section .slick-prev { left: -10px; }
  .reblog-section .slick-next { right: -10px; }

  /* ---------- TESTIMONIALS ---------- */
  .retesti-section {
    padding: 60px 20px;
  }

  .retesti-title {
    font-size: 24px;
  }

  .retesti-card {
    height: auto !important;
    min-height: 200px;
  }

  .retesti-section .slick-prev { left: -10px; }
  .retesti-section .slick-next { right: -10px; }

  /* ---------- CONTACT SECTION ---------- */
  section.contact .overlay {
    padding: 50px 15px;
  }

  section.contact .container {
    padding: 30px 20px;
  }

  section.contact input,
  section.contact textarea {
    margin-bottom: 25px;
  }

  /* ---------- FOOTER ---------- */
  footer {
    padding: 50px 20px 30px;
  }

  footer h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  footer .row {
    flex-direction: column;
    gap: 0;
  }

  footer .col-lg-4 {
    width: 100% !important;
    padding-left: 0 !important;
    margin-bottom: 30px;
  }

  footer .col-lg-4.first {
    width: 100% !important;
    margin-bottom: 30px;
  }

  footer p.text {
    margin-top: 30px;
    font-size: 13px;
  }

  footer .copyright p {
    font-size: 12px;
  }

  footer .copyright img {
    width: 110px;
  }
}

/* ── Small phones (max 540px) ── */
@media screen and (max-width: 540px) {

  /* ---------- GENERAL ---------- */
  section {
    padding: 50px 0;
  }

  h2 {
    font-size: 40px !important;
  }

  /* ---------- BANNER ---------- */
  section.banner,
  .video-sec {
    height: 50vh !important;
  }

  .video-content {
    height: 50vh !important;
  }

  .video-content h1 {
    font-size: 28px !important;
  }

  .video-content p {
    font-size: 14px !important;
  }

  /* ---------- ABOUT US ---------- */
  #justin-about-section {
    padding: 50px 15px;
  }

  #justin-about-section .justin-about-container {
    gap: 100px;
  }

  #justin-about-section .justin-img-top {
    width: 80%;
    height: 180px;
  }

  #justin-about-section .justin-img-bottom {
    width: 70%;
    height: 190px;
    left: 30px;
    bottom: -70px;
  }

  #justin-about-section h2 {
    font-size: 22px !important;
  }

  #justin-about-section p {
    font-size: 14px;
  }

  #justin-about-section .justin-btn {
    padding: 11px 24px;
    font-size: 13px;
  }

  /* ---------- WHY CHOOSE US ---------- */
  #wcus-section .wcus-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  #wcus-section .wcus-item h4 {
    font-size: 13px;
  }

  /* ---------- HOW IT WORKS ---------- */
  #how-it-works-section h2 {
    font-size: 24px !important;
  }

  #how-it-works-section .hiw-img-large {
    width: 65%;
    height: 170px;
  }

  #how-it-works-section .hiw-img-small {
    width: 48%;
    height: 140px;
  }

  #how-it-works-section .hiw-img-front {
    width: 52%;
    height: 190px;
    top: 80px;
  }

  /* ==============================================
     FEATURED LISTING - SMALL PHONE OVERRIDE
     ============================================== */

  .fp-section {
    padding: 40px 10px !important;
    display: block !important;
    visibility: visible !important;
  }

  .fp-section .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .fp-section .fp-header h2 {
    font-size: 22px !important;
    margin-bottom: 20px;
  }

  /* Single column IDX cards on small phones */
  .fp-section .IDX-showcaseRow,
  .fp-section [class*="showcaseRow"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .fp-section .IDX-showcaseRow > div,
  .fp-section [class*="IDX-listing"],
  .fp-section [class*="idx-listing"] {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
  }

  .fp-section [class*="IDX"] img,
  .fp-section [class*="idx"] img {
    max-height: 220px !important;
  }

  /* Prevent any IDX text overflow */
  .fp-section [class*="IDX"] *,
  .fp-section [class*="idx"] * {
    max-width: 100% !important;
    word-break: break-word !important;
  }

  /* ---------- ABOUT OWNER ---------- */
  #about-owner-justin-day {
    padding: 50px 15px;
  }

  #about-owner-justin-day .owner-content h2 {
    font-size: 22px !important;
  }

  #about-owner-justin-day .owner-content p {
    font-size: 14px;
  }

  /* ---------- BLOG ---------- */
  .reblog-section {
    padding: 50px 15px;
  }

  .reblog-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .reblog-image img {
    height: 180px;
  }

  /* ---------- TESTIMONIALS ---------- */
  .retesti-section {
    padding: 50px 15px;
  }

  .retesti-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  /* ---------- CONTACT ---------- */
  section.contact .container {
    padding: 25px 15px;
  }

  section.contact .row h6,
  section.contact .row h2 {
    font-size: 22px !important;
  }

  /* ---------- FOOTER ---------- */
  footer h3 {
    font-size: 18px;
  }

  footer p,
  footer a,
  footer span {
    font-size: 13px !important;
  }

  footer .social ul {
    gap: 12px;
  }

  footer .social ul a {
    width: 34px;
    height: 34px;
  }

  footer .social ul i {
    font-size: 16px;
  }

  footer p.text {
    font-size: 12px;
    margin-top: 25px;
  }
}

/* ── Very small phones (360px and below) ── */
@media screen and (max-width: 360px) {

  .row.mob .logo p {
    font-size: 16px;
  }

  .video-content h1 {
    font-size: 22px !important;
  }

  #wcus-section .wcus-grid {
    grid-template-columns: 1fr;
  }

  #justin-about-section .justin-img-bottom {
    left: 15px;
  }

  footer h3 {
    font-size: 16px;
  }

  .fp-section .fp-header h2 {
    font-size: 20px !important;
  }

  .fp-section {
    padding: 35px 0px !important;
    left: -24px !important;
  }
}



/* =========================================
   CONTACT / TESTIMONIAL SECTION MOBILE FIX
   (ONLY MOBILE — DESKTOP SAFE)
========================================= */

@media (max-width: 768px) {

  .testimonial.contact-area {
    padding: 40px 15px !important;
  }

  .testimonial.contact-area .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
  }

  /* CONTENT BOX */
  .testimonial.contact-area .content-area {
    width: 100% !important;
    order: 2;
    max-width: 100% !important;
    text-align: center !important;
    padding: 25px 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* LOGO TEXT */
  .testimonial.contact-area .logo {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  /* CONTACT ITEMS */
  .testimonial.contact-area .contact {
    width: 100% !important;
  }

  .testimonial.contact-area .cont {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 15px !important;
  }

  .testimonial.contact-area .cont i {
    font-size: 18px !important;
  }

  .testimonial.contact-area .cont p {
    font-size: 14px !important;
    margin: 0 !important;
  }

  /* SOCIAL ICONS */
  .testimonial.contact-area .social ul {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .testimonial.contact-area .social ul li {
    list-style: none !important;
  }

  .testimonial.contact-area .social ul li a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* IMAGE FIX */
   .testimonial.contact-area img {
    width: 100% !important;
    order: 1;
    max-width: 100% !important;   /* FULL width */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 10px;
  }

}


@media (max-width: 768px) {


}

/* =========================================
   EXTRA SMALL DEVICES
========================================= */
@media (max-width: 480px) {

  .testimonial.contact-area {
    padding: 30px 10px !important;
  }

  .testimonial.contact-area .logo {
    font-size: 18px !important;
  }

  .testimonial.contact-area .cont p {
    font-size: 13px !important;
  }

  .testimonial.contact-area img {
    max-width: 260px !important;
  }
}

