/* 
Theme Name:		 Citadela-Child
Theme URI:		 http://childtheme-generator.com/
Description:	 Citadela-Child is a child theme of Citadela, created by ChildTheme-Generator.com
Author:			 Hiilite
Author URI:		 http://childtheme-generator.com/
Template:		 citadelawp
Version:		 1.0.0
Text Domain:	 citadela-child
*/


/*
    Add your custom styles here
*/
/* Citadela's Customizer owns decoration and family choices. These are the
   remaining brand tokens, block composition and accessible interaction states. */
:root{--hd-red:#be1e2d;--hd-grey:#6d6e70;--hd-line:#939597;--hd-ink:#242122;--hd-tint:#f8f3f0;--hd-rule:#ded8d4;--hd-ease:cubic-bezier(.23,1,.32,1)}
body{color:var(--hd-ink);font-weight:400}
h1,h2,h3,h4,h5,h6{color:var(--hd-ink)}
a{color:var(--hd-red);text-underline-offset:0.25rem}
button,input,textarea,select{font-family:inherit}
:where(a,button,input,textarea,select,summary):focus-visible{outline:0.1875rem solid var(--hd-red)!important;outline-offset:0.1875rem}
.hd-listing,.hd-listing *{box-sizing:border-box}
.hd-listing{max-width:72.5rem!important;margin:2rem auto 4rem!important;font-size:1rem;line-height:1.6;font-weight:400;color:var(--hd-ink);overflow-wrap:anywhere}
.hd-listing h1{font-size:clamp(2.375rem,calc(1rem + 3.2888888889vw),4rem);line-height:1.18;margin:0.25rem 0 0.75rem}
.hd-listing h2{font-size:2rem;line-height:1.18;letter-spacing:-.02em;margin:0 0 0.875rem}
.hd-listing h3{font-size:1.4375rem;line-height:1.2;margin:0 0 0.5rem}
.hd-listing p{margin:0.5rem 0 0.875rem}
.hd-muted,.hd-listing small,.hd-fact p,.hd-subscore-label{color:var(--hd-grey)}
.hd-listing small{font-size:0.8125rem}
.hd-eyebrow{font-size:0.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hd-grey)}
.hd-header{display:flex;align-items:flex-start;gap:2rem;padding:0.5rem 0 1.875rem}
.hd-avatar{position:relative;flex:none;width:10.5rem;height:10.5rem}
.hd-avatar>img,.hd-avatar>svg{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.hd-verified{position:absolute;right:-0.125rem;bottom:-0.125rem;width:2.375rem;height:2.375rem;border:0.25rem solid white;border-radius:50%;background:var(--hd-red);display:grid;place-items:center}
.hd-verified svg{width:26px;height:26px}
.hd-identity{min-width:0;flex:1}
.hd-summary{display:flex;flex-wrap:wrap;gap:0.75rem 1.75rem;margin:1.125rem 0}
.hd-summary>span{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}
.hd-icon{width:20px;height:20px;flex:none;vertical-align:middle}
.hd-claim{font-size:0.875rem}
.hd-stars{color:var(--hd-red);letter-spacing:0.1875rem;display:inline-block}
.hd-facts-layout{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:3rem!important;margin-top:1.875rem!important}
.hd-facts-layout>.wp-block-column{min-width:0}
.hd-panel{padding:1.625rem;background:var(--hd-tint);border:1px solid var(--hd-rule);border-radius:var(--hd-radius)}
.hd-facts{padding:1.875rem 0;border-top:1px solid var(--hd-rule)}
.hd-fact{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.125rem;align-items:center;border-bottom:1px solid var(--hd-rule);padding:1.125rem 0}
.hd-fact p{margin:0.1875rem 0 0;font-size:0.875rem}
.hd-listing button,.hd-button{border:1px solid var(--hd-rule);color:var(--hd-ink);background:#fff;padding:0.5625rem 1rem;min-height:2.75rem;border-radius:var(--hd-radius);font:inherit;font-weight:400;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;cursor:pointer;transition:background-color 120ms var(--hd-ease),transform 120ms var(--hd-ease)}
.hd-fact button{font-size:0.8125rem;max-width:11.5625rem}@media (hover: hover) and (pointer: fine){
.hd-listing button:hover,.hd-button:hover{background:var(--hd-tint);color:var(--hd-ink)}}
.hd-listing button:active,.hd-button:active{transform:scale(.98)}
.hd-listing button:disabled{cursor:default;color:var(--hd-grey);background:var(--hd-tint)}
.hd-listing button[aria-pressed=true]{background:var(--hd-ink);border-color:var(--hd-ink);color:#fff}
.hd-status:empty{display:none}
.hd-status:not(:empty){border:1px solid var(--hd-rule);padding:0.875rem 1.125rem;background:var(--hd-tint)}
.hd-reviews,.hd-gallery{border:1px solid var(--hd-rule);padding:1.75rem;margin:1.75rem 0;border-radius:var(--hd-radius)}
.hd-review-title{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.hd-review-title h2{margin:0}
.hd-review-title p{flex:none}
.hd-rating-summary{display:grid;grid-template-columns:10rem minmax(0,1fr);gap:1.5rem;background:var(--hd-tint);padding:1.25rem;margin:1.25rem 0;align-items:center}
.hd-score-tile{background:var(--hd-red);color:#fff;text-align:center;padding:1.375rem 0.75rem;border-radius:var(--hd-radius)}
.hd-score-tile>div{font:2.5rem/1.2 'Source Serif 4',serif}
.hd-score-tile .hd-stars{color:#fff}
.hd-scores{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
.hd-subscore-label{display:flex;justify-content:space-between;gap:0.5rem;font-size:0.8125rem;margin-top:0.625rem}
.hd-subscore-label strong{font-weight:400;color:var(--hd-ink)}
.hd-bar{background:var(--hd-rule);height:0.4375rem}
.hd-bar span{display:block;height:0.4375rem;background:var(--hd-red)}
.hd-review-toolbar{display:flex;align-items:center;gap:1.5rem;margin:1rem 0}
.hd-review-filters{display:flex;gap:0.375rem;overflow-x:auto;min-width:0;padding:0.25rem;flex:1}
.hd-review-filters button{flex:none;min-height:3rem;padding:0.5rem 0.75rem;white-space:nowrap}
.hd-review-sort{display:flex;align-items:center;gap:0.75rem;white-space:nowrap;flex:none;font-size:0.875rem}
.hd-review-sort select{width:auto;margin:0;height:3rem;max-width:100%;border:1px solid var(--hd-line);border-radius:var(--hd-radius);padding:0.5625rem 0.75rem;background:#fff;color:var(--hd-ink)}
.hd-review{padding:1.5rem 0;border-bottom:1px solid var(--hd-rule)}
.hd-review-name{font-size:1.125rem}
.hd-review>.hd-stars{margin-top:0.75rem}
.hd-review-text{margin-top:0.625rem}
.hd-chip{display:inline-block;background:var(--hd-tint);color:var(--hd-ink);border:1px solid var(--hd-rule);padding:0.25rem 0.5rem;margin:0.1875rem 0.25rem 0.1875rem 0;font-size:0.75rem;border-radius:var(--hd-radius)}
.hd-review-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.25rem}
.hd-reply{margin:1.25rem 0 0 1.75rem;padding:0.875rem 1.125rem;background:var(--hd-tint);border:1px solid var(--hd-rule)}
.hd-empty{padding:1.5rem;background:var(--hd-tint);margin-top:1.25rem}
.hd-location,.hd-owner-contact{gap:3rem!important;border-top:1px solid var(--hd-rule);padding:1.875rem 0;margin:0!important}
.hd-location .ctdl-item-contact-details{margin-top:0}
.hd-review-form{padding:1.75rem;border:1px solid var(--hd-line);background:var(--hd-tint);margin:1.75rem 0}
.hd-listing [hidden]{display:none!important}
.hd-listing .gform_button{background:var(--hd-red)!important;color:white!important;border-color:var(--hd-red)!important}
.hd-listing .citadela-block-articles-wrap{min-width:0}
/* Preserve the theme's gallery and lightbox, with a two/three mosaic. */
.hd-gallery .citadela-block-articles-wrap{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:0.625rem!important;margin:0!important}
.hd-gallery .citadela-directory-gallery-item{grid-column:span 2;width:auto!important;margin:0!important;padding:0!important;min-width:0}
.hd-gallery .citadela-directory-gallery-item:nth-child(-n+2){grid-column:span 3}
.hd-gallery .citadela-directory-gallery-item:nth-child(n+6){display:none}
.hd-gallery .item-content,.hd-gallery .item-thumbnail{height:100%;margin:0!important}
.hd-gallery .item-thumbnail a{display:block;position:relative;overflow:hidden;border-radius:var(--hd-radius);aspect-ratio:1.5}
.hd-gallery .citadela-directory-gallery-item:nth-child(-n+2) a{aspect-ratio:1.65}
.hd-gallery img.item-image{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover}
.hd-gallery-more{position:absolute;inset:0;background:#242122b8;color:#fff;display:grid;place-items:center;font-weight:700;padding:0.625rem}
@media(max-width:43.75em){
.hd-listing{margin:1.5rem auto 2.5rem!important}
.hd-header{flex-direction:column;gap:1.25rem;padding-bottom:1.25rem}
.hd-avatar{width:7.5rem;height:7.5rem}
.hd-listing h1{font-size:2.5rem}.hd-listing h2{font-size:1.75rem}
.hd-facts-layout{grid-template-columns:1fr;gap:1.75rem!important}
.hd-fact{grid-template-columns:1fr;gap:0.5rem}.hd-fact button{justify-self:start;max-width:none}
.hd-panel,.hd-review-form{padding:1.25rem}
.hd-reviews,.hd-gallery{padding:1rem}
.hd-review-title{align-items:start;flex-direction:column;gap:0.25rem}.hd-review-title p{margin:0}
.hd-rating-summary{grid-template-columns:1fr;padding:1rem;gap:1.25rem}.hd-score-tile{justify-self:start;min-width:8.75rem}
.hd-scores{grid-template-columns:1fr 1fr;gap:1.25rem 1rem}
.hd-review-toolbar{flex-direction:column;align-items:stretch;gap:0.75rem}.hd-review-filters{width:100%}
.hd-review-sort{width:100%}.hd-review-sort select{flex:1;min-width:0}
.hd-review-footer{align-items:start;flex-direction:column;gap:0.5rem}.hd-review-footer button{align-self:flex-end}
.hd-reply{margin-left:0.75rem}
.hd-gallery .citadela-block-articles-wrap{gap:0.375rem!important}
.hd-gallery .item-thumbnail a{aspect-ratio:1}.hd-gallery .citadela-directory-gallery-item:nth-child(-n+2) a{aspect-ratio:1.2}
.hd-gallery-more{font-size:0.75rem;align-items:start;padding-top:0.875rem}
}
@media(prefers-reduced-motion:reduce){.hd-listing *,.hd-listing *::before,.hd-listing *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}.hd-listing button:active,.hd-button:active{transform:none}}
.hd-listing button:disabled[aria-pressed=true]{color:var(--hd-grey);background:var(--hd-tint);border-color:var(--hd-rule)}
/* Citadela's flex thumbnail cap must yield to the mosaic's grid tracks. */
.hd-gallery .citadela-directory-gallery-item{max-width:none!important}
.hd-gallery .item-content,.hd-gallery .item-thumbnail,.hd-gallery .item-thumbnail a{width:100%}

/* Follow-up: native blocks have no GPS or hours palette settings. */
.hd-header-actions{display:flex;flex-wrap:wrap;gap:0.75rem}
.hd-header-actions .hd-call{background:var(--hd-red);border-color:var(--hd-red);color:#fff}@media (hover: hover) and (pointer: fine){
.hd-header-actions .hd-call:hover{background:var(--hd-red-hover);color:#fff}}
.hd-location .ctdl-item-contact-details .cd-gps{display:none}
.hd-listing .ctdl-item-opening-hours .oh-day .oh-label,
.hd-listing .ctdl-item-opening-hours .oh-day .oh-data{color:var(--hd-ink);font-weight:400}
.hd-listing .ctdl-item-opening-hours .oh-day.hd-today .oh-label,
.hd-listing .ctdl-item-opening-hours .oh-day.hd-today .oh-data{font-weight:700}
.hd-listing .ctdl-item-opening-hours .oh-day.day-closed .oh-data,
.hd-listing .ctdl-item-opening-hours .oh-day.hd-closed .oh-data{color:var(--hd-grey)}
/* Keep the editor's claim panel, only when its native block renders content. */
.hd-owner-contact #claim-listing:not(:has(.ctdl-item-claim-listing)),
.hd-owner-contact #contact-form-section:not(:has(.ctdl-item-contact-form)),
.hd-owner-contact>.wp-block-column:not(:has(.ctdl-item-claim-listing,.ctdl-item-contact-form)),
.hd-owner-contact:not(:has(.ctdl-item-claim-listing,.ctdl-item-contact-form)){display:none}
@media(max-width:43.75em){
.hd-identity{width:100%}
.hd-header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.hd-header-actions .hd-call{grid-column:1/-1}
}

/* Shared display and control rules for the approved design. */
:root{--hd-red-hover:#a01926;--hd-radius:.25rem}
body h1,body .hd-directory h1.hd-find-sentence{letter-spacing:-.03em!important;line-height:1.1!important}
body h2{letter-spacing:-.02em}
body a,body button,body input[type=submit],body .button,body .wp-block-button__link{transition:color 150ms ease-out,background-color 150ms ease-out,border-color 150ms ease-out,opacity 150ms ease-out!important}
body :is(button,.button,.readmore-button,.wp-block-button__link,.hd-button,.gform_button){font-weight:600}
body .hd-plan-step .citadela-block-price-table .price-table-header .title-part .subtitle-text{opacity:1;color:var(--hd-grey)}
body .hd-plan-step .readmore-button,body .woocommerce .button,body .ctdl-directory-search-form .submit-button{border-radius:var(--hd-radius)!important}
.hd-city-sentence select,.hd-find-sentence select{field-sizing:content;min-width:6ch}
.hd-subscore-label{overflow-wrap:break-word}
.hd-scores>p{grid-column:1/-1}
.hd-review-filters{scroll-snap-type:x proximity;scroll-padding-inline:.25rem}
.hd-review-filters button{scroll-snap-align:start}
.hd-review-filters.has-more{mask-image:linear-gradient(to right,#000 85%,transparent)}
.hd-ask-short{display:none}
.hd-claim a{display:inline-flex;align-items:center;min-height:2.75rem;padding-block:.75rem}
body .hd-rankings{max-width:72.5rem;margin:1.25rem auto 3.5rem;padding:0}
@media(max-width:43.75em){
 .hd-scores{grid-template-columns:1fr}
 .hd-fact{grid-template-columns:minmax(0,1fr) auto;gap:.75rem}
 .hd-fact button{padding:.5rem 0;border:0;background:transparent;color:var(--hd-red);text-decoration:underline;font-size:.8125rem}
 .hd-ask-long{display:none}.hd-ask-short{display:inline}
 body .gform_wrapper .gfield :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),body .gform_wrapper .ginput_container,body .gform_wrapper .iti{width:100%;max-width:100%;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){body a,body button,body input[type=submit],body .button,body .wp-block-button__link{transition:none!important}}

/* Customizer has no body/heading size control. Its em-based headings inherit
   this browser preference; preserve the native controls' default metrics. */
html{font-size:100%}
body{font-size:1rem}
.ctdl-item-get-directions.small-button-style .button-wrapper>a{font-size:.875rem}
.citadela-block-price-table .price-table-body .button-part .readmore-button{font-size:1.125rem}
.ctdl-directory-search-form .input-container.sf-button button,.ctdl-posts-search-form .input-container.sf-button button{font-size:1.0625rem}
body .gform_wrapper.gravity-theme .gfield_required{font-size:.813rem}
body .gform_wrapper.gravity-theme .description,body .gform_wrapper.gravity-theme .gfield_description,body .gform_wrapper.gravity-theme .gsection_description,body .gform_wrapper.gravity-theme .instruction,
body .gform_wrapper.gravity-theme .gfield_checkbox label,body .gform_wrapper.gravity-theme .gfield_radio label{font-size:.9375rem}

body .gform_wrapper.gravity-theme .gfield_label{font-size:1rem}
.hd-listing .gform_wrapper.gravity-theme :is(input:not([type=submit]):not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea){font-size:.9375rem}
