.modal-detail-section .modal-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.95em;
    border-bottom: 1px solid #f9f9f9;
}

.property-info {
    display: flex;
    flex-direction: column;
}

.detail-value-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.detail-breakdown {
    display: block;
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-top: 4px;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.modal-detail-section .modal-details-heading {
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-detail-section .modal-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-detail-section .modal-details-list li:last-child {
    border-bottom: none;
}

.modal-detail-section .modal-details-list li strong {
    color: #555;
    margin-right: 10px;
}

.modal-detail-section .modal-details-list li span {
    font-weight: 500;
    color: #333;
    text-align: right;
}

.modal-details-list li {
    display: none; 
}

.location-city-insights {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    border-radius: 5px;
}

.location-city-insights h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #263A29;
    text-align: left;
}

.location-city-insights .market-insights-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
.property-grid-container { flex: 1; min-width: 0; }
.plink{background:#284f29;color:#FFF;padding:5px 10px;border-radius:5px}
body { padding: 0; margin: 0; font-family: sans-serif; line-height: 180%; color: #333; background-color: #ffffff; min-height: 100vh; overflow-x: hidden; }
body.home, body.front-page { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.9) 80%, #ffffff 100%), url('https://www.keysatlast.co.uk/wp-content/themes/cmk_theme/images/bg_img.jpg'); background-repeat: no-repeat; background-size: cover; background-position: center top; background-attachment: fixed; }
#wrapper { max-width: 1200px; width: 100%; margin: 0 auto; padding: 40px 20px; box-sizing: border-box; }
article { max-width: 1200px; width: 100%; margin: 50px auto 0 auto; padding: 0 20px; box-sizing: border-box; }
#show-more-btn{background:#FFF;border:1px solid #EEE;color:#000}
.modal-property-agent { margin: 5px 0 15px 0; font-size: 0.9em; color: #555; font-style: italic; }
.modal-gallery-buttons-wrapper button:first-child { margin-right: 5px; }
.modal-gallery-buttons-wrapper button:last-child { margin-left: 5px; }
a { color: #263A29; font-weight: bold; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #F1C376; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,p,ul { margin: 0 0 20px 0;line-height:150%}
.list_region{background:#151b3b;border-radius:5px;color:#FFF;padding:5px 10px}
.list_region a{color:#FFF}
.list_subregion{background:#EEE;border-radius:5px;padding:5px 10px}
ul { padding-left: 20px; }
h1 { font-size: 25px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
#site-header { background-color: #fff; padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
#header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; min-height: 60px; position: relative; }
#logo img { height: 50px; width: auto; display: block; }
.primary-menu-list { list-style: none; margin: 0; padding: 0; display: flex; }
.primary-menu-list li { margin-left: 25px; }
.primary-menu-list a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; color: #263A29; }
.menu-toggle-checkbox { display: none; }
.page-title-container { text-align: center; }
.page-main-title { color: #ffffff; text-align: center; padding: 60px 15px 40px; font-size: 2.8em; font-weight: 700; line-height: 1.3; margin: 0 auto 40px; text-shadow: 0 0 10px rgba(0, 0, 0, 0.9); max-width: 900px; }
.page-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.directory-title{ text-align:left; padding-top:50px; padding-bottom: 20px; font-size: 2em; margin: 0; }
.property-layout { display: flex; max-width: 1200px; margin: 0 auto 40px; padding:0; gap: 30px; align-items: flex-start; }
.sidebar-filters { flex: 0 0 250px; position: relative; }
.property-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; width: 100%; }
body.home .property-grid, body.front-page .property-grid { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 15px 40px 15px; }
.property-card { display: flex; align-items: stretch; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #e0e0e0; }
body.home .property-card,
body.front-page .property-card { border-color: #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: box-shadow 0.2s ease; }
body.home .property-card:hover,
body.front-page .property-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
footer{margin-bottom:50px}
.property-price-container { display: flex; justify-content: flex-start; align-items: baseline; gap: 15px; margin-bottom: 5px; }
.property-meta-line { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.property-meta-line .meta-property-type { background-color: #000; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.9em; font-weight: bold; line-height: 1.2; }
.property-meta-line .meta-date { font-size: 0.9em; color: #555; }
.property-price-sqft { font-size: 0.9em; color: #555; font-weight: normal; }
.property-image-gallery { flex: 0 0 50%; display: flex; gap: 8px; margin-right: 20px; border-radius: 4px; overflow: hidden; height: 280px; }
.gallery-main-image { flex: 2; background-color: #f0f0f0; overflow: hidden; }
.gallery-side-images { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gallery-side-image { flex: 1; background-color: #f0f0f0; overflow: hidden; }
.property-image-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-info { flex-grow: 1; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.property-address { margin: 0 0 5px; font-size: 18px; font-weight: 600; color: #333; }
.property-price-container { display: flex; justify-content: flex-start; align-items: baseline; gap: 15px; margin-bottom: 5px; }
.property-price { font-size: 24px; font-weight: bold; color: #d32f2f; }
.property-price-sqft { font-size: 14px; color: #666; font-weight: 500; }
.property-type-display { font-size: 1em; font-weight: 500; color: #333; margin-bottom: 15px; }
.property-features { list-style: none; padding: 0; margin: 0 0 20px 0; color: #555; font-size: 15px; }
.property-features li { display: inline; }
.property-features li:not(:last-child)::after { content: " \2022 "; padding: 0 0.5em; }
.property-key-features { margin-top: auto; padding-bottom: 15px; }
.key-features-title { font-weight: bold; font-size: 15px; margin: 0 0 5px 0; color: #333; }
.key-features-list { font-size: 14px; color: #666; line-height: 1.4; margin: 0; padding: 0; }
.property-links { margin-top: 10px; align-self: flex-start; }
.btn { background: #010661; color: #fff; padding: 8px 14px; text-decoration: none; border-radius: 4px; font-size: 14px; display: inline-block; border: none; cursor: pointer; text-align: center; transition: background-color 0.2s ease-in-out; }
.btn:hover { background: #0056b3; color: #fff; }
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); padding-top: 60px; }
.modal-content { background-color: #fefefe; margin: 5% auto; padding: 25px; border: 1px solid #888; width: 80%; max-width: 700px; border-radius: 8px; position: relative; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); }
.modal-close-button { position: absolute; top: 15px; right: 20px; z-index: 10; background:#000; padding:10px; color: #FFF; font-size: 32px; font-weight: normal; line-height: 1; cursor: pointer; transition: color 0.2s ease; }
.modal-gallery-main-image { display: block; width: 100%; height: 450px; object-fit: cover; margin-bottom: 10px; border-radius: 4px; background-color: #f0f0f0; border: 1px solid #ddd; }
.modal-gallery-nav { display: flex; justify-content: center; align-items: center; margin-top: 10px; }
#modalImageIndicator { font-size: 0.9em; color: #555; margin: 0 10px; }
.modal-gallery-buttons-wrapper { display: flex; }
.modal-property-info { display: flex; flex-direction: column; }
.modal-property-address { margin: 20px 0 0; font-size: 22px; font-weight: 600; }
.modal-property-price-container { display: flex; align-items: baseline; gap: 15px; }
.modal-property-price { font-size: 24px; font-weight: bold; color: #d32f2f; margin-bottom: 0; }
.modal-property-price-sqft { font-size: 14px; color: #666; font-weight: 500; }
.modal-property-features { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-wrap: wrap; align-items: center; color: #333; font-size: 1em; }
.modal-property-features li { display: inline; }
.modal-property-features li:not(:last-child)::after { content: " \2022 "; padding: 0 0.8em; color: #888; font-size: 0.9em; vertical-align: middle; }
.modal-property-links { margin-top: 15px; margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.modal-property-url{background:#555;color:#FFF}
#modalFloorplanUrl{background:#7d6864;color:#FFF}
.modal-details-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.modal-details-heading { font-size: 1.1em; font-weight: 600; color: #222; margin: 0 0 15px 0; }
.modal-details-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.modal-details-table tr { border-bottom: 1px solid #f0f0f0; }
.modal-details-table tr:last-child { border-bottom: none; }
.modal-details-table td { padding: 12px 5px; vertical-align: top; }
.modal-details-table td:first-child { width: 35%; color: #555; }
.modal-details-table td.detail-value { font-weight: 500; color: #333; }
.detail-breakdown { display: block; font-size: 0.9em; font-style: italic; color: #666; margin-top: 4px; }
.info-section-container, footer { text-align: center; }
.info-blocks-wrapper { display: flex; justify-content: space-between; gap: 30px; }
.info-block { flex: 1; padding: 20px;background:#FFF;border-radius:5px}
.no-properties-found { padding: 30px 15px; text-align: center; font-style: italic; color: #777; width: 100%; }
.mobile-filter-toggle-container { display: none; margin-bottom: 15px; }
.sidebar-filters-top { display: none; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #eee; }
#sidebar-filters-close-btn { width: auto; padding: 8px 18px; margin: 0; font-size: 14px; background: #616161; color: #fff; border: none; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.sidebar-filters-content label { display: block;font-weight: 500; }
.sidebar-filters-content input[type="number"], .sidebar-filters-content select { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; }
.btn-apply-filters { width: 100%; margin-top: 25px; padding: 12px; }
@media (max-width: 800px) {
.directory-title { text-align: center; }
.property-info {align-items: flex-start;text-align: left;}
.page-main-title { font-size: 2.2em; }
.mobile-filter-toggle-container { display: block; }
.mobile-filter-toggle-button { display: flex; width: 100%; justify-content: center; align-items: center; }
.property-layout { gap: 0; flex-direction: column; }
.sidebar-filters { position: fixed; top: 0; left: 0; width: 85%; max-width: 340px; height: 100vh; background-color: #fff; z-index: 1010; transform: translateX(-100%); transition: transform 0.3s ease-in-out; padding: 20px; box-shadow: 3px 0 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.sidebar-filters.is-open { transform: translateX(0); }
.sidebar-filters-top { display: flex; }
.sidebar-filters-content { flex-grow: 1; overflow-y: auto; }
body.filters-panel-open { overflow: hidden; }
.property-card { flex-direction: column; }
.property-image-gallery { width: 100%; height: 250px; margin-right: 0; margin-bottom: 15px; }
.modal-content { width: 90%; }
.modal-details-table td:first-child { width: 45%; }
}
@media (max-width: 600px) {
.page-main-title { font-size: 1.8em; }
.modal-gallery-nav { flex-direction: column; gap: 10px; }
#modalImageIndicator { margin-bottom: 5px; font-size: 1em; order: -1; }
.modal-gallery-buttons-wrapper { display: flex; justify-content: space-between; width: 100%; }
.modal-gallery-button { flex-grow: 1; text-align: center; }
}
@media (min-width: 801px) {
.property-layout {flex-direction: row;}
.sidebar-filters { flex: 0 0 250px; }
.property-grid-container { flex: 1; }
.mobile-filter-toggle-container,
.sidebar-filters-top { display: none !important; }
}
.page-container { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 1300px; margin: 0 auto; }
#summary { text-align: center; margin-bottom: 50px; }
#downloadAnnualSummaryCsvBtn, #downloadMonthlySummaryCsvBtn { font-size: 12px; display: none; width: 100%; max-width: 280px; margin: 15px auto 5px auto; padding: 10px 15px; background-color: #6c757d; color: white; border: none; border-radius: 5px; cursor: pointer; }
.input-section, .output-section { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.calculator-container { background-color: #f3f3f3; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); box-sizing: border-box; width: 100%; }
tbody{background:#FFF}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 1em; }
.form-group input:focus, .form-group select:focus { border-color: #616161; outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
button[type="submit"], button[type="button"] { background-color: #616161; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; width: 100%; transition: background-color 0.3s ease; margin-top: 10px; }
button[type="submit"]:hover, button[type="button"]:hover { background-color: #0056b3; }
#showOverpaymentFormBtn { background-color: #dc3545; max-width: 280px; margin: 15px auto 0 auto; }
#showOverpaymentFormBtn:hover { background-color: #c82333; }
#resetToOriginalBtn.btn-secondary { background-color: #6c757d; }
#resetToOriginalBtn.btn-secondary:hover { background-color: #5a6268; }
.results-container h2, #chartContainer h2, #overpaymentSection h3 { text-align: left; color: #0056b3; margin-top: 0; margin-bottom: 20px; }
.results-container h3 { color: #333; margin-top: 20px; margin-bottom: 10px; padding-bottom: 5px; }
.results-container p { margin: 8px 0; line-height: 1.6; }
.results-container strong { color: #000; }
.results-container hr { border: 0; height: 1px; background-color: #e0e0e0; margin: 25px 0; }
.error-messages { background-color: #f8d7da; color: #721c24; padding: 15px; border: 1px solid #f5c6cb; border-radius: 5px; margin-top: 20px; }
.error-messages p { margin: 5px 0; }
#chartContainer { position: relative; width: 100%; height: 450px; box-sizing: border-box;background:#FFF}
#amortisationChart { display: block; max-width: 100%; max-height: 100%; }
#overpaymentSection.calculator-container { background-color: #f9f9f9; border: 1px solid #e0e0e0; }
@media (min-width: 992px) { .page-container { flex-direction: row; align-items: flex-start; } .input-section { flex: 0 0 40%; } .output-section { flex: 1 1 60%; } #chartContainer { min-height: 400px; } }
@media (min-width: 1200px) { .input-section { flex: 0 0 35%; } .output-section { flex: 1 1 65%; } }
#annualSummaryTableContainer { margin-top: 30px; overflow-y: scroll; }
#annualSummaryTableContainer h2 { text-align: left; color: #0056b3; margin-top: 0; margin-bottom: 20px; }
#annualSummaryTable { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9em; }
#annualSummaryTable th, #annualSummaryTable td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
#annualSummaryTable th { background-color: #e9ecef; font-weight: bold; color: #333; }
#annualSummaryTable th:nth-child(1), #annualSummaryTable td:nth-child(1) { text-align: center; width: 8%; }
#annualSummaryTable th:nth-child(2), #annualSummaryTable td:nth-child(2) { text-align: center; width: 12%; }
#annualSummaryTable th:nth-child(3), #annualSummaryTable td:nth-child(3), #annualSummaryTable th:nth-child(4), #annualSummaryTable td:nth-child(4), #annualSummaryTable th:nth-child(5), #annualSummaryTable td:nth-child(5) { text-align: right; }
#annualSummaryTable td:nth-child(5) { width: 25%; }
#overpaymentListContainer { background-color: #e9ecef; padding: 20px; border-radius: 8px; border: 1px solid #ced4da; }
#overpaymentListContainer h4 { margin-top: 0; margin-bottom: 15px; color: #0056b3; font-size: 1.2em; }
.overpayment-list-item { background-color: #fff; padding: 12px 15px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; font-size: 0.95em; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.overpayment-list-item p { margin: 0; flex-grow: 1; line-height: 1.5; }
.overpayment-list-item button.remove-overpayment-btn { background-color: #ffc107; color: #212529; padding: 6px 12px; font-size: 0.85em; width: auto; margin-left: 15px; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease; }
.overpayment-list-item button.remove-overpayment-btn:hover { background-color: #e0a800; }
@media (max-width: 1200px) { #footer-inner { width: calc(100% - 20px); margin: 0 10px 20px 10px; } #header-inner { width: 100%; } }
.table-wrapper { width: 100%; overflow-x: auto; margin-top: 20px; }
.responsive-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.responsive-table th, .responsive-table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #ddd; white-space: nowrap; }
.responsive-table th { background-color: #f8f8f8; font-weight: bold; }
@media screen and (max-width: 600px) {
.responsive-table { display: block; overflow-x: auto; }
}
.property-image-gallery .gallery-main-image img,
.property-image-gallery .gallery-side-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.property-image-gallery .gallery-main-image,
.property-image-gallery .gallery-side-image { overflow: hidden; }
.modal-property-gallery { display: flex; flex-direction: column; }
.modal-gallery-main-image { display: block; width: 100%; height: 450px; object-fit: cover; object-position: center; border-radius: 4px; background-color: #f0f0f0; border: 1px solid #ddd; margin-bottom: 10px; }
.info-section-container { max-width: 1200px; margin: 40px auto; padding: 0 15px; text-align: center; }
.info-block-icon { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; margin: 0 auto 20px; }
@media (max-width: 800px) {
.info-blocks-wrapper {
flex-direction: column;
align-items: center;
}
.info-block { width: 100%; max-width: 400px; }
}
.menu-toggle-label { display: none; cursor: pointer; position: relative; width: 30px; height: 25px; z-index: 1011; }
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background-color: #263A29; border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle-icon { top: 50%; transform: translateY(-50%); }
.menu-toggle-icon::before { top: -10px; }
.menu-toggle-icon::after { bottom: -10px; }
@media (max-width: 800px) {
.menu-toggle-label {
display: block;
}
#primary-navigation { position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100vh; background-color: #ffffff; z-index: 1010; transform: translateX(-100%); transition: transform 0.3s ease-in-out; padding: 80px 20px 20px 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: block; }
.primary-menu-list { flex-direction: column; align-items: flex-start; }
.primary-menu-list li { margin: 0 0 15px 0; width: 100%; }
.primary-menu-list a { padding: 10px 5px; font-size: 1.2em; width: 100%; }
.menu-toggle-checkbox:checked ~ #primary-navigation { transform: translateX(0); }
.menu-toggle-checkbox:checked + .menu-toggle-label .menu-toggle-icon { background-color: transparent; }
.menu-toggle-checkbox:checked + .menu-toggle-label .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle-checkbox:checked + .menu-toggle-label .menu-toggle-icon::after { bottom: 0; transform: rotate(-45deg); }
.menu-toggle-checkbox:checked ~ body,
body.mobile-menu-open { overflow: hidden; }
}

.related-posts-wrapper {
    margin-top: 60px;
	margin-bottom: 50px;
    padding: 30px 0;
}

.related-posts-wrapper h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #263A29;
    text-align: left;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
}

.related-posts-list a {
    display: block;
    color: #263A29;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
}
