/*
Theme Name: Prime Estates - Real Estate
Theme URI: https://convotra.website
Author: Convotra AI
Author URI: https://convotra.website
Description: A confident, trustworthy theme for estate agents, brokers and builders. Property listings with price, status and search, plus services, agents, testimonials, FAQs and site-visit enquiries - all managed from the WordPress admin, with layout and alignment options in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: convotra-clinic
*/

/* The shared layout (assets/base.css) loads first; this file is the Prime Estates skin. */

/* ---------- Tokens ---------- */
.cvc {
  --cvc-ink: #0c1f36;
  --cvc-body: #3b4a5e;
  --cvc-muted: #66758a;
  --cvc-line: #e3e8ef;
  --cvc-surface: #ffffff;
  --cvc-tint: #f4f7fb;
  --cvc-dark: #0c1f36;
  --cvc-dark-2: #081628;
  --cvc-radius: 16px;
  --cvc-radius-sm: 10px;
  --cvc-btn-radius: 10px;
  --cvc-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cvc-head-weight: 800;
  --cvc-head-spacing: -0.025em;
}

.cvc-kicker { padding: 5px 12px; border-radius: 999px; background: var(--cvc-accent-soft); color: #8a5a1c; letter-spacing: 0.08em; }
.cvc-kicker-light { background: rgba(255, 255, 255, 0.1); color: #f0cf9e; }
.cvc-btn-accent { box-shadow: 0 10px 24px -12px rgba(var(--cvc-accent-rgb), 0.9); }
.cvc-btn-accent:hover { box-shadow: 0 14px 28px -12px rgba(var(--cvc-accent-rgb), 1); }

/* ---------- Hero: a dark band with the search box overlapping its bottom edge ---------- */
.cvc-hero {
  position: relative; padding: clamp(48px, 6vw, 88px) 0 0; color: #c9d4e3;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(var(--cvc-accent-rgb), 0.22), transparent 70%),
    linear-gradient(160deg, var(--cvc-primary) 0%, var(--cvc-dark) 100%);
}
.cvc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(72px, 8vw, 112px); }
.cvc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.86rem; font-weight: 600;
}
.cvc-eyebrow .cvc-icon { width: 16px; height: 16px; color: var(--cvc-accent); }
.cvc-hero .cvc-hero-title { color: #fff; }
.cvc-hero .cvc-hero-text { color: #c9d4e3; }
.cvc-hero .cvc-hero-proof { color: #c9d4e3; }
.cvc-hero .cvc-hero-proof strong { color: #fff; }
.cvc-hero .cvc-star { color: rgba(255, 255, 255, 0.25); }
.cvc-hero .cvc-star.is-on { color: var(--cvc-accent); }

.cvc-hero-visual { position: relative; padding: 0 0 30px 24px; }
.cvc-hero-photo { position: relative; aspect-ratio: 5 / 4.4; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.cvc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.cvc-hero-skyline { background: linear-gradient(180deg, #24507f 0%, #3a6ea5 55%, #e9b877 100%); }
.cvc-sky-sun { position: absolute; right: 16%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 236, 200, 0.9); box-shadow: 0 0 60px 20px rgba(255, 220, 160, 0.35); }
.cvc-sky-tower {
  position: absolute; bottom: 12%; background-color: #0f2c4c;
  background-image:
    linear-gradient(rgba(255, 224, 160, 0.55) 40%, transparent 40%),
    linear-gradient(90deg, transparent 22%, #0f2c4c 22%, #0f2c4c 34%, transparent 34%, transparent 66%, #0f2c4c 66%, #0f2c4c 78%, transparent 78%);
  background-size: 100% 22px, 100% 22px; border-radius: 4px 4px 0 0;
}
.cvc-sky-tower-a { left: 8%; width: 18%; height: 46%; }
.cvc-sky-tower-b { left: 29%; width: 22%; height: 66%; background-color: #0b2340; }
.cvc-sky-tower-c { left: 54%; width: 16%; height: 38%; }
.cvc-sky-tower-d { left: 72%; width: 20%; height: 54%; background-color: #0b2340; }
.cvc-sky-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: #0a1d33; }
.cvc-hero-listing {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; max-width: 82%; padding: 14px 18px;
  border-radius: 16px; background: #fff; box-shadow: var(--cvc-shadow-lg); text-decoration: none !important;
}
.cvc-hero-listing-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--cvc-accent-soft); color: #8a5a1c; }
.cvc-hero-listing-label { display: block; color: var(--cvc-primary); font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.cvc-hero-listing-title { display: block; color: var(--cvc-muted); font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.cvc-hero-count {
  position: absolute; right: -10px; top: 22px; display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px;
  background: var(--cvc-accent); color: rgba(255, 255, 255, 0.92); font-size: 0.8rem; font-weight: 600; box-shadow: var(--cvc-shadow-lg);
}
.cvc-hero-count strong { color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }

/* Banner layouts chosen in the Customizer. */
.cvc-hero-text-right .cvc-hero-copy { order: 2; }
.cvc-hero-text-right .cvc-hero-visual { padding: 0 24px 30px 0; }
.cvc-hero-text-right .cvc-hero-listing { left: auto; right: 0; }
.cvc-hero-text-right .cvc-hero-count { right: auto; left: -10px; }
.cvc-hero-center .cvc-hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(64px, 7vw, 96px); }
.cvc-hero-center .cvc-hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.cvc-hero-center .cvc-hero-text { margin-inline: auto; }
.cvc-hero-center :is(.cvc-hero-actions, .cvc-hero-proof) { justify-content: center; }
.cvc-hero-center .cvc-hero-visual { max-width: 900px; margin-inline: auto; width: 100%; padding-left: 0; }
.cvc-hero-center .cvc-hero-photo { aspect-ratio: 16 / 7; }

/* ---------- Search ---------- */
/* The search box straddles the bottom edge of the banner. */
.cvc-hero-search { position: relative; z-index: 3; transform: translateY(50%); margin-top: -46px; }
.cvc-hero:has(.cvc-hero-search) { margin-bottom: 46px; }
.cvc-search {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 0; align-items: stretch; padding: 10px;
  border-radius: 18px; background: #fff; box-shadow: var(--cvc-shadow-lg); border: 1px solid var(--cvc-line);
}
.cvc-search-field { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; min-width: 0; }
.cvc-search-field + .cvc-search-field { border-left: 1px solid var(--cvc-line); }
.cvc-search-field label { color: var(--cvc-muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cvc-search-field select, .cvc-search-field input {
  width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--cvc-ink); font-family: inherit; font-size: 1rem; font-weight: 700;
}
.cvc-search-field select:focus, .cvc-search-field input:focus { outline: none; }
.cvc-search-field:focus-within { border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(var(--cvc-accent-rgb), 0.7); }
.cvc-search-field input::placeholder { color: #9aa7b8; font-weight: 500; }
.cvc-search-submit { padding-inline: 26px; }
.cvc-page-head-search .cvc-search { margin-top: 22px; }

/* ---------- Stats sit under the search box ---------- */
.cvc-stats { border-bottom: 0; }
.cvc-stats-grid { padding: 22px 8px; border: 1px solid var(--cvc-line); border-radius: var(--cvc-radius); background: #fff; box-shadow: var(--cvc-shadow); }
.cvc-stat { text-align: center; }
.cvc-stat dd { color: var(--cvc-primary); }

/* ---------- Property cards ---------- */
.cvc-property { border: 1px solid var(--cvc-line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cvc-property:hover { transform: translateY(-4px); box-shadow: var(--cvc-shadow-lg); }
.cvc-property .cvc-card-body { gap: 6px; }
.cvc-property-price { color: var(--cvc-primary); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.cvc-property .cvc-h3 { font-size: 1.05rem; }
.cvc-property-location { display: flex; align-items: center; gap: 6px; color: var(--cvc-muted); font-size: 0.9rem; }
.cvc-property-location .cvc-icon { width: 16px; height: 16px; color: var(--cvc-accent); }
.cvc-cards-center .cvc-property-location { justify-content: center; }
.cvc-property-facts { align-self: stretch; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cvc-line); color: var(--cvc-ink); font-weight: 600; }
.cvc-property-facts .cvc-icon { color: var(--cvc-muted); }
.cvc-badge-sale { background: var(--cvc-primary); color: #fff; }
.cvc-badge-rent { background: #0f766e; color: #fff; }
.cvc-badge-launch { background: var(--cvc-accent); color: #fff; }
.cvc-badge-sold { background: #475569; color: #fff; }
.cvc-property[data-cvc-tag="sold"] .cvc-card-media img { filter: grayscale(0.7); }

/* ---------- Single listing ---------- */
.cvc-property-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cvc-property-head .cvc-property-location { margin-top: 10px; font-size: 1rem; }
.cvc-property-head-price { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cvc-property-head-price .cvc-property-price { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cvc-property-cover { position: relative; aspect-ratio: 16 / 10; margin-bottom: 20px; }
.cvc-property-cover img { width: 100%; height: 100%; object-fit: cover; }
.cvc-property-cover .cvc-art { position: absolute; inset: 0; }
.cvc-property-entry { margin-top: 28px; }
.cvc-property-subhead { margin-top: 32px; font-size: 1.3rem; }
.cvc-property-features { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.cvc-empty .cvc-h3 { margin-bottom: 8px; }

/* ---------- Other sections ---------- */
.cvc-service { box-shadow: none; }
.cvc-service-icon { background: var(--cvc-primary); color: #fff; }
.cvc-member-role { color: #8a5a1c; }
.cvc-about-badge { background: var(--cvc-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cvc-hero-search { transform: none; margin-top: -40px; padding-bottom: 32px; }
  .cvc-hero:has(.cvc-hero-search) { margin-bottom: 0; }
  .cvc-search { grid-template-columns: 1fr 1fr; gap: 4px; }
  .cvc-search-field:nth-child(3) { border-left: 0; border-top: 1px solid var(--cvc-line); }
  .cvc-search-submit { margin: 6px; }
}
@media (max-width: 860px) {
  .cvc-hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .cvc-hero-text-right .cvc-hero-copy { order: 0; }
  .cvc-hero-visual, .cvc-hero-text-right .cvc-hero-visual { max-width: 560px; padding: 0 0 30px; }
  .cvc-hero-count, .cvc-hero-text-right .cvc-hero-count { right: 12px; left: auto; }
  .cvc-hero-text-right .cvc-hero-listing { right: auto; left: 0; }
  .cvc-stat:nth-child(n + 3) { padding-top: 12px; }
}
@media (max-width: 600px) {
  .cvc-search { grid-template-columns: minmax(0, 1fr); }
  .cvc-search-field + .cvc-search-field { border-left: 0; border-top: 1px solid var(--cvc-line); }
  .cvc-search-submit { margin: 8px 0 0; width: 100%; }
  .cvc-hero-search { transform: none; margin-top: -40px; padding-bottom: 28px; }
  .cvc-hero:has(.cvc-hero-search) { margin-bottom: 0; }
  .cvc-property-features { grid-template-columns: minmax(0, 1fr); }
  .cvc-property-head-price { align-items: flex-start; }
  .cvc-hero-center .cvc-hero-photo { aspect-ratio: 4 / 3; }
}
