    
.header{
	text-align:center;
	margin-top:6px;
	margin-bottom:6px;
	background: url('images/bg24.webp');
    background-size: cover;
    background-position-y: -250px;
    margin: 0px;
}
.header img {
  max-width: 515px;
    padding-bottom: 20px;
    filter: hue-rotate(55deg);
    filter: brightness(10000%);
    padding-top: 30px;
}
.header img:hover{
	background:rgba(60,120,210,0.25);
	padding:15px;
	border-radius:5px;
}
.subhead{
    display: block;
    padding: 5px;
    width: fit-content;
    margin-left: auto; margin-right: auto;
    margin-top: 10px;
    border-radius: 5px;
	color:#fff;
	padding-bottom: 24px;
    font-style: italic;
    font-size: 19px;
}
.subhead .i{
	color: red;
    font-weight: bold;
    font-size: 125%;
    margin: 0.5px;
}
#showinfo{
    width: min(580px, 88vw);
    max-height: 320px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    font-size: 22px;
    padding: 28px 32px;
    opacity: 1;
    color: #0055a5;
    position: fixed;
    z-index: 99;
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,60,160,0.22);
    left: 50%;
    transform: translateX(-50%);
    top: 22%;
    text-align: center;
}
body{
	/*font-family: 'Open Sans', sans-serif !important;*/
	font-family: 'Poppins', sans-serif !important;
	font-size:18px;
	background: #edf2fa;
}
h1,h2,h3,h4,.theaddress{
	font-family: 'Poppins', sans-serif !important;
}
.h1, h1 {
    font-size: 43px;
}
.h3{
	font-size:32px;
}
.allcharts{
	margin-left:auto;
	margin-right:auto;
	display:block;
	text-align:center;
	max-width: 98%;
    overflow-x: auto;
	overflow-y:hidden;
}
.achart{
    display: inline-block !important;
    margin: 10px;
    width: 620px !important;
    height: 350px !important;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,40,120,0.09);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #dde8f8;
}

li a{
	cursor:pointer;
}
div#changeview {
    max-height: 550px;
    overflow-y: auto;
        margin-left: auto !important;
    margin-right: auto !important;
}
.divblock{
	max-height: 550px;
    overflow-y: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#overallchange, #overallchange2{
    display: inline-block;
    width: 702px !important;
    box-shadow: 0 4px 20px rgba(0,40,120,0.09);
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dde8f8;
    overflow: hidden;
}
#avstat, #upstat, #downstat, .ovstat, .avgstat{
    display: inline-block;
    width: 300px;
    height: 200px;
    font-size: 28px;
    border-radius: 12px;
    padding: 25px;
    vertical-align: top;
    margin-bottom: 20px;
    margin: 8px;
    border: 1px solid transparent;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    font-weight: 600;
}
#upstat{
    background: linear-gradient(135deg, #d4f0da 0%, #b8e8c2 100%);
    color: #1a5c2a;
    border-color: #a3d9b0;
}
.ovstat{
    background: linear-gradient(135deg, #fff0cc 0%, #ffe4a0 100%);
    color: #7a4800;
    border-color: #ffd47a;
    width: 510px;
}
.avgstat{
    background: linear-gradient(135deg, #ead5f8 0%, #dab8f0 100%);
    color: #4a1a6a;
    border-color: #c898e8;
    width: 480px;
}
#avstat{
    background: linear-gradient(135deg, #d0e8f8 0%, #b8d8f0 100%);
    color: #0a4a7a;
    border-color: #a0c8e8;
    font-size: 24px;
}
#downstat{
    background: linear-gradient(135deg, #fad7d9 0%, #f5bec2 100%);
    color: #8b1f24;
    border-color: #f0adb2;
}
.ovstat strong, .avgstat strong{
    display: block;
    font-size: 50px;
    padding-top: 12px;
}
#upstat strong, #downstat strong, #avstat strong {
    display: block;
    font-size: 72px;
}
tspan {
    font-size: 22px;
    line-height: 25px;
}
body #marketometer{
    display: block;
}
.main{
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #edf2fa;
}
.navbar{
	margin: 0px !important;
}
#overallchange2 g g:nth-child(2n) text{
	margin-left:50px !important;
}
.newsitem{
    background: #fff;
    padding: 20px;
    padding-top: 0;
    text-align: left;
    border-radius: 12px;
    width: 365px;
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 0 4px 20px rgba(0,40,120,0.09);
    border: 1px solid #dde8f8;
    height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 12px;
}
div#searchresults {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: #f4f8ff;
    width: min(760px, 95vw);
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    top: 4%;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,80,180,0.22), 0 2px 8px rgba(0,0,0,0.12);
    padding: 0;
    border: 1.5px solid #1b96fe;
}
.newsitem .newsimgholder {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 140px;
    width: 113%;
    left: -7%;
    position: relative;
	    overflow: hidden;
}
.newsimgholder img{
	width: 100%;
}
#map {
	height: 55%;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
	
}
.newsitem h5 {
    text-decoration: none !important;
    color: grey;
	margin-bottom: 16px!important;
}
#news {
    width: auto;
    display: block;
}
.gm-style-iw div{
	display:block !important;
}
p,div,img,.header,a,h3,h4,h2,h1,input,form,body,head{
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

#headerboxright{
	float: right;
    border: solid 2px #1b96fe;
    border-right: 0px;
    padding: 5px;
    position: absolute;
    right: 0px;
    height: auto;
    top: 10%;
    z-index: 99;
	max-width: 25%;
}

.propertylisting{
    display: inline-block;
    width: 340px;
    height: auto;
    background: linear-gradient(150deg, #004fa0 0%, #0070d0 100%);
    color: #fff;
    margin: 8px;
    vertical-align: top;
    overflow-y: auto;
    max-height: 310px;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,60,160,0.18);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}
.propertylisting:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,60,160,0.28);
}
.inserted {
    padding: 15px;
    display: inline-block;
    width: 300px;
    margin: 15px;
    background: #bcf1af;
}
.pricechange {
    padding: 2px;
    text-align: right;
    padding-top: 5px;
    padding-bottom: 5px;
}
.change{
	margin-top: 12px !important;
    display: block;
}
.theaddress{
    font-size: 17px;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.3;
}
button.btn.btn-primary {
    font-size: 15px;
    border-radius: 7px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
/*
.positive{
	background: rgba(50,220,70,0.35);
}
.negative{
	background: rgba(220, 50, 96, 0.35);
}*/
.mapholder, #marketometer, .ovstat,.avgstat{
	max-width: 95%;
}
.arrow{
    width: 35px;
    margin-top: 5px;
    margin-left: 15px;
    float: left;
}
/* =============================================
   RC NAVBAR — integrated search + city pills
   ============================================= */
.rc-navbar {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: linear-gradient(135deg, #001a5e 0%, #003399 100%);
    box-shadow: 0 3px 18px rgba(0,20,80,0.38);
}

/* Main bar row */
.rc-navbar-main {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    min-height: 58px;
}

/* Left nav links */
.rc-nav-links {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.rc-nav-link {
    color: rgba(210,230,255,0.88) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
}
.rc-nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none !important;
}

/* Center: search — takes up all available space */
.rc-nav-search-wrap {
    flex: 1;
    min-width: 0;
}
.rc-search-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
.rc-search-input {
    flex: 1;
    height: 40px;
    padding: 6px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.96);
    color: #1a2a3a;
    min-width: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.rc-search-input:focus {
    border-color: #1b96fe;
    box-shadow: 0 0 0 3px rgba(27,150,254,0.28);
    background: #fff;
}
.rc-search-input::placeholder { color: #8a9db8; }
.rc-search-btn {
    height: 40px;
    padding: 0 20px;
    background: #1b96fe;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    letter-spacing: 0.2px;
}
.rc-search-btn:hover { background: #006ac5; }
.rc-search-btn-icon { display: none; }
.rc-filter-btn {
    height: 40px;
    width: 40px;
    background: rgba(255,255,255,0.12);
    color: rgba(220,235,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-filter-btn:hover { background: rgba(255,255,255,0.22); }
.rc-filter-btn.rc-filter-active {
    background: rgba(27,150,254,0.45);
    border-color: #1b96fe;
    color: #fff;
}

/* Right: account/login */
.rc-nav-right { flex-shrink: 0; }
.rc-nav-account {
    color: rgba(210,230,255,0.88) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 7px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
    display: inline-block;
}
.rc-nav-account:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none !important;
}

/* Mobile hamburger */
.rc-mobile-toggle {
    display: none;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.32);
    border-radius: 7px;
    color: #fff;
    font-size: 20px;
    padding: 5px 11px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

/* Filter panel */
#search-filters {
    display: none;
    background: rgba(250,252,255,0.99);
    border-top: 2px solid rgba(27,150,254,0.3);
    animation: sfSlide 0.18s ease;
}
@keyframes sfSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
#search-filters.sf-open { display: block; }
.sf-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 14px;
}
.sf-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 180px;
    min-width: 160px;
}
.sf-row label {
    font-size: 12px;
    color: #445;
    width: 44px;
    flex-shrink: 0;
    font-weight: 600;
    margin: 0;
}
.sf-input {
    flex: 1;
    height: 32px !important;
    font-size: 13px !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
}
.sf-apply-btn {
    flex-shrink: 0;
    height: 32px;
    font-size: 13px !important;
    padding: 0 20px !important;
    align-self: flex-end;
}

/* City pill row */
.rc-city-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px 9px;
    overflow-x: auto;
    background: rgba(0,20,80,0.42);
    border-top: 1px solid rgba(255,255,255,0.08);
    scrollbar-width: none;
}
.rc-city-row::-webkit-scrollbar { display: none; }
.rc-city-btn {
    flex-shrink: 0;
    padding: 4px 15px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.28);
    background: transparent;
    color: rgba(210,230,255,0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.rc-city-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.rc-city-btn.rc-city-active {
    background: #1b96fe;
    border-color: #1b96fe;
    color: #fff;
    font-weight: 600;
}

/* Mobile open state (hamburger reveals links) */
#rcnavbar.rc-nav-open .rc-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    background: #002080;
    width: 200px;
    padding: 10px 12px;
    border-radius: 0 0 10px 0;
    box-shadow: 4px 6px 18px rgba(0,20,80,0.3);
    z-index: 200;
}

@media (max-width: 700px) {
    .rc-nav-links { display: none; }
    .rc-mobile-toggle { display: block; }
    .rc-navbar-main {
        flex-wrap: wrap;
        padding: 8px 10px 6px;
        gap: 6px;
    }
    /* Row 1: hamburger left, account right */
    .rc-mobile-toggle { order: 1; }
    .rc-nav-right { order: 2; margin-left: auto; }
    /* Row 2: search takes full width */
    .rc-nav-search-wrap {
        order: 3;
        flex: 0 0 100%;
        padding-bottom: 2px;
    }
    .rc-search-btn-text { display: inline; }
    .rc-search-btn-icon { display: none; }
    .rc-search-btn { padding: 0 14px; }
    .sf-inner { flex-direction: column; }
    .sf-row { flex: 1 1 100%; min-width: 0; width: 100%; }
    .sf-apply-btn { width: 100% !important; padding: 6px 0 !important; }
    .rc-nav-account { font-size: 12px; padding: 6px 8px; }
}

.today{
    background: rgba(0, 100, 0, 0.46);
    padding: 3px;
    border: lightgreen 2px solid;
}

.grouping1 div, .grouping2 div {
    margin: 2px;
    width: 150px;
    margin-top: 8px;
    height: 80px;
}
.grouping1{
	background: rgba(116, 118, 208, 0.5);
    width: auto !important;
    display: inline-block;
    margin: 8px;
	vertical-align: top;
}
.grouping2{
	background: rgba(150, 165, 210, 0.5);
    width: auto !important;
    display: inline-block;
    margin: 8px;
	vertical-align: top;
}
.mailerdiv{
	float: left;width: 25%; border: solid; padding: 15px;
}
/* Mobile Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 800px)
  and (-webkit-min-device-pixel-ratio: 1)
  and (orientation: portrait) {
	/* Mobile Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 800px)
  and (-webkit-min-device-pixel-ratio: 1)
  and (orientation: portrait) {
	 #marketometer{
		     margin-left: 0px !important;
	 }
	 .header{
		     background-position-y: -50px !important;
    margin: 0px;
    background-position-x: -150px !important;
	 }
	 #news{
		 margin-left: 5px!important;
    margin-right: 5px!important;
	 }
	  .ovstat strong, .avgstat strong{
		  font-size:42px !important;
	  }
	.mailerdiv{
		  float:none;
		  width:90%;
	}
	.subhead{
			max-width:90%;
	}
	.divblock {
		max-width: 95%;
		border: solid 2px #1b96fe;
		padding: 0px;
		border-radius: 5px;
	}
	#headerboxright{
		display:none;
		width:95;
		position:inherit;
	}
	.header img {
		max-width: 90%;
	}
  }
}

/* =============================================
   SEARCH RESULT CARDS
   ============================================= */

/* Sticky top bar inside the results overlay */
.sr-topbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #006ac5;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    z-index: 2;
}
.sr-topbar-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.sr-close-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.sr-close-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Section heading inside results */
.sr-heading {
    padding: 12px 18px 6px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #006ac5;
    border-bottom: 1px solid #d0e8ff;
    background: #fff;
}

/* Grid of result cards */
.sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f4f8ff;
}

/* Individual result card */
.sr-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,80,180,0.10);
    border: 1px solid #d5e8ff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.sr-card:hover {
    box-shadow: 0 6px 22px rgba(0,80,180,0.18);
    transform: translateY(-2px);
}

/* Street view image area */
.sr-card-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.sr-card-img-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #d0e8ff 0%, #1b96fe22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ab8d8;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card body */
.sr-card-body {
    padding: 12px 14px;
    flex: 1;
}
.sr-card-addr {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 2px;
    line-height: 1.3;
}
.sr-card-city {
    font-size: 11px;
    color: #789;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

/* Price history rows */
.sr-prices {
    border-top: 1px solid #e4eeff;
    padding-top: 8px;
}
.sr-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 3px 0;
    color: #667;
    gap: 4px;
}
.sr-price-latest {
    font-weight: 700;
    color: #1a2a3a;
    border-top: 1px dashed #c8dcf8;
    margin-top: 5px;
    padding-top: 6px;
}
.sr-price-date {
    color: #8899aa;
    flex: 1;
    font-size: 11px;
}
.sr-price-val {
    font-weight: 500;
    font-size: 13px;
}
.sr-price-chg {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.sr-up   { background: #e6f9e6; color: #1e7a1e; }
.sr-down { background: #fce8e8; color: #c0392b; }
.sr-neutral { background: #f0f0f0; color: #666; }

/* Empty / loading / limit states */
.sr-empty {
    padding: 32px 20px;
    text-align: center;
    color: #778;
    font-size: 15px;
    background: #fff;
}
.sr-loading {
    padding: 32px 20px;
    text-align: center;
    color: #006ac5;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
}
.sr-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #d0e8ff;
    border-top-color: #1b96fe;
    border-radius: 50%;
    animation: sr-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes sr-spin { to { transform: rotate(360deg); } }

.sr-limit {
    padding: 10px 18px 14px;
    font-size: 12px;
    color: #9ab;
    font-style: italic;
    text-align: center;
    background: #f4f8ff;
}

/* Mobile tweaks for search results */
@media (max-width: 600px) {
    .sr-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }
    div#searchresults {
        width: 98vw;
        top: 1%;
        max-height: 94vh;
    }
    .searchform {
        min-width: 160px;
    }
    .search-bar-row .form-control {
        min-width: 90px;
    }
}

/* =============================================
   HEADER OVERLAY
   ============================================= */
.header-overlay {
    width: 100%;
    background: linear-gradient(180deg, rgba(0,10,50,0.62) 0%, rgba(0,30,100,0.52) 100%);
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Bootstrap navbar-default fallback (kept for any pages still using Bootstrap nav) */
.navbar-default {
    background: linear-gradient(90deg, #001f6b 0%, #003399 100%) !important;
    border: none !important;
    border-radius: 0 !important;
}
.navbar-default .navbar-nav > li > a {
    color: rgba(220,235,255,0.92) !important;
}
.navbar-default .navbar-nav > li > a:hover {
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
}

/* =============================================
   MAP + MARKET-O-METER ROW
   ============================================= */
.map-meter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 16px 8px;
}
.mapholder {
    flex: 1 1 580px;
    min-width: 280px;
    max-width: 760px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,40,120,0.14);
}
#map {
    height: 440px;
    width: 100%;
}
#marketometer {
    flex: 0 1 420px;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,40,120,0.10);
    border: 1px solid #dde8f8;
    padding: 24px 22px;
    text-align: center;
}
#marketometer h3 {
    font-size: 20px;
    font-weight: 700;
    color: #002080;
    margin-top: 0;
    margin-bottom: 8px;
}
.marketometer-desc {
    font-size: 13px;
    color: #789;
    font-style: italic;
    margin-bottom: 0;
}
.gauge-container {
    margin-left: auto;
    margin-right: auto;
    height: 280px;
    width: 92%;
    margin-top: 20px;
}

/* =============================================
   MAIN CONTENT SECTIONS
   ============================================= */
#maindisplay {
    padding: 4px 8px;
}
#maintitle {
    padding: 16px 12px 4px;
}
#maintitle h3 {
    font-size: 22px;
    color: #001f6b;
    font-weight: 700;
}
.section-sep {
    height: 28px;
}

/* Stats row spacing */
#avstat, #upstat, #downstat, .ovstat, .avgstat {
    margin: 8px;
}
.ovstat strong, .avgstat strong {
    display: block;
    font-size: 48px;
    padding-top: 10px;
    font-weight: 700;
}
#upstat strong, #downstat strong, #avstat strong {
    display: block;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
}

/* Change view */
div#changeview {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dde8f8;
    box-shadow: 0 4px 18px rgba(0,40,120,0.07);
    padding: 16px;
    margin: 8px;
}

/* Unit comparisons */
#showunitcomparisons {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dde8f8;
    box-shadow: 0 4px 18px rgba(0,40,120,0.07);
    padding: 16px;
    margin: 8px auto;
}

/* Buttons — consistent style */
.btn-primary {
    background-color: #003399 !important;
    border-color: #002a80 !important;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s;
}
.btn-primary:hover {
    background-color: #001f6b !important;
    border-color: #001050 !important;
}
.btn-default {
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
}

/* Positive/negative property cards */
.propertylisting.positive-card {
    background: linear-gradient(150deg, #0a6020 0%, #1a8c35 100%);
}
.propertylisting.negative-card {
    background: linear-gradient(150deg, #8b1a1a 0%, #c0292e 100%);
}

/* Today badge */
.today {
    background: rgba(0,100,0,0.20);
    padding: 3px 6px;
    border: 1.5px solid #5cb85c;
    border-radius: 4px;
    font-weight: 700;
}

/* =============================================
   PAYWALL — locked price entries
   ============================================= */
.sr-price-locked {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
    flex: 1;
    text-align: right;
}
/* Unlocked historical entries (paid users only) */
.sr-price-unlocked-old {
    background: linear-gradient(90deg, rgba(27,150,254,0.06) 0%, rgba(27,150,254,0.03) 100%);
    border-left: 2px solid rgba(27,150,254,0.35);
    border-radius: 4px;
    padding-left: 5px;
}
.sr-upgrade-cta {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed #dce8f8;
    text-align: center;
}
.sr-upgrade-link {
    font-size: 11px;
    color: #0055c4;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.sr-upgrade-link:hover {
    text-decoration: underline;
    color: #003399;
}

/* Navbar plan badge */
.nav-plan-badge {
    display: inline-block;
    background: #00b86e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.2px;
}

/* =============================================
   AUTH PAGES (login / register)
   ============================================= */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    background: #f4f8ff;
    min-height: calc(100vh - 140px);
}
.auth-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,40,120,0.13);
    border: 1px solid #dde8f8;
    width: 100%;
    max-width: 440px;
    padding: 32px 36px 28px;
}
.auth-tabs {
    margin-bottom: 22px;
    border-bottom: 2px solid #d0e0f8;
}
.auth-tabs > li > a {
    font-weight: 600;
    color: #556;
    border-radius: 7px 7px 0 0;
}
.auth-tabs > li.active > a,
.auth-tabs > li.active > a:hover {
    color: #003399;
    border-color: #d0e0f8 #d0e0f8 #fff;
}
.auth-alert {
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.auth-tab-content {
    padding-top: 4px;
}
.auth-submit-btn {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    font-size: 15px;
}
.auth-note {
    font-size: 12px;
    color: #889;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}
.auth-pricing-info {
    margin-top: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(27,150,254,0.06) 0%, rgba(0,40,120,0.04) 100%);
    border: 1px solid rgba(27,150,254,0.2);
    border-radius: 10px;
}
.auth-pricing-heading {
    font-size: 12px;
    font-weight: 700;
    color: #334;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-pricing-list {
    margin: 0 0 8px;
    padding-left: 16px;
    font-size: 13px;
    color: #334;
    line-height: 1.7;
}
.auth-pricing-note {
    font-size: 11px;
    color: #889;
    margin: 0;
}
.auth-back-link {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
}
.auth-back-link a {
    color: #667;
}

/* =============================================
   ACCOUNT PAGE
   ============================================= */
.acc-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    background: #f4f8ff;
    min-height: calc(100vh - 140px);
}
.acc-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,40,120,0.13);
    border: 1px solid #dde8f8;
    width: 100%;
    max-width: 560px;
    padding: 36px 40px 32px;
}
.acc-title {
    font-size: 22px;
    font-weight: 700;
    color: #002080;
    margin-top: 0;
    margin-bottom: 4px;
}
.acc-email {
    font-size: 14px;
    color: #778;
    margin-bottom: 22px;
}
.acc-plan-status {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.acc-plan-active {
    background: #e8faf0;
    border: 1.5px solid #4cbb82;
}
.acc-plan-free {
    background: #f0f4ff;
    border: 1.5px solid #b0c8f8;
}
.acc-plan-badge {
    display: inline-block;
    background: #003399;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    padding: 3px 12px;
    margin-bottom: 8px;
}
.acc-plan-badge-free {
    background: #6688aa;
}
.acc-plan-detail {
    font-size: 13px;
    color: #556;
    margin: 4px 0 0;
}
.acc-plan-expiry {
    font-size: 13px;
    color: #334;
    margin-top: 6px;
}
.acc-upgrade {
    margin-bottom: 28px;
}
.acc-upgrade-title {
    font-size: 17px;
    font-weight: 700;
    color: #002080;
    margin-bottom: 6px;
}
.acc-upgrade-desc {
    font-size: 13px;
    color: #667;
    margin-bottom: 18px;
}
.acc-plan-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.acc-plan-card {
    flex: 1 1 180px;
    border: 2px solid #d0e0f8;
    border-radius: 12px;
    padding: 18px 16px;
    position: relative;
    background: #f9fbff;
    text-align: center;
}
.acc-plan-card-featured {
    border-color: #003399;
    background: #f0f4ff;
}
.acc-plan-card-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #003399;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 12px;
    white-space: nowrap;
}
.acc-plan-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #002080;
    margin-bottom: 6px;
}
.acc-plan-card-desc {
    font-size: 12px;
    color: #778;
    margin-bottom: 14px;
}
.acc-checkout-btn {
    width: 100%;
    font-size: 13px;
    padding: 8px 10px;
}
.acc-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}
.acc-logout-btn {
    color: #c03;
    font-size: 13px;
}
.acc-logout-btn:hover {
    color: #900;
    text-decoration: underline;
}
.acc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #e8faf0;
    border: 2px solid #4cbb82;
    border-radius: 50%;
    font-size: 32px;
    color: #2a7a50;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .acc-box, .auth-box { padding: 24px 18px; }
    .acc-plan-cards { flex-direction: column; }
}


/* Price change arrows */
.arrow {
    width: 28px;
    margin-top: 4px;
    margin-left: 10px;
    float: left;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Mobile tweaks for layout */
@media (max-width: 800px) {
    .map-meter-row {
        flex-direction: column;
        align-items: center;
        padding: 12px 8px;
        gap: 16px;
    }
    .mapholder {
        width: 100%;
        flex: none;
    }
    #marketometer {
        width: 100%;
        flex: none;
    }
    #map {
        height: 300px;
    }
}