/* 🔥 Main Layout */
#main-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: flex-start;
}

#map-container {
    flex: 0 0 50%;
    min-width: 500px;
    height: 85vh;
}

/* ✅ Listings Container - Now just a wrapper */
#listings-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-width: 400px;
    gap: 10px;
    /* 🔥 Remove height and overflow here */
}


/* ✅ Card Grid */
#card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
   /* flex-grow: 1; */
    overflow-y: auto;
    height: calc(85vh - 50px); /* 85vh minus room for summary & pagination */
    padding: 10px;
}



/* ✅ Mobile Responsive - See consolidated section at end of file */

/* 🔥 Listing Card */
.listing-card {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    max-height: 350px;
}

.listing-card:hover {
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    cursor: pointer;
}

.listing-card.highlight {
    background-color: #f0f8ff;
    border: 2px solid #0074D9;
}

/* ✅ Also highlight the wrapper when it has the highlight class */
.listing-card-wrapper.highlight {
    background-color: #f0f8ff;
    border: 2px solid #0074D9;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 116, 217, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.listing-card-wrapper.highlight .listing-card {
    background-color: #f0f8ff;
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    display: block;
    
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #069;
  border-radius: 50%;
  padding: 5px 8px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  color: #fff;
  transition: color 0.3s, background 0.3s;
  z-index: 9999;
}

.heart.saved {
  background: #fff;
  color: red;
  border: 2px solid red;
}
.price {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: #069;
    border-bottom: 1px solid #ededed;
}

.address {
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #ededed;
}

.details, .subdivision, .property-type {
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

.attribution {
    font-size: 10px;
    color: #888;
    margin-top: 8px;
}

.hive-logo {
    width: 40px;
    margin-top: 5px;
}

/* 🔥 Status Dot */
.status-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-active .status-dot {
    background-color: green;
}

.status-other .status-dot {
    background-color: red;
}

.status-coming-soon .status-dot {
    background-color: orange;
}

/* 🔥 Marker Styling */
.leaflet-div-icon.price-marker {
    background-color: #0074D9;
    color: white;
    border-radius: 20px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    width: 60px;
    height: 30px;
    font-size: 14px;
}

.leaflet-div-icon.price-marker.hover {
    background-color: #FF4136;
}

.leaflet-tooltip.price-tooltip {
    background-color: #0074D9;
    color: white;
    border-radius: 20px;
    padding: 4px 8px;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    font-weight: bold;
    font-size: 14px;
}

.leaflet-popup-content-wrapper {
    background-color: #069;
    color: #fff;
    border: 2px solid #fff;
}

/* 🔥 Listing Summary */
#list-summary {
    background: #fff;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 0px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #888;
    text-align: center;
}

/* ✅ Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
}

/* ✅ Pagination Buttons */
.pagination button {
    background-color: #fff;
    color: #007cba;
    border: 1px solid #007cba;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    appearance: none; /* 🔥 Removes browser default */
}

/* ✅ On Hover */
.pagination button:hover {
    background-color: #007cba;
    color: white;
}

/* ✅ Active Page */
.pagination button.active {
    background-color: #007cba;
    color: white;
    font-weight: bold;
    border-color: #005fa3;
}

/* ✅ Disable Focus Outline (Optional) */
.pagination button:focus {
    outline: none;
}


/* 🔍 Map Filter Toggle */
#map-filter-toggle {
    margin-right: 8px;
}

/* 🔥 Search Suggest Bar */
.scp-search-suggest, .scp-search-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scp-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scp-search-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a365d;
}

.scp-advanced-search-link a {
    font-size: 14px;
    color: #1a365d;
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
}

.scp-advanced-search-link:hover {
    text-decoration: underline;
}

.scp-search-bar {
    display: flex;
    position: relative;
    margin-top: 10px;
}

#scp-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

#scp-search-button {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

#scp-search-button i {
    font-size: 35px;
}

#scp-suggest-results {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

#scp-suggest-results div {
    padding: 10px 14px;
    cursor: pointer;
}

#scp-suggest-results div:hover {
    background: #f0f0f0;
}

#scp-suggest-results .result-group {
    background: #eee;
    padding: 6px 10px;
}

/* 🔥 Font Awesome Icons */
.my-icon {
    color: #069;
    font-size: 30px;
    padding: 5px;
}

h3 .scp-search-header  {
    display: flex;
    align-items: center;
    gap: 8px;
}

h3 .fa-tag {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* ✅ Hide Lightbox Invisible Links */
.scp-gallery-hidden {
    display: none;
}
/* Image Gallery */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-primary {
    flex: 2 1 50%;
}

.gallery-primary img {
    width: 100%;
    border-radius: 0px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    flex: 1 1 50%;
    gap: 8px;
}

.thumbnail-item {
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    border-radius: 0px;
    object-fit: cover;
}

.see-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.1em;
}


/* 🔥 Gallery Layout */
.scp-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid #ededed;
    padding: 10px 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    width: 100%;
}

.scp-gallery-left {
    flex: 1;
}

.scp-gallery-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
    max-height: 400px;
}

/* ✅ The container for all thumbnails */
.scp-gallery-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

/* ✅ Each thumbnail (image or video) */
.scp-thumb {
    position: relative;
    overflow: hidden;
}

/* ✅ Thumbnail images — square, uniform */
.scp-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}

/* ✅ Overlay for image count or optional video text (if used) */
.scp-thumb .scp-more-overlay {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    padding: 6px;
    border-radius: 4px;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

/* 🔥 Overlay for "+X Photos" */
.scp-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
}

.scp-video-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
.scp-video-button:hover {
    background: #444;
}

.scp-tour-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.scp-tour-content {
  width: 80%;
  max-width: 960px;
  height: 80%;
  position: relative;
  background: #000;
}

.scp-tour-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.scp-tour-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}


/* ✅ Hide Lightbox Invisible Links */
.scp-gallery-hidden {
    display: none;
}

/* ✅ Property Details CSS */
.property-header {margin: 25px 0 0 25px ;}
.property-details-wrapper {
    margin: 25px 0;
}
.property-primary-field {
    text-align: left;
    
}

.property-primary-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.property-section {
    margin-bottom: 0px;
    border-bottom: 0px solid #ededed;
    width: 100%;
}

/* Exclude sidebar modal containers from general property-section styles */
.property-section.sidebar-modals {
    margin-bottom: 0;
    border-bottom: none;
    border: none;
    width: auto;
}
.top-bottom-border {border-top: 0px solid #ededed;border-bottom: 0px solid #ededed; padding: 15px 0 0 0;}
.property-section h3 {
    margin-bottom: 15px;
    border-bottom: 0px solid #ddd;
    padding-bottom: 5px;
}
.property-label p {font-weight: bold;}
.property-section h4 {
    margin: 15px 0px;
    border-bottom: 0px solid #ddd;
    padding-bottom: 10px;

}
.no-border {border-bottom: none;}

.public-remarks {background-color: #ededed;}

.shadow-off {box-shadow:none;}

.property-field {
    background: #fff;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 0px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    font-size: .9em;
}

.property-status {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
    
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
/* Detail Page Field Styling */
/* ✅ Property Details Responsive Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Listing Card Count Formatting */
.property-type-card-title {padding-bottom: 5px;}
.property-type-card-title p {font-weight: bold; color: #888;font-size: .8em; text-transform: capitalize;}
.details {  text-transform: capitalize;}

.property-count {font-weight: bold;}
.property-count p {color:#000; font-weight: bold; font-size: 1em; }

/* Public Remarks Formating */
.property-description {
    column-count: 1;
    column-gap: 40px;
    line-height: 1.6;
    font-size: 1em;
    color: #333;
    margin: 25px 0;
}

/*Results Search Bar */

/* 🔥 Property Filter Bar */
#property-filter-bar {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#property-filter-bar .filter-group {
    display: flex;
    flex-direction: column;
}

#property-filter-bar label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

#property-filter-bar input,
#property-filter-bar select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

#property-filter-bar input[type="number"]::-webkit-inner-spin-button,
#property-filter-bar input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#property-filter-bar .apply-filters-button {
    background-color: #1a365d;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

#property-filter-bar .apply-filters-button:hover {
    background-color: #0e2239;
}

/*Search Bar Styling*/
/* 🔍 Toolbar Container */
.scp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ✅ Search Terms Display */
.scp-search-terms {
    font-size: 16px;
    color: #333;
    flex: 1;
}

/* ✅ Toolbar Buttons */
.scp-toolbar-buttons {
    display: flex;
    gap: 10px;
}

.scp-toolbar-buttons button {
    background: #1a365d;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scp-toolbar-buttons button:hover {
    background: #0f2342;
}

.scp-toolbar-buttons i {
    font-size: 16px;
}

/* ✅ Filter Panel (Hidden by default) */
.scp-filter-panel {
    display: none;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.scp-filter-panel h4 {
    margin-bottom: 15px;
}

.scp-filter-panel .filter-group {
    margin-bottom: 15px;
}

.scp-filter-panel label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.scp-filter-panel input, 
.scp-filter-panel select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.scp-close-filters {
    background: #e0e0e0;
    color: #333;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.scp-close-filters:hover {
    background: #ccc;
}

/* NOTE: property-description responsive moved to consolidated section */

#list-summary, #pagination-container {
    display: block;
    width: 100%;
}

.property-field.two-columns ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

.property-field.one-column ul {
    columns: 1;
}
#property-search {
  width: 100%;
}

#main-layout {
  display: flex;
  width: 100%;
  gap: 20px;
}

#map-container {
  flex: 0 0 50%;
  min-width: 500px;
  height: 85vh;
}

#listings-container {
  flex: 0 0 50%;
  min-width: 400px;
}


/*____________________________________________
 Filter Panel - Slide-in Drawer Design
 _________________________________________ */

/* ✅ Filter Panel Container - Right Side Drawer */
#filter-panel {
    display: block !important;
    visibility: hidden;
    position: fixed;
    top: 18px;
    right: 0;
    width: 380px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #fff;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 999998; /* High but below Divi mobile menu */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
}

#filter-panel.open {
    visibility: visible;
    transform: translateX(0);
}

/* ✅ Filter Panel Header */
.filter-panel-header {
    position: sticky;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
   
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    padding-bottom: 0px;
}

/* ✅ Close Button - Enhanced for Mobile */
#close-filter-panel {
    background: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    font-size: 16px;
    color: white !important;
    cursor: pointer;
    width: 16px;
        height: 16px;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 9999;
    -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    touch-action: manipulation;
}

#close-filter-panel:hover,
#close-filter-panel:active {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05);
}

/* ✅ Filter Form Container */
#filter-panel form {
    padding: 20px 20px 100px 20px; /* Extra bottom padding so content isn't cut off */
   
}

/* ✅ Overlay when filter is open */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999997; /* Just below filter panel, below Divi mobile menu */
}

.filter-overlay.active {
    display: block;
}

/* NOTE: Filter panel 767px styles moved to consolidated section */

/* ✅ Section Labels */
#filter-panel label strong,
#filter-panel > form > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e5799;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    
}
#filter-panel label strong {
  border-bottom: 1px solid #e8f4fd;}

/* ✅ Property Type Checkbox Grid */
#filter-panel .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

#filter-panel .checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 5px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s ease;
    text-transform: capitalize;
}

#filter-panel .checkbox-grid label:hover {
    border-color: #1e5799;
    background: #e8f4fd;
}

#filter-panel .checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e5799;
    cursor: pointer;
    margin: 0;
}

#filter-panel .checkbox-grid label:has(input:checked) {
    background: #e8f4fd;
    border-color: #1e5799;
    color: #1e5799;
}

/* ✅ Field Rows - Compact */
#filter-panel .field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}


#filter-panel .field-row .field {
    flex: 1;
}

#filter-panel .field-row label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    /*text-transform: uppercase;  */
    letter-spacing: 0.3px;
}

/* ✅ Input Fields - Compact */
#filter-panel input[type="number"],
#filter-panel input[type="text"],
#filter-panel select {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    color: #495057;
    background: #fff;
    transition: all 0.15s ease;
}

#filter-panel input[type="number"]:focus,
#filter-panel input[type="text"]:focus,
#filter-panel select:focus {
    outline: none;
    border-color: #1e5799;
    box-shadow: 0 0 0 2px rgba(30, 87, 153, 0.1);
}

#filter-panel input::placeholder {
    color: #bbb;
    font-size: 11px;
}

/* ✅ Buttons Row Container */
.filter-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ✅ Buttons - Compact Row */
#filter-panel button[type="submit"],
#filter-panel #reset-filters {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
}

#filter-panel button[type="submit"] {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
}

#filter-panel button[type="submit"]:hover {
    background: linear-gradient(135deg, #164070 0%, #1e5799 100%);
    transform: translateY(-1px);
}

#filter-panel #reset-filters {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

#filter-panel #reset-filters:hover {
    background: #eee;
    border-color: #ccc;
}

/* ✅ Location Type Section */
#filter-panel .field-row .checkbox-grid,
#filter-panel .field-row .field .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns - Island & Mainland side by side */
    margin-bottom: 0;
    gap: 6px;
}

#filter-panel .field-row .checkbox-grid label,
#filter-panel .field-row .field .checkbox-grid label {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 11px;
    justify-content: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s ease;
    text-transform: capitalize;
}

/* ✅ Layout for Toolbar Row */
.scp-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-suggest-box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-suggest-box input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-suggest-box button {font-size: 30px; }
  /*padding: 8px 12px;
  background-color: none;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}*/

.toolbar-filter-button button {
  padding: 8px 10px;
  border: none;
  background-color: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ✅ Filter Chips Styling */
.scp-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.scp-filter-chip {
  background-color: #f1f1f1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.scp-filter-chip button {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  margin-left: 8px;
  cursor: pointer;
  line-height: 1;
}

.scp-filter-chip button:hover {
  color: #000;
}

/* Capitalize first letter of each word in the checkbox labels */
.field-row label {
  text-transform: capitalize;
}

/* ✅ Disable page scrolling when filter is open */
body.filter-open {
  overflow: hidden;
}

.sort-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 9999;
  margin-top: 5px;
}

.sort-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.sort-dropdown button:hover {
  background-color: #f1f1f1;
}
/* Cards Only View */
.cards-only #map-container {
  display: none;
}

.cards-only #listings-container {
  width: 100%;
}
.cards-only #main-layout {
  flex-direction: column;
}

.cards-only #listings-container {
  width: 100%;
  flex: 1 1 auto;
}

.cards-only #card-container {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Optional: auto fit more cards */
}
.map-only #main-layout {
  display: block;
  width: 100%;
}

.map-only #map-container {
  width: 100%;     /* Full viewport width */
  height: 100vh;    /* Full viewport height */
  margin: 0;
  padding: 0;
  flex: none;
}

.map-only body, .map-only html {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Optional: removes scrollbars */
}

.map-only #listings-container {
  display: none;
}
#scp-map-view {
  display: none;
}
/* 🔷 Modal Layout - DEFINITIVE Z-INDEX FIX */
.modal {
  display: none;
  position: fixed;
  z-index: 10000 !important; /* High enough for most cases */
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

/* Specific styling for sidebar modals to avoid conflicts with property sections */
.sidebar-modals {
  position: static !important;
  z-index: auto !important;
  display: block !important;
  border: none !important; /* Override accordion styles */
  border-radius: 0 !important; /* Override accordion styles */
  overflow: visible !important; /* Override accordion styles */
}

.sidebar-modals .modal {
  z-index: 10001 !important; /* Slightly higher than base modal */
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10002 !important; /* Higher than modal background */
}

/* 🔷 Close Button */
.close-button {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10003 !important; /* Highest to stay on top of modal content */
  color: #333;
}


.close-button:hover {
  color: Red;
}

/* 🔷 Grid Layout for Forms */
.scp-form-grid .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.scp-form-grid .form-row.full-width {
  flex-direction: column;
}

.scp-form-grid label {
  flex: 1;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.scp-form-grid input,
.scp-form-grid select,
.scp-form-grid textarea {
  margin-top: 5px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* 🔷 Textarea */
.scp-form-grid textarea {
  min-height: 80px;
  resize: vertical;
}

/* 🔷 Submit Button */
.scp-form-grid button[type="submit"] {
  background-color: #0066cc;
  color: white;
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.scp-form-grid button[type="submit"]:hover {
  background-color: #004fa3;
}

/* 🔷 Success/Error Message */
.form-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* ✅ Modal Open/Close Animations */
.modal {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
input:invalid,
select:invalid,
textarea:invalid {
  border: 2px solid red;
}

input:valid,
select:valid,
textarea:valid {
  border: 1px solid #ccc;
}


#request-info-button, #schedule-showing-button {
    border: 1px solid #666; 
    border-radius: 0px; 
    /*box-shadow: 0 0 3px rgba(0,0,0,0.2);*/
    font-size: 16px;
    padding: 8px 8px;
    margin: 10px auto;
    display: block;
    width: 100%;
    
}
/*Adding Sidebar*/ 

/* Old wrapper CSS - replaced by property-layout-container */
/*
.property-details-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
*/

/* Old layout CSS removed - using updated responsive layout below */

/* Property Navigation Section */
.property-navigation-section {
  margin-bottom: 20px;
  display: block !important;
  visibility: visible !important;
  min-height: 50px; /* Ensure it's visible even when empty */
  background: transparent; /* For debugging - you can remove this */
}

.property-navigation-section .scp-nav-buttons {
  display: block !important;
  visibility: visible !important;
  min-height: 40px; /* Ensure container is visible */
}

/* Details Page Nav Styling */
/* Navigation container */
.listing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 10px 0;
  border-top: 0px solid #eee;
  border-bottom: 0px solid #eee;
  flex-wrap: wrap;
}

.nav-left, .nav-center, .nav-right {
  flex: 1;
  text-align: center;
}


.nav-left {
  text-align: left;
}

.nav-right {
  text-align: right;
}

.nav-button {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  color: #0066cc;
  border: 1px solid #0066cc;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.nav-button:hover {
  background-color: #0066cc;
  color: white;
}

/* NOTE: .listing-nav 768px styles moved to consolidated section */

#scp-current-search {
  display: none;
}

.card-image-wrapper {
  position: relative;
}

.gform_wrapper .scp-save-mls {
  display: none !important;
}

/* ✅ Modal Form Layout */
#scp-register-modal .modal-content {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  z-index: 1001;
}

#scp-register-modal .close-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

#scp-register-modal .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

#scp-register-modal .two-columns > label {
  flex: 1;
}

#scp-register-modal .full-width {
  flex-direction: column;
}

#scp-register-modal input,
#scp-register-modal select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}

#scp-register-modal button[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* NOTE: #scp-register-modal 600px styles moved to consolidated section */

/* MLS Attribution - Full width at bottom of page */
.mls-attribution {
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 0 !important;
  padding: 20px !important;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  clear: both;
}

.mls-attribution p {
  margin: 0 !important;
  text-align: center;
  font-size: 12px !important;
  color: #555 !important;
  line-height: 1.5 !important;
}

.mls-attribution img {
  height: 40px !important;
  vertical-align: middle !important;
  margin-right: 10px !important;
}

/* ========================================
   SIDEBAR STYLES
======================================== */

/* Sidebar Heart/Save Icon */
.property-container-sidebar .heart {
  position: relative;
  top: 0;
  right: 0;
  margin: 0 auto 20px auto;
  display: block !important;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 40px;
  font-size: 28px;
  border-radius: 50%;
  background: #069;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.property-container-sidebar .heart:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.property-container-sidebar .heart.saved {
  background: #fff;
  color: red;
  border: 3px solid red;
}

/* Sidebar Action Buttons */
.sidebar-actions {
  margin-bottom: 25px !important;
}

.sidebar-actions button {
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 10px;
  background: #069;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-actions button:hover {
  background: #057db8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-actions button:last-child {
  margin-bottom: 0;
}

/* Sidebar Information Rows */
.sidebar-info {
  margin-bottom: 25px !important;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-info-row:last-child {
  border-bottom: none;
}

.sidebar-info-row .info-label {
  font-weight: 600;
  color: #333;
  min-width: 120px;
  flex-shrink: 0;
}

.sidebar-info-row .info-value {
  text-align: right;
  color: #666;
  word-break: break-word;
  max-width: 60%;
}

/* Special styling for price */
.sidebar-info-row:first-child .info-value {
  font-weight: 700;
  color: #069;
  font-size: 16px;
}

/* Sidebar Map Section */
.sidebar-map {
  margin-bottom: 20px !important;
}

.sidebar-map h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px !important;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #069;
}

.sidebar-map h4 i {
  color: #069;
  font-size: 18px;
}

.sidebar-map-container {
    height: 200px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Property Section Spacing */
.property-container-sidebar .property-section {
  margin-bottom: 25px;
  padding-bottom: 0;
  border-bottom: none;
}

.property-container-sidebar .property-section:last-child {
  margin-bottom: 0;
}

/* NOTE: Sidebar responsive adjustments moved to consolidated section */

/* Sidebar Map Enhancements */
.sidebar-map-container .leaflet-container {
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 200px !important;
    width: 100% !important;
}

/* Override flex layout when map is loaded */
.sidebar-map-container:has(.leaflet-container) {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
}

/* Map loading and loaded states */
.sidebar-map-container.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-map-container.map-loaded {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.sidebar-map-container .leaflet-popup-content-wrapper {
    border-radius: 5px;
}

.sidebar-map-container .leaflet-popup-content {
    font-size: 14px;
    line-height: 1.4;
}

/* Ensure map controls are visible */
.sidebar-map-container .leaflet-control-zoom {
    border: none;
    border-radius: 3px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-map-container .leaflet-control-zoom a {
    background-color: #fff;
    color: #333;
    border-bottom: 1px solid #ccc;
}

.sidebar-map-container .leaflet-control-zoom a:hover {
    background-color: #f4f4f4;
}

/* Attribution styling */
.sidebar-map-container .leaflet-control-attribution {
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Map Expand Hint */
.map-expand-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding: 5px;
    background: rgba(0, 105, 153, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-expand-hint:hover {
    background: rgba(0, 105, 153, 0.2);
    color: #069;
}

.map-expand-hint i {
    margin-right: 5px;
}

/* Sidebar Map Click Cursor */
.sidebar-map-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Expanded Map Modal */
.map-modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8) !important;
    animation: fadeIn 0.3s ease;
}

.map-modal.show {
    display: block !important;
}

.map-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.map-modal-content h3 {
    margin: 0;
    padding: 20px 20px 15px 20px;
    background: #069;
    color: white;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-modal-content h3 i {
    font-size: 20px;
}

.map-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.map-close-button:hover {
    color: #ffcccc;
}

.expanded-map-container {
    flex: 1;
    height: calc(85vh - 70px);
    width: 100%;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.expanded-map-container .leaflet-container {
    height: 100% !important;
    width: 100% !important;
    border-radius: 0 0 8px 8px;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* NOTE: Map modal responsive styles moved to consolidated section */

/* Ensure modal appears above everything */
.map-modal {
    z-index: 999999 !important;
}

.map-modal * {
    box-sizing: border-box;
}

/* ================================================
   RESPONSIVE PROPERTY DETAILS LAYOUT - SIDEBAR LEFT
   ================================================ */

/* Desktop Layout: Sidebar left, Content right */
.property-layout-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  align-items: flex-start;
  clear: both;
}

.property-layout-container .property-container-sidebar {
  flex: 0 0 28% !important;
  max-width: 28% !important;
  width: 28% !important;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  order: 1 !important; /* Sidebar first on desktop (left side) */
  float: none !important;
  /*position: relative;*/
}
.no-border {border: 0px solid #000 !important;}

.property-layout-container .property-container-right {
  flex: 0 0 70% !important;
  max-width: 70% !important;
  width: 70% !important;
  order: 2 !important; /* Content second on desktop (right side) */
  float: none !important;
}

/* NOTE: Property layout responsive styles moved to consolidated section */

/* ================================================
   PROPERTY DESCRIPTION TRUNCATION
   ================================================ */

.property-description.truncated {
  position: relative;
  margin: 25px 0;
}

.property-description .description-text {
  transition: all 0.3s ease;
  font-size: 14px;

}

.property-description .description-text.truncated-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.property-description .learn-more-btn {
  color: #007cba;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
  display: inline;
}

.property-description .learn-more-btn:hover {
  color: #005a87;
}

/* ================================================
   ACCORDION FUNCTIONALITY FOR PROPERTY SECTIONS - MODAL FRIENDLY
   ================================================ */

/* Only apply accordion styles to accordion sections, not all property-sections */
.property-section.accordion-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  /* REMOVED: overflow: hidden - this was creating stacking contexts that interfered with modals */
  transition: all 0.3s ease;
  /* Ensure modals can escape from accordion containers */
  position: static !important;
  z-index: auto !important;
}

.property-section.accordion-section h4 {
  background: #f8f9fa;
  margin: 0;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  user-select: none;
}

.property-section.accordion-section h4:hover {
  background: #e9ecef;
}

.property-section.accordion-section h4::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.property-section.active h4::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.property-section.accordion-section .property-details-grid {
  display: none;
  padding: 20px;
  background: #fff;
  /* MODAL FRIENDLY: Removed animation that could interfere with stacking */
  /* animation: slideDown 0.3s ease-out; */
  /* Ensure no stacking context interference */
  position: static !important;
  z-index: auto !important;
}

.property-section.active .property-details-grid {
  display: block;
}

/* Special styling for first section (description) - always open */
.property-section.accordion-section:first-child:not(.property-navigation) {
  border: none;
  border-radius: 0;
  margin-bottom: 20px;
}

.property-section.accordion-section:first-child:not(.property-navigation) h4 {
  display: none; /* Hide accordion behavior for description */
}

.property-section.accordion-section:first-child:not(.property-navigation) .property-details-grid {
  display: block !important;
  padding: 0;
}

/* Navigation section should always be visible */
.property-section.property-navigation {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 20px;
  border: none;
}

.property-section.property-navigation .scp-nav-buttons {
  display: block !important;
  visibility: visible !important;
}

/* NOTE: Accordion responsive styles moved to consolidated section */

/* No information message styling */
.no-info-message {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  margin: 0;
}

/* =========== Sidebar Classes (Non-Modal Containers) =========== */
.sidebar-actions,
.sidebar-info,
.sidebar-modals {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-actions.no-border,
.sidebar-info.no-border {
    border: none;
    box-shadow: none;
}

/* Modal Container - No visual styling needed */
.sidebar-modals {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* =========================================
   📱 Mobile Responsive Fixes (iPhone 12 Pro)
   ========================================= */

/* =====================================================================
   
   📱 CONSOLIDATED RESPONSIVE MEDIA QUERIES
   
   Organized from LARGEST to SMALLEST breakpoint for proper cascade.
   All device-specific styles consolidated here for easy maintenance.
   
   Breakpoints:
   - 1024px-768px : Tablet (iPad Pro Portrait)
   - 991px        : Pre-tablet / Large mobile
   - 980px        : Divi theme override
   - 900px        : General mobile
   - 768px        : Mobile / Small tablet
   - 767px        : Phone (single column)
   - 600px        : Small mobile
   - 576px-481px  : Larger phones
   - 480px        : Very small mobile (iPhone SE, etc.)
   
===================================================================== */

/* =========================================
   📱 TABLET (1024px - 768px)
   iPad Pro Portrait, iPad, Surface
   ========================================= */
/* --- START: Tablet 1024px-768px --- */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    
    /* Divi section padding override */
    .et_pb_section {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* Main layout - stack vertically */
    #main-layout {
        flex-direction: column !important;
        gap: 15px;
    }
    
    /* Map container - full width, reduced height */
    #map-container {
        width: 100% !important;
        min-width: 100% !important;
        height: 40vh !important;
        flex: none !important;
    }
    
    /* Listings container - full width */
    #listings-container {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    /* Cards - 2 columns */
    #card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    /* Toolbar row */
    .scp-toolbar-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-suggest-box {
        flex: 1 1 300px;
    }
    
    .toolbar-filter-button {
        flex: 0 0 auto;
    }
    
    /* Property layout - sidebar/content adjustments */
    .property-layout-container .property-container-sidebar {
        flex: 0 0 33% !important;
        max-width: 33% !important;
    }
    
    .property-layout-container .property-container-right {
        flex: 0 0 65% !important;
        max-width: 65% !important;
    }
}
    #filter-panel {
      margin-top: 134px;
      }
    
/* --- END: Tablet 1024px-768px --- */


/* =========================================
   📱 PRE-TABLET (991px and below)
   Sidebar stacks above content
   ========================================= */
/* --- START: Pre-tablet 991px --- */
@media screen and (max-width: 991px) {
    
    /* Property layout - stack sidebar above content */
    .property-layout-container {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .property-layout-container .property-container-sidebar {
        order: 1 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        margin-bottom: 15px;
        position: static !important;
    }
    
    .property-layout-container .property-container-right {
        order: 2 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Sidebar heart icon */
    .property-container-sidebar .heart {
        margin: 0 auto 15px auto;
        width: 40px;
        height: 40px;
        line-height: 34px;
        font-size: 24px;
    }
    
    .sidebar-actions button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .sidebar-info-row {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .sidebar-info-row .info-label {
        min-width: 100px;
    }
    
    .sidebar-map-container {
        height: 150px;
    }
    
    .property-title h1 {
        font-size: 16px;
    }
    
    .scp-search-header h2 {
        font-size: 16px;
    }
}
/* --- END: Pre-tablet 991px --- */


/* =========================================
   📱 DIVI THEME OVERRIDE (980px)
   Override Divi's default 50px padding
   ========================================= */
/* --- START: Divi 980px --- */
@media screen and (max-width: 980px) {
    
    .et_pb_section {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .et_pb_section.et_pb_section_first {
        padding-top: 10px !important;
    }
    
    #main-layout {
        flex-direction: column !important;
    }
    
    #map-container {
        width: 100% !important;
        min-width: 100% !important;
        height: 45vh !important;
    }
    
    #listings-container {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    #card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto !important;
    }
}
/* --- END: Divi 980px --- */


/* =========================================
   📱 GENERAL MOBILE (900px and below)
   Layout changes, column collapse
   ========================================= */
/* --- START: General 900px --- */
@media screen and (max-width: 900px) {
    
    #main-layout {
        flex-direction: column;
    }
    
    #map-container,
    #listings-container {
        width: 100%;
        height: 60vh;
    }
    
    #listings-container {
        height: auto;
        grid-template-columns: 1fr;
    }
    
    #card-container {
        grid-template-columns: 1fr;
    }
    
    .property-description {
        column-count: 1;
    }
}
/* --- END: General 900px --- */


/* =========================================
   📱 MOBILE / SMALL TABLET (768px and below)
   Divi fixes, gallery, sidebar, accordion
   ========================================= */
/* --- START: Mobile 768px --- */
@media screen and (max-width: 768px) {
    
    /* Divi container overrides */
    .et_pb_section .scp-listings-wrapper,
    .et_pb_row .scp-listings-wrapper,
    .et_pb_column .scp-listings-wrapper,
    .et_pb_section #main-layout,
    .et_pb_row #main-layout {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Only apply overflow-x:hidden to sections with our content, not globally */
    .et_pb_section:has(.scp-listings-wrapper),
    .et_pb_row:has(.scp-listings-wrapper) {
        overflow-x: hidden;
    }
    
    .et_pb_code_inner {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Main layout */
    #main-layout {
        flex-direction: column !important;
        gap: 10px;
        padding: 0 5px;
    }
    
    #map-container {
        display: none; /* Hide map on mobile - toggle with Map button */
    }
    
    #listings-container {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Toolbar buttons */
    .toolbar-filter-button {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .toolbar-filter-button button {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Listing nav - sticky at bottom */
    .listing-nav {
        position: sticky;
        bottom: 0;
        z-index: 999;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Sidebar info rows */
    .sidebar-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .sidebar-info-row .info-label {
        min-width: auto;
    }
    
    .sidebar-info-row .info-value {
        text-align: left;
        max-width: 100%;
    }
    
    /* Gallery improvements */
    .scp-gallery {
        flex-direction: column;
        gap: 15px;
    }
    
    .scp-gallery-left {
        flex: none;
    }
    
    .scp-gallery-left img {
        max-height: 250px;
    }
    
    .scp-gallery-right {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .scp-thumb img {
        aspect-ratio: 4/3;
    }
    
    /* Map modal */
    .map-modal-content {
        width: 95%;
        height: 90vh;
        margin: 5% auto;
    }
    
    .map-modal-content h3 {
        padding: 15px;
        font-size: 16px;
    }
    
    .map-close-button {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .expanded-map-container {
        height: calc(90vh - 60px);
    }
    
    /* Accordion improvements */
    .property-section h4 {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .property-section .property-details-grid {
        padding: 15px;
    }
}
/* --- END: Mobile 768px --- */


/* =========================================
   📱 PHONE (767px and below)
   Single column cards, filter panel full screen
   ========================================= */
/* --- START: Phone 767px --- */
@media screen and (max-width: 767px) {
    
    /* Single column cards */
    #card-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    #main-layout {
        flex-direction: column !important;
    }
    
    #map-container {
        width: 100% !important;
        min-width: 100% !important;
        height: 40vh !important;
    }
    
    #listings-container {
        width: 100% !important;
        min-width: 100% !important;
        padding: 10px !important;
    }
    
    /* Toolbar - stack vertically */
    .scp-toolbar-row {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .search-suggest-box {
        width: 100% !important;
    }
    
    /* Filter panel - full screen takeover */
    #filter-panel {
        width: 100% !important;
        max-width: 100% !important;
        top: 90px !important;
        height: calc(100% - 100px) !important;
        /* padding: 10px !important; */
        border-radius: 0 !important;
    }
    
    .filter-panel-header {
        padding: 10px 15px;
        top: 34px;
        margin: 0 0 20px 0;
    }
    
    #filter-panel #close-filter-panel {
        width: 20px !important;
        height: 20px !important;
        font-size: 16px !important;
    }
}
/* --- END: Phone 767px --- */


/* =========================================
   📱 SMALL MOBILE (600px and below)
   Register modal form adjustments
   ========================================= */
/* --- START: Small Mobile 600px --- */
@media screen and (max-width: 600px) {
    
    #scp-register-modal .form-row {
        flex-direction: column;
    }
}
/* --- END: Small Mobile 600px --- */


/* =========================================
   📱 LARGER PHONES (576px - 481px)
   Toolbar wrap adjustments
   ========================================= */
/* --- START: Larger Phones 576px-481px --- */
@media screen and (max-width: 576px) and (min-width: 481px) {
    
    .scp-toolbar-row {
        flex-wrap: wrap;
    }
}
/* --- END: Larger Phones 576px-481px --- */


/* =========================================
   📱 VERY SMALL MOBILE (480px and below)
   iPhone SE, small Android phones
   ========================================= */
/* --- START: Very Small Mobile 480px --- */
@media screen and (max-width: 480px) {
    
    /* Container & Layout Fixes */
    #property-search,
    .scp-listings-wrapper,
    #listings-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Toolbar Row */
    .scp-toolbar-row {
        flex-direction: column;
        gap: 10px;
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    /* Search Box */
    .search-suggest-box {
        width: 100%;
    }
    
    .search-suggest-box input {
        width: 100%;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Toolbar Buttons */
    .toolbar-filter-button {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .toolbar-filter-button button {
        padding: 8px 12px;
        font-size: 13px;
        flex: 0 0 auto;
    }
    
    /* Current Search Label */
    #scp-current-search {
        font-size: 12px;
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }
    
    /* Card Container */
    #card-container {
        grid-template-columns: 1fr !important;
        padding: 5px !important;
        gap: 15px;
    }
    
    .listing-card {
        max-width: 100%;
    }
    
    /* Summary & Pagination */
    #list-summary {
        font-size: 12px;
        text-align: center;
        padding: 10px 5px;
    }
    
    #pagination-container {
        justify-content: center;
    }
    
    /* Property Filter Bar */
    #property-filter-bar {
        padding: 15px;
        gap: 10px;
    }

    #property-filter-bar label {
        font-size: 13px;
    }

    #property-filter-bar input,
    #property-filter-bar select {
        font-size: 13px;
    }
    
    /* Filter Panel */
    #filter-panel .field-row {
        flex-direction: row;
        gap: 10px;
    }
    
    #filter-panel .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #filter-panel {
        padding: 0px;
    }
    
    #filter-panel form {
        padding: 20px;
        margin-top: 20px;
    }
    
    #filter-panel-header {
        padding: 0px;
        top: 0;
    }
    
    .filter-buttons-row {
        flex-direction: row;
    }
    
    #filter-panel button[type="submit"],
    #filter-panel #reset-filters {
        flex: 1;
    }
    
    /* Gallery */
    .scp-gallery-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Divi Theme Overrides */
    .et_pb_section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .et_pb_row {
        padding: 0 10px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .et_pb_column {
        padding: 0 !important;
    }
    
    .et_pb_code_inner {
        padding: 0 !important;
    }
}
/* --- END: Very Small Mobile 480px --- */


/* =====================================================================
   END OF CONSOLIDATED RESPONSIVE MEDIA QUERIES
===================================================================== */


/* =========================================
   Fix Filter Panel Z-index for all sizes
   ========================================= */
#filter-panel {
    z-index: 9999999999999999 !important; /* Above everything including nav */
    position: fixed !important;
}

/* Make sure filter panel content is interactive */
#filter-panel * {
    pointer-events: auto !important;
}


/* =====================================================================
   SAVED SEARCHES - My Account Tab Styles
===================================================================== */

.saved-searches-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.saved-searches-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.saved-searches-header h3 i {
    margin-right: 8px;
    color: #c9a227;
}

.saved-searches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.saved-search-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.saved-search-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.search-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.search-card-header .search-name {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.notify-badge {
    background: linear-gradient(135deg, #c9a227 0%, #e6c45a 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notify-badge i {
    font-size: 0.7rem;
}

.search-card-criteria {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    line-height: 1.5;
}

.search-card-criteria i {
    color: #888;
    margin-right: 6px;
}

.search-card-meta {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.search-card-meta i {
    margin-right: 4px;
}

.search-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-card-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.search-card-actions .btn-primary {
    background: linear-gradient(135deg, #c9a227 0%, #e6c45a 100%);
    color: #fff;
}

.search-card-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b8931f 0%, #d4b34e 100%);
    transform: translateY(-1px);
}

.search-card-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.search-card-actions .btn-secondary:hover {
    background: #e0e0e0;
}

.search-card-actions .btn-danger {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 10px;
}

.search-card-actions .btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

/* Edit Search Modal */
.edit-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-search-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.edit-search-modal .modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-search-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.edit-search-modal .modal-close:hover {
    color: #333;
}

.edit-search-modal h2 {
    margin: 0 0 25px;
    font-size: 1.4rem;
    color: #333;
}

.edit-search-modal h2 i {
    margin-right: 10px;
    color: #c9a227;
}

.edit-search-modal .form-group {
    margin-bottom: 20px;
}

.edit-search-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.edit-search-modal .form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.edit-search-modal .form-group input[type="text"]:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.edit-search-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.edit-search-modal .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.edit-search-modal .notification-options {
    margin-left: 28px;
    padding-left: 15px;
    border-left: 2px solid #c9a227;
}

.edit-search-modal .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.edit-search-modal .radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
}

.edit-search-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.edit-search-modal .form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.edit-search-modal .form-actions .btn-primary {
    background: linear-gradient(135deg, #c9a227 0%, #e6c45a 100%);
    color: #fff;
}

.edit-search-modal .form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b8931f 0%, #d4b34e 100%);
}

.edit-search-modal .form-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.edit-search-modal .form-actions .btn-secondary:hover {
    background: #e0e0e0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin: 0 0 10px;
    color: #666;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c9a227 0%, #e6c45a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.empty-state .btn:hover {
    background: linear-gradient(135deg, #b8931f 0%, #d4b34e 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .saved-searches-list {
        grid-template-columns: 1fr;
    }
    
    .search-card-actions {
        flex-direction: column;
    }
    
    .search-card-actions .btn {
        justify-content: center;
    }
}

/* ====================================
   SAVE SEARCH MODAL STYLES
   ==================================== */

/* Modal Overlay */
.scp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content Box */
.scp-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Close Button */
.scp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.scp-modal-close:hover {
    color: #333;
}

/* Modal Header */
.scp-modal-content h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scp-modal-content h2 i {
    color: #c9a227;
}

.scp-modal-subtitle {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
}

/* Form Groups */
.scp-form-group {
    margin-bottom: 20px;
}

.scp-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.scp-form-group label .required {
    color: #e74c3c;
}

.scp-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.scp-form-group input[type="text"]:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.scp-form-group input[type="text"]::placeholder {
    color: #aaa;
}

/* Checkbox Styles */
.scp-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.scp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #c9a227;
    cursor: pointer;
}

.scp-checkbox-label span {
    color: #333;
    font-size: 14px;
}

/* Radio Group Styles */
.scp-notification-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: -10px;
    border-left: 3px solid #c9a227;
}

.scp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scp-radio-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.scp-radio-label:hover {
    background: #fff;
}

.scp-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #c9a227;
    cursor: pointer;
}

.scp-radio-label span {
    color: #333;
    font-size: 14px;
}

/* Search Summary Box */
.scp-search-summary {
    margin-top: 5px;
}

.scp-summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Form Action Buttons */
.scp-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.scp-form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scp-form-actions .btn-secondary {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
}

.scp-form-actions .btn-secondary:hover {
    background: #e5e5e5;
    color: #333;
}

.scp-form-actions .btn-primary {
    background: linear-gradient(135deg, #c9a227 0%, #ddb84d 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.scp-form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b8931f 0%, #c9a227 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.scp-form-actions .btn-primary:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Save Search Button in Toolbar */
#scp-save-search-button {
    background: linear-gradient(135deg, #c9a227 0%, #ddb84d 100%);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
}

#scp-save-search-button:hover {
    background: linear-gradient(135deg, #b8931f 0%, #c9a227 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

#scp-save-search-button i {
    font-size: 14px;
}

/* Notification Toast */
#scp-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000001;
}

.scp-notification {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scp-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.scp-notification.info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c5dc 100%);
}

.scp-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal responsive */
@media (max-width: 520px) {
    .scp-modal-content {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .scp-modal-content h2 {
        font-size: 20px;
    }
    
    .scp-form-actions {
        flex-direction: column;
    }
    
    .scp-form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    #scp-save-search-button {
        padding: 8px 14px;
        font-size: 13px;
    }
}
