/* ===== Propstack Properties — frontend styles ===== */

.propstack-heading {
    margin-bottom: 24px;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

/* ===== Grid layout (default) ===== */
.propstack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .propstack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .propstack-grid { grid-template-columns: 1fr; }
}

/* ===== List layout ===== */
.propstack-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.propstack-list .property-card {
    flex-direction: row;
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
}

.propstack-list .property-image {
    width: 320px;
    flex-shrink: 0;
    padding-top: 0;
    position: relative;
}

.propstack-list .property-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propstack-list .property-content {
    padding: 20px 24px;
}

.propstack-list .property-content h3 {
    font-size: 1.2rem;
}

@media (max-width: 700px) {
    .propstack-list .property-card { flex-direction: column; }
    .propstack-list .property-image { width: 100%; padding-top: 60%; }
}

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.property-image { position: relative; width: 100%; padding-top: 66%; overflow: hidden; }
.property-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.property-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
/*     background: rgba(20,20,20,0.85); */
	background:#ba723f;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.property-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.property-content h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }

.property-location { display: flex; align-items: center; gap: 6px; color: #666; font-size: 0.85rem; margin-bottom: 12px; }
.icon-location { width: 14px; height: 14px; flex-shrink: 0; }

.property-features { display: flex; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.feature { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #444; }
.feature-icon { width: 16px; height: 16px; }

.property-description { font-size: 0.85rem; color: #555; flex: 1; margin-bottom: 14px; }

.property-btn {
    background: #ba723f;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-start;
    transition: background .2s ease;
}
.property-btn:hover {background: #fff;border: 1px solid #ba723f;color: #14213d;}
.prop-error { color: #b32d2e; }
.prop-empty { color: #666; }

/* Pagination */
.propstack-pagination { display: flex; gap: 6px; justify-content: center; margin: 20px 0 40px; flex-wrap: wrap; }
.ps-page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 6px; border: 1px solid #ddd;
    text-decoration: none; color: #333; font-size: 0.9rem;
}
.ps-page-link.active { background: #ba723f; color: #fff; border-color: #ba723f; }
.ps-page-link:hover:not(.active) { background: #f3f3f3; }

/* ===== Modal ===== */
.ps-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; padding: 20px;
}
.ps-modal.active { display: flex; }
body.hide-scroll { overflow: hidden; }

.ps-modal-dialog {
    background: #fff; max-width: 900px; width: 100%; max-height: 90vh;
    overflow-y: auto; border-radius: 14px; position: relative;
}

.ps-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; line-height: 1;
}

.ps-hero { position: relative; width: 100%; height: 280px; overflow: hidden; }
.ps-hero img { width: 100%; height: 100%; object-fit: cover; }
.ps-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%); }
.ps-hero-info { position: absolute; bottom: 16px; left: 24px; right: 24px; color: #fff; }
.ps-eyebrow { font-size: 0.8rem; opacity: 0.85; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.ps-modal-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.ps-modal-address { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; opacity: 0.9; }

.ps-price-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 24px; background: #f7f7f9; border-bottom: 1px solid #eee; }
.ps-price-label { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }
.ps-price {font-size: 1.3rem;font-weight: 700;/* color: #14213d; */}
.ps-stats { display: flex; align-items: center; gap: 14px; }
.ps-stat { text-align: center; }
.ps-stat-val { font-weight: 600; font-size: 1rem; }
.ps-stat-lbl {font-size: 0.7rem;color: #010101;}
.ps-divider { width: 1px; height: 26px; background: #ddd; }

.ps-body { padding: 24px; }
.ps-section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin: 18px 0 8px; }
.ps-desc { font-size: 0.9rem; line-height: 1.6; color: #333; }

.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
@media (max-width: 600px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-item {font-size: 0.85rem;display: flex;justify-content: space-between;padding: 6px 0;border-bottom: 1px solid #000;}
.ps-item b { color: #555; font-weight: 500; }

.ps-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.ps-gallery img { height: 90px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

.additional-info { margin-top: 20px; }
.ps-expose-link {
    display: inline-block; background: #14213d; color: #fff; padding: 10px 20px;
    border-radius: 8px; text-decoration: none; font-size: 0.9rem;
}
.ps-expose-link:hover { background: #0d162d; }

/* ===== Property actions row ===== */
.property-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }

.property-contact-btn {
    background: #fff;
    color: #14213d;
    border: 1px solid #ba723f;
}
.property-contact-btn:hover {
    background: #ba723f;
    color: #fff;
}

/* ===== Contact modal ===== */
.ps-contact-modal { z-index: 100000; }

.ps-contact-dialog {
    max-width: 560px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.ps-contact-header {
    background: #ba723f;
    color: #fff;
    padding: 28px 28px 20px;
}
.ps-contact-heading {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}
.ps-contact-subheading {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.ps-contact-body {
    padding: 24px 28px 28px;
    background: #fff;
}

/* Fallback built-in form */
.ps-field-row { margin-bottom: 14px; }
.ps-field-row label { display: block; font-size: 0.85rem; font-weight: 500; color: #444; margin-bottom: 5px; }
.ps-input {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd;
    border-radius: 7px; font-size: 0.9rem; box-sizing: border-box;
    transition: border-color .2s;
}
.ps-input:focus { outline: none; border-color: #14213d; }
.ps-textarea { resize: vertical; min-height: 100px; }

.ps-contact-notice {
    padding: 10px 14px; border-radius: 7px; font-size: 0.9rem; margin-bottom: 14px;
}
.ps-contact-success { background: #eafaf1; color: #1e7e34; border: 1px solid #b7dfc5; }
.ps-contact-error   { background: #fff0f0; color: #b32d2e; border: 1px solid #f5c6c6; }

/* CF7 inside modal — basic overrides */
.ps-contact-body .wpcf7 { margin: 0; }
.ps-contact-body .wpcf7-form p { margin: 0; }
.ps-contact-body .wpcf7 input[type="text"],
.ps-contact-body .wpcf7 input[type="email"],
.ps-contact-body .wpcf7 input[type="tel"],
.ps-contact-body .wpcf7 textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd;
    border-radius: 7px; font-size: 0.9rem; box-sizing: border-box;
}
.ps-contact-body .wpcf7 input[type="submit"] {
    background: #ba723f; color: #fff; border: none;
    padding: 10px 20px; border-radius: 8px; cursor: pointer;
    font-size: 0.9rem; font-weight: 500;
}
.ps-contact-body .wpcf7 input[type="submit"]:hover { background: #bb7646; }

div#psContactModal {
    font-weight: inherit; 
    font-size: 14px;
}
.ps-modal .ps-item:nth-last-child(1),.ps-modal .ps-item:nth-last-child(2) {
    border-bottom: none;
}

.ps-modal{position:fixed;inset:0;background:rgba(10,8,6,.92);display:none;z-index:99999;overflow:none;padding:40px 20px;backdrop-filter:blur(4px)}
.ps-modal.active{display:block}
.ps-modal-dialog{max-width:980px;margin:0 auto;/* background:#0e0c0a; */border:1px solid rgba(180,155,100,.18);border-radius:4px;overflow:auto;position:relative;height:90vh;color: #000;}
body.hide-scroll{overflow: hidden;}
.ps-close {position: absolute;top: 20px;right: 20px;width: 40px;height: 40px;background: rgb(0 0 0 / 70%);border: 1px solid rgb(255 255 255 / 100%);border-radius: 50%;cursor: pointer;display: flex;
    align-items: center;justify-content: center;z-index: 100000;transition: all .2s;color: #ffffff;font-size: 20px;line-height: 1;}
.ps-modal .ps-close:hover{background:rgba(180,155,100,.18);border-color:rgba(180,155,100,.5)}
.ps-modal .ps-hero{position:relative;height:480px;overflow:hidden}
.ps-modal .ps-hero img{width:100%;height:100%;object-fit:cover;display:block}
.ps-modal .ps-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(14,12,10,.95) 0%,rgba(14,12,10,.3) 45%,transparent 100%)}
.ps-modal .ps-hero-info{position:absolute;bottom:0;left:0;right:0;padding:40px 48px 36px}
.ps-modal .ps-eyebrow{font-size:10px;font-weight:500;letter-spacing:.2em;color: #FFF;text-transform:uppercase;margin-bottom:12px}
.ps-modal .ps-modal-title{font-size:36px;font-weight:500;color:#f5f0e8;line-height:1.15;margin-bottom:10px}
.ps-modal .ps-modal-address{font-size:14px;color:rgba(245,240,232,.55);display:flex;align-items:center;gap:6px}
.ps-modal .ps-price-bar{padding:22px 48px;/* background:#0a0806; */border-bottom:1px solid rgba(180,155,100,.1);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ps-modal .ps-price{font-size:30px;/* color:#c9aa73; */}
.ps-modal .ps-price-label{font-size:10px;letter-spacing:.15em;color: #000;text-transform:uppercase;margin-bottom:4px}
.ps-modal .ps-stats{display:flex;gap:28px;align-items:center}
.ps-modal .ps-stat{text-align:center}
.ps-modal .ps-stat-val{font-size:20px;/* color:#f5f0e8; */}
.ps-modal .ps-stat-lbl{font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin-top:3px}
.ps-modal .ps-divider{width:1px;height:36px;background:rgba(180,155,100,.15);}
.ps-modal .ps-body{padding:48px;}
.ps-modal .ps-section-label{font-size: 14px;font-weight: 600;letter-spacing:.2em;color: #000;text-transform:uppercase;margin-bottom:16px;padding-bottom:10px;margin-top:32px;font-family: Open Sans,Arial,sans-serif;}
.ps-modal::-webkit-scrollbar{width: 5px;}
.ps-modal::-webkit-scrollbar-thumb{background: #f1f1f1; }
.ps-modal::-webkit-scrollbar-track{background: #888;}
.ps-modal .ps-section-label:first-child{margin-top:0}
.ps-modal .ps-desc{font-size:14px;line-height:1.8;/* color:rgba(245,240,232,.65); */white-space:pre-line;font-weight:initial;}
.ps-modal .ps-grid{display:grid;grid-template-columns:1fr 1fr;gap: 0px;/* background:rgba(180,155,100,.1); */border: 1px solid rgb(0 0 0);margin:16px 0}
.ps-modal .ps-item{padding:14px 16px;font-size: 14px;}
.ps-modal .ps-item b{display:block;font-size: 12px;/* font-weight: 600; */letter-spacing:.12em;color: #000;text-transform:uppercase;margin-bottom:5px}
.ps-modal .ps-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:12px}
.ps-modal .ps-gallery img{width:100%;height:120px;object-fit:cover;display:block;filter:brightness(.85);transition:filter .2s;cursor:pointer}
.ps-modal .ps-gallery img:hover{filter:brightness(1)}
.ps-modal .ps-agent-card{background:#0a0806;border:1px solid rgba(180,155,100,.12);border-radius:3px;padding:22px;margin-bottom:20px}
.ps-modal .ps-agent-avatar{width:48px;height:48px;border-radius:50%;background:rgba(180,155,100,.08);border:1px solid rgba(180,155,100,.18);margin-bottom:14px;display:flex;align-items:center;justify-content:center;font-size:17px;color:#b49b64}
.ps-modal .ps-agent-name{font-size:16px;color:#f5f0e8;margin-bottom:3px}
.ps-modal .ps-agent-role{font-size:10px;color:rgba(180,155,100,.5);letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px}
.ps-modal .ps-agent-contact{font-size:13px;color:rgba(245,240,232,.45);line-height:1.9}
.ps-modal .ps-cta-primary{padding:14px;background:#b49b64;border:none;border-radius:2px;font-size:10px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:#0a0806;cursor:pointer;transition:background .2s;text-align:center;text-decoration:none}
.ps-modal .ps-cta-primary:hover{background:#c9aa73}
.ps-modal .ps-expose-link{padding:13px;background:transparent;border: 1px solid #000;border-radius:2px;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color: #000;cursor:pointer;transition:all .2s;text-align:center;text-decoration:none;box-sizing:border-box}
.ps-modal .ps-expose-link:hover{border-color: rgba(180,155,100,1);background: rgba(180,155,100,1);}
.ps-modal .ps-ref{font-size:10px;color:rgba(180,155,100,.25);letter-spacing:.1em;text-transform:uppercase;text-align:center;margin-top:12px}
.ps-modal .additional-info{display:flex; gap:10px; margin-top:15px;}
@media(max-width:768px){
  .ps-modal .ps-body{padding:24px}
  .ps-modal .ps-hero{height:280px}
  .ps-modal .ps-hero-info{padding:24px 24px 20px}
  .ps-modal .ps-modal-title{font-size:24px}
  .ps-modal .ps-price-bar{padding:18px 24px}
  .ps-modal .ps-stats{gap:14px}
  .ps-modal .ps-gallery{grid-template-columns:repeat(2,1fr)}
	
}