/* Xoft Properties — front-end styles */

.xprop-front { --xprop-accent: #2563eb; --xprop-ink: #111827; --xprop-muted: #6b7280; --xprop-line: #e5e7eb; font-family: inherit; color: var(--xprop-ink); }
.xprop-front * { box-sizing: border-box; }
.xprop-front .xprop-none { text-align: center; color: var(--xprop-muted); padding: 40px 0; }
.xprop-front .xprop-muted { color: var(--xprop-muted); }

/* Search bar */
.xprop-search { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--xprop-line); padding: 14px; border-radius: 14px; margin-bottom: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.xprop-search input, .xprop-search select { flex: 1 1 150px; padding: 11px 12px; border: 1px solid var(--xprop-line); border-radius: 9px; font-size: 14px; min-width: 120px; }
.xprop-search button { flex: 0 0 auto; padding: 11px 26px; background: var(--xprop-accent); color: #fff; border: none; border-radius: 9px; font-weight: 600; cursor: pointer; }
.xprop-search button:hover { filter: brightness(.95); }

/* Listing grid */
.xprop-listing-grid { display: grid; gap: 22px; }
.xprop-cols-1 { grid-template-columns: 1fr; }
.xprop-cols-2 { grid-template-columns: repeat(2, 1fr); }
.xprop-cols-3 { grid-template-columns: repeat(3, 1fr); }
.xprop-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .xprop-cols-3, .xprop-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .xprop-listing-grid { grid-template-columns: 1fr !important; } }

.xprop-card-item { background: #fff; border: 1px solid var(--xprop-line); border-radius: 16px; overflow: hidden; transition: box-shadow .18s, transform .18s; }
.xprop-card-item:hover { box-shadow: 0 14px 30px rgba(0,0,0,.10); transform: translateY(-3px); }
.xprop-card-media { display: block; position: relative; height: 210px; background-size: cover; background-position: center; }
.xprop-tag { position: absolute; top: 12px; left: 12px; background: rgba(17,24,39,.85); color: #fff; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.xprop-tag-rent { background: rgba(37,99,235,.9); }
.xprop-tag-featured { left: auto; right: 12px; background: rgba(217,119,6,.92); }
.xprop-card-body { padding: 16px 18px 18px; }
.xprop-card-price { font-size: 20px; font-weight: 800; color: var(--xprop-accent); }
.xprop-card-price small { font-weight: 500; color: var(--xprop-muted); font-size: 12px; }
.xprop-card-title { margin: 6px 0 4px; font-size: 17px; line-height: 1.3; }
.xprop-card-title a { color: var(--xprop-ink); text-decoration: none; }
.xprop-card-title a:hover { color: var(--xprop-accent); }
.xprop-card-loc { color: var(--xprop-muted); font-size: 13px; }
.xprop-card-meta { display: flex; gap: 16px; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--xprop-line); font-size: 13px; color: #374151; }
.xprop-card-meta li { list-style: none; }

/* Pager */
.xprop-pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.xprop-pager .page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--xprop-line); border-radius: 9px; text-decoration: none; color: var(--xprop-ink); }
.xprop-pager .page-numbers.current { background: var(--xprop-accent); color: #fff; border-color: var(--xprop-accent); }

/* Single */
.xprop-single-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.xprop-single-title { margin: 0; font-size: 30px; line-height: 1.2; }
.xprop-single-loc { color: var(--xprop-muted); margin-top: 4px; }
.xprop-single-price { font-size: 28px; font-weight: 800; color: var(--xprop-accent); }
.xprop-single-price small { font-size: 13px; color: var(--xprop-muted); font-weight: 500; }
.xprop-gallery-hero { height: 420px; border-radius: 18px; background-size: cover; background-position: center; background-color: #eef0f2; }
@media (max-width: 640px) { .xprop-gallery-hero { height: 260px; } }
.xprop-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; margin: 12px 0; }
.xprop-gallery-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 9px; }

.xprop-single-cols { display: grid; grid-template-columns: 1fr 340px; gap: 30px; margin-top: 24px; align-items: start; }
@media (max-width: 980px) { .xprop-single-cols { grid-template-columns: 1fr; } }

.xprop-facts { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 18px; margin: 0 0 22px; background: #f9fafb; border: 1px solid var(--xprop-line); border-radius: 14px; }
.xprop-facts li { list-style: none; display: flex; flex-direction: column; min-width: 90px; font-size: 13px; color: var(--xprop-muted); }
.xprop-facts li span { font-size: 20px; font-weight: 700; color: var(--xprop-ink); }

.xprop-block { margin-bottom: 26px; }
.xprop-block h2 { font-size: 20px; margin: 0 0 12px; }
.xprop-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.xprop-features li { list-style: none; padding: 8px 12px; background: #f9fafb; border-radius: 8px; font-size: 14px; }
.xprop-features li::before { content: "✓"; color: #059669; font-weight: 700; margin-right: 8px; }
.xprop-detail-table { width: 100%; border-collapse: collapse; }
.xprop-detail-table th, .xprop-detail-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--xprop-line); font-size: 14px; }
.xprop-detail-table th { color: var(--xprop-muted); font-weight: 600; width: 40%; }
.xprop-floor img { max-width: 100%; border-radius: 12px; }
.xprop-embed iframe, .xprop-map { width: 100%; border: none; border-radius: 14px; }
.xprop-map { height: 320px; }

/* Agent card + inquiry form */
.xprop-single-side > * { margin-bottom: 18px; }
.xprop-agent-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--xprop-line); border-radius: 14px; padding: 14px; }
.xprop-agent-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.xprop-agent-card strong { display: block; }
.xprop-agent-card span { display: block; color: var(--xprop-muted); font-size: 13px; }
.xprop-agent-card a { display: block; color: var(--xprop-accent); text-decoration: none; font-size: 13px; margin-top: 3px; }

.xprop-inquiry-box { background: #fff; border: 1px solid var(--xprop-line); border-radius: 14px; padding: 18px; position: sticky; top: 20px; }
.xprop-inquiry-box h3 { margin: 0 0 12px; }
.xprop-inquiry-form input, .xprop-inquiry-form select, .xprop-inquiry-form textarea { width: 100%; margin-bottom: 10px; padding: 11px 12px; border: 1px solid var(--xprop-line); border-radius: 9px; font-size: 14px; }
.xprop-inquiry-form .xprop-hp { position: absolute; left: -9999px; }
.xprop-inquiry-form button { width: 100%; padding: 12px; background: var(--xprop-accent); color: #fff; border: none; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 15px; }
.xprop-inquiry-form button:hover { filter: brightness(.95); }
.xprop-inquiry-form button.is-loading { opacity: .6; cursor: wait; }
.xprop-form-msg { margin-top: 10px; font-size: 14px; }
.xprop-form-msg.is-success { color: #0a7c42; }
.xprop-form-msg.is-error { color: #b32d2e; }

/* Agents directory */
.xprop-agents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.xprop-agent-tile { text-align: center; background: #fff; border: 1px solid var(--xprop-line); border-radius: 16px; padding: 22px; }
.xprop-agent-tile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.xprop-agent-tile h3 { margin: 0; font-size: 17px; }
.xprop-agent-contact { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.xprop-agent-contact a { color: var(--xprop-accent); text-decoration: none; font-size: 13px; }
