/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
    1. GENERAL UTILITIES
    2. GRID & LAYOUT (Map/List)
    3. LISTING CARD STYLES
    4. MAP STYLES (Leaflet & Popups)
    5. PRICE MARKER STYLES
    6. PAGINATION
    7. COLLAPSIBLE SEARCH FORM
    8. ENHANCED VERMONT PROPERTY SEARCH
    9. PROPERTY DETAIL - COMMON
   10. PROPERTY DETAIL - FULL-SCREEN LAYOUT
   11. PROPERTY DETAIL - SLIDESHOW
   12. PROPERTY DETAIL - SECTIONS & COMPONENTS (Price, Grid, Features, Description, Map)
   13. PROPERTY DETAIL - TYPE SPECIFIC (Residential, Commercial, Land, Condo, Multi-Family)
   14. PROPERTY DETAIL - MORTGAGE CALCULATOR
   15. PROPERTY DETAIL - NEARBY PROPERTIES
   16. RESPONSIVE DESIGN (Media Queries)
*/

/* ==========================================================================
   1. GENERAL UTILITIES
   ========================================================================== */

.cb{
clear:both;
height:1px;
width:100%
}

/* ==========================================================================
   2. GRID & LAYOUT (Map/List)
   ========================================================================== */

#mainContainer {
    display: flex;
    flex-wrap: nowrap;
    transition: margin-top 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.map-column {
    position: fixed;
    top: 141px;
    width: 45%;
    height: calc(100vh - 141px);
}

.propertySearchMap {
    width: 100%;
    height: calc(100vh - 282px);
}

/* List column: full width when map is in slide-out (default on properties list page) */
.list-column {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin-left: 0;
    box-sizing: border-box;
}

#listColumn.ps-idx-properties-list-wrap,
#listColumn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#propertiesList.ps-idx-properties-grid,
#propertiesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

#propertiesList .pagination-info {
  grid-column: 1 / -1;
}

/* Desktop: 4 columns when viewport matches theme content (1400px) */
@media (min-width: 1400px) {
  #propertiesList.ps-idx-properties-grid,
  #propertiesList {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Desktop: 3 columns */
@media (min-width: 900px) and (max-width: 1399px) {
  #propertiesList.ps-idx-properties-grid,
  #propertiesList {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Tablet: 2 columns */
@media (min-width: 600px) and (max-width: 899px) {
  #propertiesList.ps-idx-properties-grid,
  #propertiesList {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile: 1 column */
@media (max-width: 599px) {
  #propertiesList.ps-idx-properties-grid,
  #propertiesList {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Shortcode: property grid on any page – same multi-column layout as main search, full width of container.
   font-size and line-height match property search list context (body) so card typography is consistent. */
.ps-idx-search-shortcode-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.6;
}
/* ID selector for higher specificity so theme/other CSS doesn't force single column */
#ps-idx-search-shortcode-grid,
.ps-idx-search-shortcode-grid.ps-idx-properties-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}
#ps-idx-search-shortcode-grid .propertyCard,
.ps-idx-search-shortcode-grid .propertyCard {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1400px) {
  #ps-idx-search-shortcode-grid,
  .ps-idx-search-shortcode-grid.ps-idx-properties-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 900px) and (max-width: 1399px) {
  #ps-idx-search-shortcode-grid,
  .ps-idx-search-shortcode-grid.ps-idx-properties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  #ps-idx-search-shortcode-grid,
  .ps-idx-search-shortcode-grid.ps-idx-properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 599px) {
  #ps-idx-search-shortcode-grid,
  .ps-idx-search-shortcode-grid.ps-idx-properties-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
.ps-idx-search-shortcode-link-wrap {
  margin-top: 1.5em;
}

/* Content width layout: constrain properties list (Dashboard → PS IDX Search → Properties list layout) */
.ps-idx-properties-content-width-wrap {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Map/list view toggle (legacy; map is now in slide-out on properties list page) */
#mainContainer.view-map #mapColumn { display: block; width: 100%; position: relative; top: 0; height: calc(100vh - 141px); }
#mainContainer.view-map #map.propertySearchMap { height: calc(100vh - 141px); }
#mainContainer.view-map .list-column { display: none; }

/* Map/List View Toggle Bar */
.view-toggle-bar {
	position: sticky;
	top: 141px;
	z-index: 9990;
	background: #fff;
	border-bottom: 1px solid #e9ecef;
	padding: 10px 15px;
}
.view-toggle-btn {
	background: #152d4d;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	font-family: 'Lato', sans-serif;
	font-weight: 600;
	cursor: pointer;
}
.view-toggle-btn:hover { background: #1a3557; }


/* ==========================================================================
   3. LISTING CARD STYLES
   ========================================================================== */

.propertyCard {
  width: 100%;
  min-width: 0;   /* allow grid cell to shrink */
  height: 425px;
  position: relative;
  padding-bottom: 10px;
}

.ListingCard{
width:100%;
height:100%;
text-align:center;
transition: transform 0.6s;
transform-style:preserve-3d;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.ListingCard a,
.ListingCard a:hover,
.ListingCard a:visited {
  text-decoration: none;
  color: inherit;
}

.ListingImg{
height:260px;
overflow:hidden;
}
.ListingImg img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

.ListingTown{
letter-spacing:.3em;
font-size:1.125em;
font-family:cinzel;
color: #152d4d;
}

.ListingAddress{
letter-spacing:.2em;
font-size:.75em;
font-family:cinzel;
}

.ListingPrice{
	letter-spacing:.5em;
	font-size:.9em;
	font-weight:500;
	font-family:Lato, sans-serif;
}

.ListingMls{
	letter-spacing:.2em;
	font-size:1em;
	font-family:Lato, sans-serif;
}

.ListingSpecs{
	letter-spacing:.1em;
	font-size:.8em;
	font-family:Lato, sans-serif;
}

.listingStatus{
    font-size:1.2em;
    font-weight:700;
    font-family:Lato, sans-serif;
    color:#152d4d;
    text-align:center;
    margin-top:10px;
}

/* ==========================================================================
   4. MAP STYLES (Leaflet & Popups)
   ========================================================================== */

.leaflet-container {
    font-family: 'Lato', sans-serif;
}

.leaflet-popup-content-wrapper {
    padding: 0px 0 0 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #ffffff;
}

.leaflet-popup-tip-container {
    display: none; /* Removes the little arrow at the bottom of the popup */
}

.leaflet-popup-content {
    margin: 0 !important;

    font-family: 'Lato', sans-serif;
    font-size: 14px;
    margin: 8px 12px;

    padding: 0;
}

.leaflet-popup-content img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px 5px 5px 5px; /* Removes any default border radius */
    object-fit: cover; /* Ensures the image covers the entire area */
}

.mapPopup{
	width:300px;
}

.mapAddress{
    width:100%;
    text-align:center;
    border-radius: 5px 5px 0 0; 
    position:absolute;
    z-index:9;
    background-color: rgba(0,0,0,.5);
    color:#fff;
    font-weight:700;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    line-height: 1.4;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mapPrice{
	width:100%;
	text-align:center;
	border-radius: 0px 0px 5px 5px; 
	position:absolute;
	bottom:0px;
	z-index:9;
	background-color: rgba(0,0,0,.5);
	color:#fff;
	font-weight:700;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    line-height: 1.4;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaflet-popup-close-button{z-index:10; color:#fff;}

.town-tooltip {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.town-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.8);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    background: #fff;
    border: 1px solid #ffffff;
}

.leaflet-popup-close-button {
    color: #6c757d;
    font-size: 18px;
    font-weight: bold;
}

.leaflet-popup-close-button:hover {
    color: #495057;
}

/* Marker cluster colors: small = #24386A, medium = yellow (default), large = red (override CDN Default.css) */
.marker-cluster-small,
.marker-cluster-small div {
    background-color: rgba(36, 56, 106, 0.6) !important;
}
.marker-cluster-large,
.marker-cluster-large div {
    background-color: rgba(231, 76, 60, 0.6) !important;
}
.leaflet-oldie .marker-cluster-small,
.leaflet-oldie .marker-cluster-small div {
    background-color: #24386A !important;
}
.leaflet-oldie .marker-cluster-large,
.leaflet-oldie .marker-cluster-large div {
    background-color: rgb(231, 76, 60) !important;
}

/* ==========================================================================
   5. PRICE MARKER STYLES
   ========================================================================== */

.custom-icon .price-marker {
    position: relative;
    text-align: center;
    width: auto;
    height: auto;
}

.custom-icon .price-box {
    background-color: #152d4d;
    color: white;
    padding: 5px 10px;
    border-radius: 0px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

.custom-icon .carrot {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #152d4d;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */

.pagination-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #152d4d;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #152d4d;
    color: #152d4d;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #152d4d;
    color: white;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: rgba(12, 26, 46, 0.1);
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* Pagination info styling */
.pagination-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.pagination-info p {
    margin: 0;
    font-weight: 500;
}


/* ==========================================================================
   7. SIDE TABS & SLIDE-OUT PANELS (Search + Map from left)
   ========================================================================== */

/* Left side tab buttons */
/* Tab strip: always on top so Search/Map buttons stay clickable to close panels */
.ps-idx-side-tabs {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10003;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 0;
	box-shadow: 2px 0 12px rgba(0,0,0,0.15);
	border-radius: 0 8px 8px 0;
	background: #152d4d;
	transition: transform 0.35s ease;
}

/* Slide tabs out with search panel on desktop */
@media (min-width: 768px) {
	body.search-active .ps-idx-side-tabs {
		transform: translateY(-50%) translateX(380px);
	}
	
	.ps-idx-map-panel.active ~ .ps-idx-side-tabs,
	.ps-idx-map-panel[aria-hidden="false"] ~ .ps-idx-side-tabs {
		transform: translateY(-50%) translateX(100vw);
	}
}

.ps-idx-side-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 48px;
	min-height: 48px;
	padding: 10px 8px;
	background: #152d4d;
	color: #fff;
	border: none;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	font-weight: 600;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.5px;
	transition: background 0.2s ease;
}
.ps-idx-side-tab:hover { background: #1a3557; }
.ps-idx-side-tab.active { background: #24386a; }
.ps-idx-tab-icon { font-size: 18px; }
.ps-idx-tab-text { transform: rotate(-90deg); white-space: nowrap; }

/* Bounce animation for slide panels */
@keyframes slideInBounce {
	0% {
		transform: translateX(-100%);
	}
	60% {
		transform: translateX(10px);
	}
	80% {
		transform: translateX(-5px);
	}
	100% {
		transform: translateX(0);
	}
}

/* Slide-out panel base (search: narrow; map: edge-to-edge via .ps-idx-map-panel) */
.ps-idx-slide-panel {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 380px;
	max-width: calc(100vw - 60px);
	z-index: 10001;
	background: #fff;
	box-shadow: 4px 0 24px rgba(0,0,0,0.15);
	transform: translateX(-100%);
	transition: transform 0.35s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ps-idx-slide-panel.active {
	transform: translateX(0);
	animation: slideInBounce 0.6s ease-out;
}
.ps-idx-slide-panel[aria-hidden="false"] { 
	transform: translateX(0);
	animation: slideInBounce 0.6s ease-out;
}
.ps-idx-slide-panel[aria-hidden="true"] { 
	transform: translateX(-100%);
	animation: none;
}

/* Search panel: on top of content and on top of map when both are open; tabs stay above so Search button can close it */
.property-search-container.ps-idx-search-panel {
	visibility: visible;
	opacity: 1;
	right: auto;
}
.property-search-container.ps-idx-search-panel.active,
.property-search-container.ps-idx-search-panel[aria-hidden="false"] {
	transform: translateX(0);
	z-index: 10002;
	animation: slideInBounce 0.6s ease-out;
}
.property-search-container.ps-idx-search-panel .search-content {
	max-width: none;
	margin: 0;
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

/* Map panel: edge-to-edge (full viewport width and height) */
.ps-idx-map-panel {
	width: 100vw;
	max-width: 100vw;
	left: 0;
	top: 0;
	bottom: 0;
	height: 100vh;
}
.ps-idx-map-panel .propertySearchMap {
	min-height: 50vh;
}
/* Keep popups above map panel so they stay visible and don't close unexpectedly */
.ps-idx-map-panel .leaflet-popup {
	z-index: 10004 !important;
}

/* Map panel */
.ps-idx-map-panel .ps-idx-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 2px solid #e9ecef;
	flex-shrink: 0;
}
.ps-idx-map-panel .ps-idx-panel-header h3 {
	margin: 0;
	font-size: 1.25rem;
	color: #152d4d;
	font-family: 'Cinzel', serif;
}
.ps-idx-panel-close {
	background: none;
	border: none;
	font-size: 22px;
	color: #6c757d;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	transition: color 0.2s;
}
.ps-idx-panel-close:hover { color: #152d4d; }
.ps-idx-map-panel-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.ps-idx-map-panel .propertySearchMap {
	width: 100%;
	flex: 1;
	min-height: 300px;
}
/* Map loads more properties on pan/zoom; hide pagination in map panel */
.ps-idx-map-panel .pagination-container {
	display: none;
}

/* Overlay when a panel is open (mobile) */
.property-search-container .search-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: -1;
}
.property-search-container.active .search-overlay,
.property-search-container[aria-hidden="false"] .search-overlay {
	opacity: 1;
	pointer-events: auto;
}
.ps-idx-map-panel-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 10000;
}
.ps-idx-map-panel.active + .ps-idx-map-panel-overlay,
.ps-idx-map-panel[aria-hidden="false"] + .ps-idx-map-panel-overlay {
	opacity: 1;
	pointer-events: auto;
}

/* Hide side tabs on mobile */
@media (max-width: 767px) {
	.ps-idx-slide-panel { width: 100%; max-width: 100%; }
	.ps-idx-side-tab { width: 44px; min-height: 44px; font-size: 11px; }
	
	/* Hide side tabs when search or map panel is open on mobile */
	body.search-active .ps-idx-side-tabs,
	.ps-idx-map-panel.active ~ .ps-idx-side-tabs,
	.ps-idx-map-panel[aria-hidden="false"] ~ .ps-idx-side-tabs {
		display: none !important;
	}
}

.search-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e9ecef;
}
.search-header h3 {
	margin: 0;
	color: #152d4d;
	font-family: 'Cinzel', serif;
	font-size: 1.5rem;
	font-weight: 700;
}
.search-close-btn {
	background: none;
	border: none;
	font-size: 24px;
	color: #6c757d;
	cursor: pointer;
	padding: 5px;
	transition: color 0.3s ease;
}
.search-close-btn:hover { color: #152d4d; }
@media (min-width: 768px) { .search-close-btn { display: none; } }

.search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}
@media (max-width: 767px) {
	.search-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 20px; }
}

.search-actions { display: flex; gap: 15px; justify-content: center; padding: 0 20px 20px; }
@media (min-width: 768px) { .search-actions { padding: 0; } }

.search-btn, .clear-btn {
	padding: 15px 30px; border: none; border-radius: 8px; font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s ease; flex: 1; max-width: 200px;
}
.search-btn { background: #152d4d; color: #fff; }
.search-btn:hover { background: #1a3557; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(21,45,77,.3); }
.clear-btn { background: #6c757d; color: #fff; }
.clear-btn:hover { background: #5a6268; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(108,117,125,.3); }

/* Shortcode: predefined search link */
.ps-idx-search-link { color: inherit; text-decoration: none; }
.ps-idx-search-link:hover { text-decoration: underline; }
.ps-idx-search-link-button {
	display: inline-block; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; color: #fff; background: #152d4d; transition: all .3s ease; border: none; cursor: pointer;
}
.ps-idx-search-link-button:hover { background: #1a3557; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(21,45,77,.3); text-decoration: none; color: #fff; }

/* ==========================================================================
   8. ENHANCED VERMONT PROPERTY SEARCH
   ========================================================================== */

/* Property Counter */
.property-counter {
    background: #152d4d;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(21, 45, 77, 0.2);
}

.property-counter #property-count {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
}

/* Search Form Container */
.search-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.search-form-container .form-group {
    margin-bottom: 25px;
}

/* Form Group Base Styles */
.form-group { display: flex; flex-direction: column; }
.form-group label {
	margin-bottom: 8px; color: #152d4d; font-family: 'Lato', sans-serif; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
}
.form-group input, .form-group select {
	padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 8px; font-family: 'Lato', sans-serif; font-size: 16px; transition: all 0.3s ease; background: #fff;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: #152d4d; box-shadow: 0 0 0 3px rgba(21,45,77,.1); }

/* Town Selector Styles */
.town-selector-group {
    position: relative;
}

.town-selector-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

.town-selector-container:focus-within {
    border-color: #152d4d;
    box-shadow: 0 0 0 3px rgba(21, 45, 77, 0.1);
}

.town-search-input-container {
    position: relative;
    margin-bottom: 15px;
}

#town-search {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

#town-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Town Suggestions Dropdown */
.town-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.town-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.2s ease;
}

.town-suggestion:hover {
    background-color: #f8f9fa;
}

.town-suggestion:last-child {
    border-bottom: none;
}

/* Selected Towns Display */
.selected-towns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}

.town-chip {
    display: inline-flex;
    align-items: center;
    background: #152d4d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    animation: slideIn 0.3s ease-out; /* Chip animation */
}

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

.town-chip .town-name {
    line-height: 1;
}

.town-chip .remove-town {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.town-chip .remove-town:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.remove-town:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Editable Dropdown Styles */
.editable-dropdown {
    position: relative;
}

.dropdown-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.dropdown-input:focus {
    outline: none;
    border-color: #152d4d;
    box-shadow: 0 0 0 3px rgba(21, 45, 77, 0.1);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-option {
    display: flex;            /* Align children horizontally */
    align-items: center;      /* Vertically center the checkbox with text */
    padding: 2px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.2s ease;
}

.dropdown-option input[type="checkbox"] {
  width:10px;
    margin-right: 0px; 
    margin-left: 0px; /* Space between checkbox and label text */
    display:none;
}
.dropdown-option input[type="checkbox"]:checked + label {
    background-color: #e0f7fa; /* light blue or any color you like */
}
/*
.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.2s ease;
}
*/
.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-checkbox {
    position: relative;
    display: inline-block;
    width: 100%;
}
.dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 8px;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}
.dropdown-content.show {
    display: block;
}

/* Traditional Price Dropdowns (fallback) */
.price-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.price-dropdown:focus {
    outline: none;
    border-color: #152d4d;
    box-shadow: 0 0 0 3px rgba(21, 45, 77, 0.1);
}

/* Properties Container */
#properties-container {
    margin-top: 30px;
}

/* Property List Styles (Search Results) */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.property-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-card h2 {
    color: #152d4d;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.property-description {
    color: #6c757d;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
}

.property-price {
    color: #27ae60;
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-location {
    color: #495057;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.view-details-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* No Properties Message */
.no-properties-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 25px;
}

.no-properties-message p {
    color: #6c757d;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.no-properties-message p:last-child {
    margin-bottom: 0;
}

.no-properties-message a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.no-properties-message a:hover {
    text-decoration: underline;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus Management */
.town-search-input-container:focus-within .town-suggestions {
    display: block;
}

/* Accessibility Improvements */
.town-suggestion:focus,
.dropdown-option:focus {
    background-color: #e3f2fd;
    outline: 2px solid #3498db;
    outline-offset: -2px;
}

/* Custom scrollbar for dropdowns */
.town-suggestions::-webkit-scrollbar,
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.town-suggestions::-webkit-scrollbar-track,
.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.town-suggestions::-webkit-scrollbar-thumb,
.dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.town-suggestions::-webkit-scrollbar-thumb:hover,
.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==========================================================================
   9. PROPERTY DETAIL - COMMON
   ========================================================================== */

/* Property Detail Page Layout */
.property-detail-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.property-detail-main {
    flex: 2;
    min-width: 0; /* Prevents flex item from overflowing */
}

.property-detail-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Property Detail Content Styling */
.property-detail-main h1 {
    color: #333;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
}

.property-detail-main p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.property-detail-main strong {
    color: #333;
    font-weight: 600;
}

/* Status Styling */
.status-active {
    color: #28a745;
}

.status-pending {
    color: #ffc107;
}

.status-sold {
    color: #dc3545;
}

/* ==========================================================================
   10. PROPERTY DETAIL - FULL-SCREEN LAYOUT
   ========================================================================== */

/* Full-Screen Property Detail Layout - no horizontal clip so slideshow stays centered when scrolling */
.property-detail-fullscreen {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    background: #fff;
    overflow-x: visible;
}

/* Allow full-width slideshow breakout on property detail (theme wrappers must not clip) */
body.ps-idx-property-detail-page,
body.ps-idx-property-detail-page .site-content,
body.ps-idx-property-detail-page #content,
body.ps-idx-property-detail-page main {
    overflow-x: visible;
    max-width: 100%;
}

/* Hide duplicate address/location block; theme page header shows address + city, state zip */
body.ps-idx-property-detail-page .property-detail-fullscreen > .property-header-section {
    display: none;
}



/* Full-Screen Content Area */
.property-content-fullscreen {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    background: white;
    padding: 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Property Header */
.property-header-section {
    /*background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.9) 100%);*/
    color: #152d4d;
	background-color:#fff;
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 3;
	border-bottom:1px solid #152d4d;
}

.property-address {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.property-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 2px solid rgba(0, 123, 202, 0.2);
}
.property-header h1 {
    margin-bottom: 10px;
    color: #333;
    font-family: 'Cinzel', serif;
    font-size: 28px;
}

.property-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.property-price {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #27ae60;
}

.property-location {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Content Grid */
.property-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Property Details Column */
.property-details-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 123, 202, 0.3);
}

.property-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 202, 0.2);
}

.stat-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.content-section p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin: 0;
}

/* Widgets Column */
.property-widgets-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

/* ==========================================================================
   11. PROPERTY DETAIL - SLIDESHOW
   ========================================================================== */

/* Property detail slideshow section only — do not style theme home hero .slideshow-container */
.slideshow-section {
    padding: 20px 0;
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-section .content-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.slideshow-section .slideshow-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-slideshow {
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Default wrapper: fixed height (used on homepage for cropped hero-style) */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-section .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slideshow-section .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshow-section .slideshow-wrapper .slide img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* --- Property detail page only: slideshow full viewport width, content centered, no cropping --- */
/* Break out of theme's content column so section spans full viewport; then center inner content */
.property-detail-fullscreen .slideshow-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.property-detail-fullscreen .slideshow-section .content-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.property-detail-fullscreen .slideshow-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Detail: tall viewport height, no max-height cap - full image visible, no cropping when scrolling */
.property-detail-fullscreen .slideshow-wrapper {
    height: 85vh;
    min-height: 450px;
    max-height: none;
    overflow: hidden;
}

.property-detail-fullscreen .slideshow-wrapper .slide img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
   	border:2px solid rgba(255, 255, 255, 0.7); /* white transparent */
    display: flex;
    pointer-events: none; /* allows clicks to pass through if needed */
}

.slideshow-townName {
    font-size: 2rem;
    font-weight: 100;
    position: absolute;
    bottom: -12px;  /* slightly below the bottom edge of border */
    left: 20px;     /* padding from left edge of border */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Slideshow Navigation */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-nav:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.slideshow-nav.prev {
    left: 0px;
}

.slideshow-nav.next {
    right: 0px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 22px;
    right: 22px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* Thumbnail Carousel */
.thumbnail-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail.active {
    border-color: #152e4d;
    transform: scale(1.05);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(21, 46, 77, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 90px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #152e4d;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

/* Action Buttons Section */
.action-buttons-section {
    background: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 3;
		border-bottom:1px solid #152d4d;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #152d4d;
	color:#152d4d;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.action-btn:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 202, 0.2);
}

.action-btn .smIC {
    font-size: 20px;
	  
}

.action-btn .text {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 100;
    color: #495057;
}

/* ==========================================================================
   12. PROPERTY DETAIL - SECTIONS & COMPONENTS
   ========================================================================== */

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 20px;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background-color: #f5f5f5;
}

.collapsible-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-family: 'Lato', sans-serif;
}

.toggle-icon {
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
    transition: transform 0.4s ease;
    display: inline-block;
}

.toggle-icon.up {
    transform: rotate(180deg);
}

.toggle-icon.down {
    transform: rotate(0deg);
}

.collapsible-content {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, padding 0.6s ease-out;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding: 0;
}

/* Property Content and Sidebar Layout */
.property-content-sidebar-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.property-main-content {
    flex: 2;
    min-width: 0;
}

.property-sidebar {
	
    position: sticky;
    top: 20px; /* Small offset from container top */
    width: 320px;
    max-height: calc(100vh - 40px);
    z-index: 10;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    align-self: flex-start; /* Align to top of flex container */
	z-index:1;
}

@media (max-width: 1024px) {
    .property-content-sidebar-container {
        gap: 20px;
    }
    
    .property-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .property-content-sidebar-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .property-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 0;
    }
}

/* Property Details Section */
.property-details-section {
    background: white;
    padding: 10px 0;
    position: relative;
    z-index: 3;
	border-bottom:0px solid #152d4d;
}
.listedby-section {
    background: white;
    padding: 0px 0;
    position: relative;
    z-index: 3;
}


.details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    gap: 0; /* no space between columns */
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
}

/* Vertical divider between columns */
.details-grid > * {
    border-right: 1px solid #e9ecef; /* vertical line */
    padding: 0 10px; /* optional inner spacing */
}

/* Remove right border from last column in each row */
.details-grid > :nth-child(5n) {
    border-right: none;
}


.detail-item {
    text-align: center;
    padding: 10px 5px;
}



.detail-item .label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-bottom: 5px;
	font-style:italic;
    font-weight: 700;
}

.detail-item .value {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    color: #2c3e50;
}

/* Price Section */
.property-price-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007cba;
}

.price-display {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #007cba;
    font-family: 'Cinzel', serif;
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 24px;
    margin-right: 12px;
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Property Description Section */
.property-description-section {
    background: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 3;
	border-bottom:1px solid #152d4d;
}

.property-description-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 10px 0;
}

.description-content {
    margin: 0 auto;
    background: white;
    padding: 10px 40px 40px 40px;
}

.description-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin: 0;
}

/* Property Widgets Section */
.property-widgets-section {
    background: white;
    padding: 60px 0;
    position: relative;
    z-index: 3;
}

/* School Report Card Section */
.school-report-section {
    background: white;
    padding: 0px 0;
    position: relative;
    z-index: 3;
}

.school-report-section .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
	border-bottom:1px solid #152d4d;
}

/* Property Type Widget Styling */
.property-type-widgets {
    margin-bottom: 30px;
}

.property-type-widgets .widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-type-widgets .widget-title {
    color: #333;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

/* Property Type Info Widget Styling */
.property-type-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.property-type-info p {
    margin-bottom: 10px;
    color: #555;
}

.type-specific-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.type-specific-info h4 {
    color: #007cba;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.type-specific-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.type-specific-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-specific-info li {
    background: #e9ecef;
    color: #495057;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 13px;
    position: relative;
    padding-left: 25px;
}

.type-specific-info li:before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: #28a745;
    font-weight: bold;
}


/* ==========================================================================
   13. PROPERTY DETAIL - TYPE SPECIFIC
   ========================================================================== */

/* Property Type Badges */
.property-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.property-type-badge.residential {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.property-type-badge.commercial {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.property-type-badge.land {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.property-type-badge.condo {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.property-type-badge.multi-family {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}


/* Residential Properties */
.residential-property .residential-features {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #1976d2;
}

/* Commercial Properties */
.commercial-property .commercial-features {
    background: #f3e5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #7b1fa2;
}

.commercial-opportunities {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.opportunities-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.opportunity-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #7b1fa2;
}

.opportunity-item h4 {
    color: #7b1fa2;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

/* Land Properties */
.land-property .land-features {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #388e3c;
}

.land-opportunities {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

/* Condo Properties */
.condo-property .condo-features {
    background: #fff3e0;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #f57c00;
}

.condo-benefits {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.benefits-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #f57c00;
}

.benefit-item h4 {
    color: #f57c00;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

/* Multi-Family Properties */
.multi-family-property .multi-family-features {
    background: #fce4ec;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #c2185b;
}

.investment-opportunities {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.rental-analysis {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.analysis-value {
    font-size: 24px;
    font-weight: 700;
    color: #c2185b;
    margin: 10px 0;
    font-family: 'Cinzel', serif;
}

.analysis-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   14. Property Map Section
   ========================================================================== */
   .property-map-section {
    background: white;
    padding: 40px 0;
}

.property-map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Lato', sans-serif;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.property-detail-map {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.property-map-popup {
    font-family: 'Lato', sans-serif;
    min-width: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.popup-address {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.popup-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.popup-price {
    font-weight: bold;
    font-size: 18px;
    color: #2c5aa0;
    margin-bottom: 8px;
}

.popup-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.popup-sqft, .popup-acres {
    color: #666;
    font-size: 12px;
}

.town-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
}

/* Ensure map elements stay below navigation */
.property-map-section .leaflet-container {
    z-index: 1 !important;
}

.property-map-section .leaflet-control-container {
    z-index: 2 !important;
}

.property-map-section .leaflet-popup {
    z-index: 3 !important;
}
/* ==========================================================================
   14. PROPERTY DETAIL - MORTGAGE CALCULATOR
   ========================================================================== */

.mortgage-calculator-section {
    background: #fff;
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
}

.mortgage-calculator-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-form {
    padding: 30px;
    background: #fff;
	border-right:1px solid #152d4d;
}

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

.form-group label {
    /*display: block;*/
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.down-payment-percentage {
    margin-top: 5px;
    text-align: right;
}

.down-payment-percentage span {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculate-btn:hover {
    background: #2980b9;
}

.calculator-results {
    padding: 30px;
    background: white;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.total {
    border-top: 2px solid #3498db;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.result-label {
    color: #2c3e50;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
}

.result-value {
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.result-item.total .result-value {
    color: #3498db;
    font-size: 1.2rem;
}

.result-breakdown {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.85rem;
}

.breakdown-label {
    color: #7f8c8d;
    font-family: 'Lato', sans-serif;
}

.breakdown-value {
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}


/* ==========================================================================
   15. PROPERTY DETAIL - NEARBY PROPERTIES
   ========================================================================== */

.nearby-properties-section {
    background: #fff;
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
	border-bottom:1px solid #152d4d;
}

.nearby-properties-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.nearby-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 20px;
}

/* Note: property-address is redefined here for nearby cards, but keeping original for now */
.nearby-property-address {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.nearby-property-location {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    font-family: 'Lato', sans-serif;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.property-details span {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

.property-details .price {
    background: #3498db;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.property-distance {
    text-align: right;
}

.property-distance .distance {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-style: italic;
    font-family: 'Lato', sans-serif;
}

/* ==========================================================================
   17. LOAD MORE BUTTON
   ========================================================================== */

.ps-idx-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;
    grid-column: 1 / -1;
    clear: both;
}

.ps-idx-load-more-btn {
    padding: 12px 30px;
    font-size: 16px;
    background-color: var(--theme-color, #152d4d);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, filter 0.3s;
    display: inline-block;
    font-family: inherit;
    margin: 0 auto;
}

.ps-idx-load-more-btn:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
}

.ps-idx-load-more-btn:active {
    transform: translateY(0);
}

.ps-idx-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   16. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Max Width 1200px */
@media (max-width: 1200px) {
    .content-container {
        padding: 0 20px;
    }
    
    .property-content-grid {
        gap: 40px;
    }
}


/* Max Width 768px */
@media (max-width: 768px) {
    /* Map/List View - grid handles single column via minmax */
    
    /* Property Detail - General */
    .property-detail-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .property-detail-sidebar {
        min-width: auto;
    }

    .property-detail-fullscreen {
        padding: 100px 0 40px 0;
    }
    
    .property-title {
        font-size: 2.5rem;
    }
    
    .property-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-container {
        padding: 0 15px;
    }
    
    .property-details-column,
    .property-widgets-column {
        padding: 30px 20px;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .property-header h1 {
        font-size: 24px;
    }
    
    /* Slideshow (homepage / list: cropped box) */
    .property-address {
        font-size: 2rem;
    }
    
    .slideshow-wrapper {
        min-height: 300px;
        max-height: 60vh;
    }
    
    /* Detail page: no cropping - keep tall slideshow */
    .property-detail-fullscreen .slideshow-wrapper {
        height: 80vh;
        min-height: 350px;
        max-height: none;
    }
    
    .property-detail-fullscreen .slideshow-wrapper .slide img {
        max-height: 80vh;
    }
    
    .thumbnail {
        flex: 0 0 100px;
        height: 70px;
    }
    
    .action-buttons {
        gap: 20px;
    }
    
    .action-btn {
        min-width: 100px;
        padding: 15px 20px;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .detail-item {
        padding: 20px 15px;
    }
    
    .detail-item .value {
        font-size: 1.5rem;
    }
    
    .detail-item .value.price {
        font-size: 1.8rem;
    }
    
    /* Mortgage Calculator */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .calculator-form,
    .calculator-results {
        padding: 20px;
    }
    
    .mortgage-calculator-section h2 {
        font-size: 2rem;
    }
    
    /* Nearby Properties */
    .nearby-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nearby-properties-section h2 {
        font-size: 2rem;
    }
    
    .property-card {
        margin: 0 10px;
    }
    
    /* Search Form */
    .search-form-container {
        padding: 20px;
        margin: 0 10px 20px;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn, .clear-btn {
        width: 100%;
        max-width: none;
    }
    
    .property-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px;
    }
    
    .property-counter {
        margin: 0 10px 20px;
    }
    
    .selected-towns {
        justify-content: center;
    }
    
    .town-chip {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* Property card width is controlled by #propertiesList grid; no need for percentage overrides */

/* Max Width 480px */
@media (max-width: 480px) {
    .property-title {
        font-size: 2rem;
    }
    
    .property-price {
        font-size: 1.5rem;
        padding: 12px 20px;
    }
    
    .property-stats {
        grid-template-columns: 1fr;
    }
    
    .slideshow-wrapper {
        min-height: 250px;
        max-height: 50vh;
    }
    
    /* Detail page: no cropping at 480px */
    .property-detail-fullscreen .slideshow-wrapper {
        height: 75vh;
        min-height: 300px;
        max-height: none;
    }
    
    .property-detail-fullscreen .slideshow-wrapper .slide img {
        max-height: 75vh;
    }
    
    .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 200px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form-container {
        padding: 15px;
    }
    
    .property-card {
        padding: 20px;
    }
    
    .property-card h2 {
        font-size: 1.2rem;
    }
    
    .property-counter {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .property-counter #property-count {
        font-size: 20px;
    }
}
