/*
Theme Name: Jaguar de la Costa
Theme URI: https://jaguardelacosta.mx/
Author: Jaguar de la Costa
Description: Tema administrable para inventario, rentas, preventas y contenido multimedia.
Version: 0.6.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: jaguar-de-la-costa
*/

:root {
  --jaguar-ink: #0b1210;
  --jaguar-deep: #102019;
  --jaguar-gold: #c99a42;
  --jaguar-ivory: #f4efe5;
  --jaguar-muted: #8b918d;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--jaguar-ink); color: var(--jaguar-ivory); font-family: system-ui, sans-serif; }
a { color: inherit; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(11 18 16 / 92%); backdrop-filter: blur(18px); border-bottom: 1px solid rgb(201 154 66 / 25%); }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { text-decoration: none; letter-spacing: .08em; font-weight: 700; }
.site-main { min-height: 72vh; padding-block: 48px 80px; }
.inventory-heading { display: grid; gap: 12px; margin-bottom: 32px; }
.inventory-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.property-card { overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 0; background: #14221c; }
.property-card__image { display: block; aspect-ratio: 4/3; background: #1c2b25; }
.property-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.property-card__body { padding: 20px; }
.property-card__eyebrow { color: var(--jaguar-gold); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.property-card h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 1.65rem; }
.property-card__meta { color: #ced4d0; }
.property-card__price { margin-top: 16px; font-weight: 700; }
.inventory-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: 16px; align-items: end; padding-block: 22px; border-block: 1px solid rgb(255 255 255 / 16%); }
.inventory-filters label { display: grid; gap: 8px; color: #c5ccc8; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.inventory-filters select { min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid rgb(255 255 255 / 38%); border-radius: 0; background: #0b1210; color: var(--jaguar-ivory); font: inherit; }
.inventory-filters button,
.inventory-filters > a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--jaguar-gold); border-radius: 0; background: transparent; color: var(--jaguar-ivory); font: 700 .75rem/1 system-ui, sans-serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.inventory-filters button { background: var(--jaguar-gold); color: var(--jaguar-ink); }
.inventory-map { min-height: 520px; margin-block: 36px; border-radius: 0; overflow: hidden; background: #19251f; }
.inventory-map__notice { display: grid; place-items: center; min-height: 320px; padding: 24px; text-align: center; color: #ccd1ce; }
.property-detail { display: grid; gap: 28px; }
.property-detail__header { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-top: 32px; }
.property-detail__header h1 { max-width: 880px; margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 6.8rem); font-weight: 400; line-height: .92; text-wrap: balance; }
.property-detail__price { margin: 22px 0 0; color: var(--jaguar-gold); font-size: clamp(1.35rem, 3vw, 2.1rem); }
.property-detail__actions,
.property-detail__documents { display: flex; flex-wrap: wrap; gap: 10px; }
.property-detail__hero img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: 0; }
.property-detail__copy { max-width: 780px; color: #d9dedb; font-size: 1.08rem; line-height: 1.8; }
.property-data-notice { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; padding: 16px 18px; border-left: 3px solid var(--jaguar-gold); background: rgb(201 154 66 / 9%); color: #d6dcd8; }
.property-data-notice strong { color: var(--jaguar-gold); }
.property-financing { grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); align-items: start; }
.property-financing .property-card__eyebrow,
.property-financing h2 { grid-column: 1; }
.property-financing > p:not(.property-card__eyebrow) { grid-column: 2; margin: 0; color: #d9dedb; line-height: 1.7; }
.property-section { display: grid; gap: 14px; padding-block: 38px; border-top: 1px solid rgb(255 255 255 / 11%); }
.property-section h2,
.property-tool h2,
.jaguar-lead-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; text-wrap: balance; }
.property-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.property-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.property-facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.property-facts li { padding: 10px 14px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 0; }
.property-video iframe,
.property-section video { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.jaguar-button,
.jaguar-submit { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid rgb(201 154 66 / 58%); border-radius: 2px; background: transparent; color: var(--jaguar-ivory); font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.jaguar-button:hover,
.jaguar-button:focus-visible,
.jaguar-submit:hover,
.jaguar-submit:focus-visible { border-color: var(--jaguar-gold); background: rgb(201 154 66 / 12%); outline: none; }
.jaguar-button.is-primary,
.jaguar-submit { border-color: var(--jaguar-gold); background: var(--jaguar-gold); color: var(--jaguar-ink); }
.property-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.property-tool { position: relative; display: grid; align-content: start; gap: 28px; padding: clamp(24px, 4vw, 48px); overflow: hidden; border: 1px solid rgb(201 154 66 / 28%); border-radius: 0; background: #101d18; }
.property-tool::after { position: absolute; inset: 0 0 auto; height: 2px; background: var(--jaguar-gold); content: ""; }
.property-tool__intro { display: grid; gap: 10px; }
.property-tool__intro p { margin: 0; color: #c9d0cc; line-height: 1.6; }
.property-calculator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.property-calculator label,
.jaguar-lead-form label { display: grid; gap: 7px; }
.property-calculator label span,
.jaguar-lead-form label > span { color: #c5ccc8; font-size: .78rem; letter-spacing: .07em; }
.property-calculator input,
.property-calculator select,
.jaguar-lead-form input,
.jaguar-lead-form select,
.jaguar-lead-form textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid rgb(255 255 255 / 17%); border-radius: 8px; background: #09110e; color: var(--jaguar-ivory); font: inherit; }
.property-calculator input:focus,
.jaguar-lead-form input:focus,
.jaguar-lead-form select:focus,
.jaguar-lead-form textarea:focus { border-color: var(--jaguar-gold); outline: 2px solid rgb(201 154 66 / 22%); outline-offset: 1px; }
.calculator-result,
.calculator-breakdown { grid-column: 1 / -1; margin: 8px 0 0; }
.calculator-result { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 18px 0; border-block: 1px solid rgb(255 255 255 / 12%); }
.calculator-result strong { color: var(--jaguar-gold); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.calculator-breakdown { display: grid; gap: 0; }
.calculator-breakdown div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.calculator-breakdown dt { color: #b8c0bb; }
.calculator-breakdown dd { margin: 0; font-weight: 700; }
.calculator-breakdown .is-total dd { color: var(--jaguar-gold); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.calculator-disclaimer { grid-column: 1 / -1; margin: 0; color: #9da6a0; font-size: .78rem; line-height: 1.55; }
.property-calculator > .jaguar-button { grid-column: 1 / -1; justify-self: start; }
.jaguar-lead-panel { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 80px); margin-top: 34px; padding: clamp(28px, 6vw, 72px); border-top: 1px solid var(--jaguar-gold); border-bottom: 1px solid rgb(201 154 66 / 25%); background: #101d18; }
.jaguar-lead-panel > div:first-child { align-self: start; }
.jaguar-lead-panel > div:first-child > p:last-child { color: #bbc4be; line-height: 1.7; }
.jaguar-lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jaguar-lead-form textarea { resize: vertical; }
.jaguar-lead-form .is-wide { grid-column: 1 / -1; }
.jaguar-form-assurance { margin: 0; color: #9fa9a3; font-size: .78rem; line-height: 1.55; }
.jaguar-consent { grid-template-columns: auto 1fr; align-items: start; }
.jaguar-consent input { width: 20px; min-height: 20px; margin-top: 2px; }
.jaguar-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.jaguar-form-notice { grid-column: 2; display: grid; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--jaguar-gold); background: rgb(201 154 66 / 10%); }
.jaguar-form-notice .jaguar-button { justify-self: start; margin-top: 8px; }
.jaguar-print-folio { display: none; }
.property-source-note { margin: 0; color: #7f8a84; font-size: .72rem; line-height: 1.5; }
.jaguar-form-notice.is-error { border-color: #e46e5b; background: rgb(228 110 91 / 10%); }
.site-footer { padding: 32px 0; border-top: 1px solid rgb(255 255 255 / 10%); color: var(--jaguar-muted); }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-bottom: 24px; }
.partner-logos img { width: auto; height: 42px; max-width: 180px; object-fit: contain; }

@media (max-width: 520px) {
  .partner-logos { gap: 20px; }
  .partner-logos img { height: 32px; max-width: 145px; }
}

@media (max-width: 820px) {
  .property-detail__header { align-items: start; flex-direction: column; }
  .property-tools-grid,
  .jaguar-lead-panel { grid-template-columns: 1fr; }
  .jaguar-form-notice { grid-column: 1; }
  .property-financing { grid-template-columns: 1fr; }
  .property-financing > * { grid-column: 1 !important; }
  .inventory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .property-calculator,
  .jaguar-lead-form { grid-template-columns: 1fr; }
  .property-calculator > *,
  .jaguar-lead-form .is-wide { grid-column: 1; }
  .calculator-result { align-items: start; flex-direction: column; }
  .inventory-filters { grid-template-columns: 1fr; }
}

@media print {
  .site-header,
  .site-footer,
  .property-detail__actions,
  .property-tools-grid,
  .property-tool,
  .jaguar-lead-panel,
  .property-detail__documents { display: none !important; }
  .jaguar-print-folio { display: grid !important; gap: 3px; padding: 12pt 0; border-top: 1pt solid #222; border-bottom: 1pt solid #222; color: #111; }
  body { background: #fff; color: #111; }
  .site-main { padding: 0; }
  .property-detail__header h1 { color: #111; font-size: 42pt; }
  .property-detail__hero img { max-height: 45vh; border-radius: 0; }
  .property-detail__copy { color: #222; }
}
