/*
Theme Name: Casa Ciruela
Description: A responsive, single-property real estate website for Casa Ciruela, Colinas del Sol.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: casa-ciruela
*/
:root{--paper:#f8f5ee;--white:#fffdf9;--ink:#283a32;--muted:#5e6b61;--sage:#dce4d9;--accent:#a34c32;--line:#dedbd1;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:92px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit}img{display:block;width:100%;height:auto}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid #c97543;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.08;font-family:var(--serif);font-weight:400}h1{font-size:clamp(3.6rem,7.5vw,7.8rem);letter-spacing:-.065em}h2{font-size:clamp(2.25rem,4vw,4.25rem);letter-spacing:-.045em}h3{font-size:1.65rem;letter-spacing:-.025em}p+p{margin-top:1em}.wrap{width:min(1180px,calc(100% - 80px));margin:auto}.eyebrow{font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.16em;line-height:1.5}.muted{color:var(--muted)}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:84px}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{width:38px;height:38px;color:var(--accent)}.brand-name{font-family:var(--serif);font-size:1.3rem;line-height:1.1;letter-spacing:-.04em}.brand-sub{display:block;font:650 .62rem/1.5 var(--sans);letter-spacing:.15em;text-transform:uppercase;margin-top:5px;color:var(--muted)}.nav-links{display:flex;align-items:center;gap:26px}.nav-links a{text-decoration:none;font-weight:600;font-size:.86rem}.nav-links a:hover{text-decoration:underline;text-underline-offset:5px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:13px 24px;border-radius:4px;background:var(--ink);color:#fff;text-decoration:none;font-size:.88rem;font-weight:680;line-height:1.35;border:1px solid var(--ink)}.btn:hover{background:#41594b}.btn.light{background:var(--white);color:var(--ink);border-color:var(--white)}.btn.light:hover{background:var(--sage)}.btn.outline{background:transparent;color:var(--ink);border-color:var(--ink)}.btn.outline:hover{background:var(--sage)}.btn.small{min-height:42px;padding:10px 17px}.hero{display:grid;grid-template-columns:.92fr 1.08fr;min-height:600px;margin:30px auto 0;max-width:1440px;width:calc(100% - 60px);background:#eae5d9}.hero-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(32px,5vw,76px);gap:20px}.hero-text .eyebrow{color:var(--accent)}.hero-title span{display:block}.hero-intro{max-width:420px;color:var(--muted);font-size:1.06rem}.price{font-size:clamp(1.9rem,3vw,2.6rem);font-weight:600;line-height:1.25;letter-spacing:-.05em}.price small{font-size:.45em;letter-spacing:.06em;font-weight:650;color:var(--muted)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}.hero-visual{min-width:0;position:relative;overflow:hidden;min-height:420px}.hero-visual img{height:100%;object-fit:cover;position:absolute;inset:0}.placeholder{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;background:linear-gradient(136deg,#e0d6c0,#bdc5b6);color:#4a5b4c;text-align:center;padding:18px;min-height:180px;overflow:hidden}.placeholder:before{content:'';position:absolute;width:87%;aspect-ratio:1;border:1px solid #ffffff75;border-radius:50%;top:32%;left:7%;pointer-events:none}.placeholder:after{content:'';position:absolute;width:62%;aspect-ratio:1;border:1px solid #ffffff65;border-radius:50%;top:45%;left:19%;pointer-events:none}.placeholder svg,.placeholder strong,.placeholder small{position:relative;z-index:1}.placeholder svg{width:40px;height:40px;stroke:currentColor;fill:none;stroke-width:1.3}.placeholder strong{font-size:.9rem}.placeholder small{font-size:.72rem;max-width:220px}.hero-visual .placeholder{height:100%;min-height:420px}.hero-visual .placeholder svg{width:64px;height:64px}.hero-visual .placeholder strong{font-size:1.15rem}.facts{display:grid;grid-template-columns:repeat(4,1fr);padding:28px 0;border-bottom:1px solid var(--line)}.fact{text-align:center;padding:10px 12px;border-right:1px solid var(--line)}.fact:last-child{border:0}.fact b{display:block;font-family:var(--serif);font-size:clamp(1.65rem,3.1vw,2.65rem);font-weight:400;line-height:1.2;letter-spacing:-.04em}.fact span{font-size:.78rem;color:var(--muted);font-weight:600}.section{padding:88px 0}.intro{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:start}.intro-heading,.section-head{display:flex;flex-direction:column;gap:14px}.intro .eyebrow,.section-head .eyebrow{color:var(--accent)}.intro-copy{font-size:1.1rem;color:var(--muted)}.amenities{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:38px}.amenity{border-top:1px solid var(--line);padding:24px 15px 0 0}.amenity svg{width:30px;height:30px;display:block;stroke:var(--accent);fill:none;stroke-width:1.5;margin-bottom:12px}.amenity h3{font-family:var(--sans);font-weight:700;font-size:1rem;letter-spacing:0;margin-bottom:5px}.amenity p{font-size:.88rem;color:var(--muted)}.gallery-section{background:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-head.row-head{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:28px}.section-head.row-head p{max-width:400px;color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery-item{margin:0;min-width:0}.gallery-media{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--sage)}.gallery-media img{height:100%;object-fit:cover;transition:transform .25s}.gallery-media:hover img{transform:scale(1.025)}.gallery-media .placeholder{height:100%;min-height:0}.gallery-item figcaption{font-size:.8rem;color:var(--muted);padding-top:9px}.plans{margin-top:33px;border-top:1px solid var(--line);padding-top:25px}.plans img{max-height:700px;object-fit:contain;background:white}.plans h3{margin-bottom:15px}.upgrades .section-head{max-width:760px;margin-bottom:30px}.upgrades .section-head p{color:var(--muted);font-size:1.06rem}.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.upgrade{padding:30px;background:var(--white);border:1px solid var(--line);display:flex;flex-direction:column;gap:15px}.upgrade-no{color:var(--accent);font-size:.7rem;letter-spacing:.12em;font-weight:700}.upgrade h3{max-width:280px}.upgrade p{color:var(--muted);font-size:.92rem;flex:1}.upgrade-price{font-size:1.8rem;font-weight:680;letter-spacing:-.045em;line-height:1.2}.upgrade-price small{font-size:.65rem;color:var(--muted);letter-spacing:.08em;font-weight:650}.bundle{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--sage);padding:28px 32px;margin-top:16px}.bundle p{font-size:.9rem;color:var(--muted);margin-top:5px}.bundle strong{font-family:var(--serif);font-weight:400;font-size:clamp(1.8rem,3vw,2.8rem);white-space:nowrap;letter-spacing:-.045em}.bundle strong small{font-family:var(--sans);font-size:.7rem;letter-spacing:.08em;font-weight:700}.contact-section{background:var(--ink);color:var(--paper);padding:78px 0}.contact-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:45px;align-items:center}.contact-inner .eyebrow{color:#d2c3ab;margin-bottom:13px}.contact-inner h2{max-width:660px}.contact-inner p{color:#e0e6dc;max-width:520px;margin-top:15px}.contact-links{display:flex;flex-direction:column;align-items:stretch;gap:10px;max-width:380px;justify-self:end;width:100%}.contact-links .btn{justify-content:center}.contact-pending{padding:18px;border:1px solid #ffffff45;font-size:.9rem;color:#e0e6dc}.site-footer{background:var(--paper);padding:25px 0;color:var(--muted);font-size:.77rem}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-inner a{text-decoration:none}.skip-link{position:absolute;top:-100px;left:10px;background:white;color:var(--ink);padding:12px;z-index:9999}.skip-link:focus{top:8px}.entry{max-width:820px;margin:60px auto;padding:0 24px}.entry h1{font-size:3rem}.entry-content{margin:24px 0}.entry-content img{max-width:100%;height:auto}
@media(max-width:900px){.wrap{width:calc(100% - 48px)}.hero{width:calc(100% - 32px);min-height:520px}.hero-text{padding:34px;gap:16px}.nav-links{gap:16px}.nav-links a:not(.btn){font-size:.8rem}.intro{gap:35px}.section{padding:65px 0}.upgrade{padding:22px}.contact-inner{gap:25px}}
@media(max-width:650px){html{scroll-padding-top:20px}.wrap{width:calc(100% - 36px)}.nav{min-height:72px;gap:10px}.nav-links a:not(.btn){display:none}.nav-links .btn{font-size:.75rem;padding:10px 12px}.brand-mark{width:31px;height:31px}.brand-name{font-size:1.15rem}.hero{grid-template-columns:1fr;width:100%;margin:0;min-height:0}.hero-text{padding:35px 23px 33px}.hero-title span{display:inline}.hero-visual{min-height:310px;order:2}.hero-visual .placeholder{min-height:310px}.facts{grid-template-columns:repeat(2,1fr);padding:13px 0}.fact:nth-child(2){border-right:0}.fact:nth-child(-n+2){border-bottom:1px solid var(--line)}.fact{padding:15px 5px}.section{padding:50px 0}.intro{grid-template-columns:1fr;gap:20px}.intro-copy{font-size:1rem}.amenities{grid-template-columns:1fr;margin-top:26px;gap:20px}.amenity{padding-top:18px}.section-head.row-head{flex-direction:column;align-items:flex-start;gap:12px}.gallery-grid{grid-template-columns:repeat(2,1fr);gap:12px}.gallery-media .placeholder small{display:none}.gallery-media .placeholder svg{width:26px;height:26px}.gallery-media .placeholder strong{font-size:.7rem}.gallery-item figcaption{font-size:.73rem}.upgrade-grid{grid-template-columns:1fr;gap:12px}.upgrade{padding:23px}.bundle{align-items:flex-start;flex-direction:column;gap:14px;padding:25px}.contact-section{padding:50px 0}.contact-inner{grid-template-columns:1fr;gap:25px}.contact-links{justify-self:start;max-width:none}.footer-inner{gap:6px}.hero-actions .btn{padding:12px 17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Version 2: editable story, property feature details and unlimited galleries. */
.story-section{background:#ede6d8;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.story-inner{display:grid;grid-template-columns:.78fr 1.22fr;gap:85px;align-items:start}
.story-title .eyebrow{color:var(--accent);margin-bottom:15px}
.story-line{margin-top:26px;width:72px;height:2px;background:var(--accent)}
.story-copy{font-size:1.15rem;line-height:1.85;max-width:650px}
.story-copy p+p{margin-top:1.1em}
.rich-content h3{font-size:1.5rem;margin:18px 0 12px}
.rich-content h4{font-size:1.1rem;margin:16px 0 8px}
.rich-content ul,.rich-content ol{padding-left:23px;margin:12px 0 18px}
.rich-content li{padding:3px 0}
.rich-content p{line-height:1.72}
.rich-content a{overflow-wrap:anywhere}
.rich-content img{max-width:100%;height:auto;border-radius:3px}
.rich-content .wp-block-image{margin:16px 0}
.rich-content .wp-block-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 0;list-style:none;padding:0}
.rich-content .wp-block-gallery .wp-block-image{margin:0;max-width:none;width:100%!important}
.rich-content .wp-block-gallery .wp-block-image img{width:100%;height:210px;object-fit:cover;border-radius:2px}
.rich-content .wp-block-gallery figcaption{font-size:.74rem;line-height:1.35;color:var(--muted);padding:5px 0 0;background:none;position:static}
.rich-content figure{max-width:100%}
.rich-content .wp-block-columns{display:flex;gap:20px}
.rich-content .wp-block-column{flex:1;min-width:0}
.rich-content .wp-block-separator{margin:28px 0;border-color:var(--line)}
.extra-photos{padding-top:18px}
.extra-photos .wp-block-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.extra-photos .wp-block-gallery .wp-block-image img{height:240px}
.features-section{background:#e5eadd}
.features-section .section-head{max-width:780px;margin-bottom:26px}
.features-section .section-head p{color:var(--muted);font-size:1.03rem}
.features-panel{background:var(--white);border:1px solid #d7dfd2;padding:26px 34px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px}
.features-panel h3{font-family:var(--serif);font-size:1.7rem;grid-column:auto;margin:20px 0 7px}
.features-panel p{color:var(--muted);margin:0 0 13px}
.features-panel .wp-block-heading{border-bottom:1px solid var(--line);padding-bottom:8px}
.features-panel .wp-block-gallery,.features-panel .wp-block-image,.features-panel .wp-block-columns,.features-panel ul,.features-panel ol{grid-column:1/-1}
/* Block content is sequential; use one column for safe heading + description grouping. */
.features-panel{display:block;columns:2;column-gap:54px}
.features-panel h3{break-after:avoid;break-inside:avoid;margin-top:0}
.features-panel p{break-inside:avoid;margin-bottom:24px}
.features-panel .wp-block-gallery,.features-panel .wp-block-image,.features-panel .wp-block-columns{break-inside:avoid}
.concept-images{border-top:1px solid var(--line);padding-top:16px;margin-top:8px}
.concept-kicker{text-transform:uppercase;letter-spacing:.09em;font-size:.69rem;color:var(--accent);font-weight:700;margin-bottom:9px}
.concept-images .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.concept-images .wp-block-gallery .wp-block-image img{height:125px}
.concept-images .wp-block-image img{max-height:190px;object-fit:cover}
.concept-images p{font-size:.85rem}
.edit-section{display:inline-flex;margin-top:12px;padding:5px 10px;border:1px dashed var(--accent);border-radius:3px;color:var(--accent);font-size:.78rem;text-decoration:none;font-weight:700}
@media(max-width:1100px){.nav-links{gap:15px}.nav-links a{font-size:.78rem}}
@media(max-width:900px){.nav-links a:not(.btn){display:none}.story-inner{grid-template-columns:1fr;gap:25px}}
@media(max-width:650px){.story-copy{font-size:1rem}.features-panel{columns:1;padding:24px}.extra-photos .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.extra-photos .wp-block-gallery .wp-block-image img{height:145px}.concept-images .wp-block-gallery .wp-block-image img{height:145px}.rich-content .wp-block-columns{display:block}}

/* Room galleries: each appears once photos have been added in the dashboard. */
.photo-collection{margin-top:35px;padding-top:27px;border-top:1px solid var(--line)}
.photo-collection-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}
.photo-collection-heading span{color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.69rem;font-weight:750;order:1}
.photo-collection-heading h3{font-size:clamp(1.65rem,2.7vw,2.25rem);order:0}
.photo-collection-images .wp-block-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.photo-collection-images .wp-block-gallery .wp-block-image img{height:235px}
@media(max-width:650px){.photo-collection{margin-top:25px;padding-top:20px}.photo-collection-heading{align-items:start;flex-direction:column}.photo-collection-heading span{order:0}.photo-collection-heading h3{order:1}.photo-collection-images .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-collection-images .wp-block-gallery .wp-block-image img{height:140px}}

.feature-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feature-detail{background:var(--white);border:1px solid #d7dfd2;padding:28px 30px;min-width:0}
.feature-detail h3{font-size:1.65rem;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.feature-detail .rich-content p{color:var(--muted);font-size:.96rem}
.feature-detail .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.feature-detail-grid{grid-template-columns:1fr}.feature-detail{padding:23px}}

/* Editor-only guidance (not rendered for logged-out visitors) */
.ctq-owner-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px max(22px,calc((100% - 1200px)/2));background:#f3ebdc;border-bottom:1px solid #d9c8ad;color:#334638;font-size:14px}
.ctq-owner-toolbar a{font-weight:700;color:#355b47;text-decoration:underline}
.ctq-empty-prompt{padding:16px;border:1px dashed #a6a28f;border-radius:8px;color:#655c4d;background:#fbf7f0;font-size:14px}

/* Galleries created by the easy Casa Ciruela dashboard editor. */
.ctq-gallery-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0 0}
.ctq-gallery-photos .ctq-gallery-image{min-width:0;margin:0}
.ctq-gallery-photos .ctq-gallery-image a{display:block;overflow:hidden;aspect-ratio:4/3;background:#e2e7e0}
.ctq-gallery-photos .ctq-gallery-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.ctq-gallery-photos .ctq-gallery-image a:hover img{transform:scale(1.03)}
.ctq-gallery-photos .ctq-gallery-image figcaption{font-size:.78rem;color:var(--muted);padding:5px 0}
.feature-detail .ctq-gallery-photos,.concept-images .ctq-gallery-photos{grid-template-columns:repeat(2,minmax(0,1fr))}
.story-copy .ctq-gallery-photos{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.ctq-gallery-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ctq-gallery-photos .ctq-gallery-image figcaption{font-size:.7rem}}
