/* Layout & Typography */
.sector-detail-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sector-header h1 {
  font-size: 38px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.sector-description {
  font-size: 18px;
  color: #555555;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

/* 350 PPI Map Display Box */
.sector-map-wrapper {
  width: 100%;
  background: #fdfdfd;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: zoom-in;
}

.sector-map-wrapper p {
  margin: 0;
  padding: 0;
}

/* Crucial: object-fit: contain guarantees vector-like sharpness without cropping */
.sector-map-wrapper img {
  width: 100%;
  height: auto;
  max-height: 800px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.sector-map-wrapper:hover img {
  transform: scale(1.01);
}

.map-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sector-header h1 { font-size: 28px; }
  .sector-description { font-size: 15px; }
  .sector-map-wrapper img { max-height: 500px; }
}


.sector-pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.sector-card { position: relative; height: 300px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; text-decoration: none; }
.sector-card:hover { transform: translateY(-5px); }
.sector-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%); z-index: 2; }
.sector-title { position: relative; z-index: 3; color: #ffffff !important; font-size: 20px; font-weight: 700; padding: 20px; margin: 0; }
@media (max-width: 575px) { .sector-pdf-grid { grid-template-columns: 1fr; } }



/* ==========================================
   SECTOR PDF PLANS GRID (BULLETPROOF CMS FIX)
   ========================================== */
.sector-pdf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.sector-pdf-card { position: relative; height: 300px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; background-color: #f4f4f4; }
.sector-pdf-card:hover { transform: translateY(-5px); }
.sector-pdf-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); z-index: 2; pointer-events: none; }
.sector-title { position: relative; z-index: 3; color: #ffffff !important; font-size: 22px; font-weight: 700; padding: 20px; margin: 0; width: 100%; pointer-events: none; }

/* The Stretched Link Overlay */
.card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; text-decoration: none; }

/* Responsive Rules */
@media (max-width: 991px) { .sector-pdf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sector-pdf-grid { grid-template-columns: 1fr; } }







/* ==========================================
   SECTOR PDF PLANS GRID (BULLETPROOF CMS FIX)
   ========================================== */
.sector-pdf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.sector-pdf-card { position: relative; height: 300px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; background-color: #f4f4f4; }
.sector-pdf-card:hover { transform: translateY(-5px); }
.sector-pdf-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.sector-pdf-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); z-index: 2; pointer-events: none; }
.sector-title { position: relative; z-index: 3; color: #ffffff !important; font-size: 22px; font-weight: 700; padding: 20px; margin: 0; width: 100%; pointer-events: none; }

/* The Stretched Link Overlay */
.card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; text-decoration: none; }

/* Responsive Rules */
@media (max-width: 991px) { .sector-pdf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sector-pdf-grid { grid-template-columns: 1fr; } }





.homeya-categories .icon-box {
 border-radius : 20px 20px 0px 0px; 
}
.flat-title-page {
  display:none;
}
#sc_1783329786_0 {
background-color: #ffff00 !important;
}
.flat-section {
    padding: 20px 0 !important;
}
.wrap-banner .box-right img {
    margin-top:0px !important;
}
.wd-find-select {
    border: 2px solid red !important;
    border-radius: 20px !important;
}
.wd-find-select .tf-btn{
border-radius: 20px;
}
@media (min-width: 768px) {
    .newsletter-popup .modal-dialog .modal-content .newsletter-popup-content {
   
       padding : 10px !important;
    }
}

/* search Main on mobile devices */
@media only screen and (max-width: 991px) {
    .wd-find-select {
        border: 1px solid;
        flex-wrap: wrap;
        gap: 16px;
        padding: 10px 10px;
    }
}





/* --- DESKTOP LAYOUT --- */
.mortgage-calculator__row {
    display: flex !important;
    gap: 1.5rem !important;
    width: 100% !important;
    align-items: flex-end !important; /* Keeps the input box and slider perfectly leveled on the bottom */
}

.mortgage-calculator__field {
    flex: 1 !important; /* This forces the perfect 50-50 split for all rows */
    min-width: 0 !important; 
}

.mortgage-calculator__form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 992px) {
    /* Force the main container to stack the form and the results box */
    .mortgage-calculator__body {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Stack the inner form rows perfectly on phones */
    .mortgage-calculator__row {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important; /* Resets alignment for mobile */
    }
    
    /* Hide the empty spacer label on mobile to save vertical space */
    .loan-slider-col .mortgage-calculator__label {
        display: none !important;
    }
}

/* ==========================================
   100% GUARANTEED PROPERTY SLIDER (CMS SAFE)
   ========================================== */
.prop-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 99;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
}
.prop-arrow:hover { background: #e31837; color: #ffffff; border-color: #e31837; }
.prop-arrow-prev { left: 0px; }
.prop-arrow-next { right: 0px; }

/* Force the horizontal layout and override Bootstrap */
section[data-shortcode-name="properties"] .tab-pane.active .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin: 0 !important; 
    padding-bottom: 20px !important;
    scroll-behavior: smooth !important;
}
section[data-shortcode-name="properties"] .tab-pane.active .row::-webkit-scrollbar {
    display: none !important;
}

/* Force sizes so they NEVER shrink (Creates the scroll effect) */
section[data-shortcode-name="properties"] .tab-pane.active .row > div {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    min-width: 32% !important; /* CRITICAL: Prevents squishing */
    margin-right: 2% !important;
    scroll-snap-align: start !important;
    padding: 0 !important;
}

/* Tablet & Mobile Layouts */
@media (max-width: 991px) {
    section[data-shortcode-name="properties"] .tab-pane.active .row > div {
        flex: 0 0 48% !important;
        max-width: 48% !important;
        min-width: 48% !important;
    }
}
@media (max-width: 767px) {
    section[data-shortcode-name="properties"] .tab-pane.active .row > div {
        flex: 0 0 85% !important; /* Shows a peek of the next card */
        max-width: 85% !important;
        min-width: 85% !important;
        margin-right: 5% !important;
    }
    .prop-arrow { display: none !important; } /* Hide arrows on phones for natural swiping */
    section[data-shortcode-name="properties"] .tab-pane.active { padding: 0 !important; }
}



/* ==========================================
   CENTERED PREMIUM BANNER SLIDER
   ========================================== */

/* 1. Add breathing room (top/bottom spacing) around the whole section */
section.flat-partner {
    padding: 40px 0 !important; 
    margin: 0 !important;
    background-color: transparent !important;
    overflow: hidden !important;
}

/* 2. Constrain the width and center it perfectly */
section.flat-partner .container {
    max-width: 1200px !important; /* Standard premium container width */
    width: 100% !important;
    padding-left: 20px !important; /* Safety padding for mobile edges */
    padding-right: 20px !important;
    margin: 0 auto !important; /* This is the magic rule that centers it */
}

/* 3. Ensure the slide wrapper aligns its content to the center */
section.flat-partner .partner-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 4. Style the image with rounded corners and a sleek banner size */
section.flat-partner .partner-item img {
    width: 100% !important; 
    height: auto !important; 
    max-height: 250px; /* Banners are usually shorter, around 250px-300px */
    object-fit: cover !important; /* Crops cleanly so it never stretches/distorts */
    display: block;
    border-radius: 12px !important; /* The rounded corners from your screenshot! */
    margin: 0 auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; /* Soft, premium drop shadow */
}

/* Mobile Adjustment: Make it a bit shorter on phones */
@media (max-width: 767px) {
    section.flat-partner .partner-item img {
        max-height: 180px; 
        border-radius: 8px !important; /* Slightly smaller corners on mobile */
    }
    section.flat-partner {
        padding: 20px 0 !important; 
    }
}