/*============================================================================
   28-info-pages.css — informační stránky převedené ze starého webu
   (Kontakt, O nás, Galerie, O Grebaštici, Nevidím vyhovující termín,
   Obchodní a storno podmínky) + sdílená mapa [mapa_iframe].
   Stránky staví mu-plugin najadranu-stranky.php (njw) jako Divi 5 sekce
   s třídami níže; hero = .page-hero, text = .nj-text-section (21-text-pages.css).
============================================================================*/

/* ---------- MAPA [mapa_iframe id=""] (includes/shortcodes-maps.php) ----------
   Používá stránka rezidence (popis termu) a Kontakt. */
.nj-map { position: relative; height: 320px; border-radius: var(--r-card); overflow: hidden; background: var(--sand-2); box-shadow: var(--shadow); }
.nj-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .nj-map { height: 260px; } }
/* Mapa v popisu apartmánu / nemovitosti ([mapa_iframe q=""], nj_room_description_html). */
.content-block.desc .nj-map { margin: 1.4rem 0; }

/* Parametry nabídky prodeje (převod řádků „Dispozice / Vybavení“ ze stavebnice hotelmasteru):
   <h3>Dispozice</h3><ul class="nj-specs"><li>Počet budov: <strong>4</strong></li>…</ul> */
.content-block.desc ul.nj-specs { list-style: none; margin: .4rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.content-block.desc ul.nj-specs li { margin: 0; padding: .55rem 0; border-bottom: 1px dashed var(--line-2); line-height: 1.45; }
.content-block.desc ul.nj-specs strong { color: var(--navy); }
.content-block.desc hr.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.content-block.desc blockquote { border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.2rem; margin: 1.5rem 0; color: var(--muted); font-style: italic; }
@media (max-width: 640px) { .content-block.desc ul.nj-specs { grid-template-columns: 1fr; } }

/* ==========================================================================
   SPOLEČNÝ ZÁKLAD SEKCÍ INFORMAČNÍCH STRÁNEK
   Na Divi Section dej třídu sekce + tón (s-sand-1 / s-sand-2 / s-sand-3 / s-white).
   Jen .et_pb_section a .et_pb_row; rytmus uvnitř sloupců řeší okraje obsahu.
   ========================================================================== */
:is(.nj-contact-section, .nj-map-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section),
:is(.nj-contact-section, .nj-map-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section).et_pb_section {
	padding: 72px 0 !important;
	position: relative;
	z-index: 1;
	gap: 0 !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
}
:is(.nj-contact-section, .nj-map-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section) > .et_pb_row {
	max-width: var(--container) !important;
	width: 92% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}
/* Divi 5 dává mezi moduly ve sloupci flex-gap 30px → vynulovat, rozestupy řeší okraje obsahu (jako .ng-section / .seo-section) */
:is(.nj-contact-section, .nj-map-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section) .et_pb_column { gap: 0 !important; row-gap: 0 !important; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) .section-head .et_pb_module { margin-bottom: 12px !important; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) .section-head .et_pb_module:last-child { margin-bottom: 0 !important; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) > .et_pb_row + .et_pb_row { margin-top: 36px !important; }
/* hlavička sekce na střed v užší míře (obecné pravidlo řádku výš jí jinak dá plnou šířku) */
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) > .et_pb_row.section-head { max-width: 760px !important; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) .section-head .et_pb_text { text-align: center; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) .section-head h2 { margin: 0; }
:is(.nj-about-section, .nj-values-section, .nj-gallery-section) .section-head p { color: var(--muted); margin: 0; }

/* ==========================================================================
   KONTAKT — Section `nj-contact-section s-sand-1`, řádek 2/5 + 3/5:
   vlevo Text(.nj-contact-intro) + Code(.nj-contact-cards), vpravo Text(.nj-contact-form)
   s formulářem CF7. Pod ní `nj-map-section s-sand-1` ([mapa_iframe]) a
   `nj-text-section nj-company-section` (provozovatel).
   ========================================================================== */
.nj-contact-section > .et_pb_row { align-items: flex-start; }
.nj-contact-intro h2 { margin: 0 0 .6rem; }
.nj-contact-intro p { color: var(--muted); margin: 0; line-height: 1.65; }

.nj-contact-cards { display: grid; gap: 12px; margin-top: 1.6rem; }
.nj-contact-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	padding: 14px 18px;
}
.nj-contact-card .feat-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; background: var(--sand-2); box-shadow: none; }
.nj-contact-card .feat-icon svg { width: 22px; height: 22px; }
.nj-contact-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nj-contact-label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.nj-contact-card a,
.nj-contact-card span:not(.nj-contact-label):not(.feat-icon):not(.nj-contact-links) { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.nj-contact-card a:hover { color: var(--accent-deep); }
.nj-contact-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* karta s formulářem */
.nj-contact-form,
.nj-contact-form.et_pb_text {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	padding: 32px 36px !important;
}
.nj-contact-form h2 { margin: 0 0 .4rem; }
.nj-contact-form .et_pb_text_inner > p:first-of-type { color: var(--muted); margin: 0 0 1.4rem; }

/* mapa pod kontaktem (navazuje na kontakt stejným tónem, proto bez horní mezery) */
.nj-map-section,
.nj-map-section.et_pb_section { padding-top: 0 !important; }
.nj-map-section .nj-map { height: 420px; }

.nj-company-section,
.nj-company-section.et_pb_section { padding-top: 0 !important; }

/* ==========================================================================
   FORMULÁŘ CF7 — Kontakt (.nj-contact-form) a Nevidím vyhovující termín
   (.nj-form-section). Formuláře mají popisek a pole v jednom <p> oddělené <br>.
   ========================================================================== */
/* popisek a pole bývají ve dvou odstavcích (<br> ve formuláři se rozdělí), mezera až za polem */
:is(.nj-contact-form, .nj-form-section) .wpcf7-form p { margin: 0 0 .35rem; padding: 0 !important; font-size: .85rem; font-weight: 600; color: var(--navy); white-space: normal; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form p:has(.wpcf7-form-control-wrap, .wpcf7-submit) { margin-bottom: 1.1rem; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form br { display: none; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form p > .wpcf7-form-control-wrap:first-child { margin-top: 0; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) { width: 100%; box-sizing: border-box; font-weight: 400; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-form textarea { min-height: 150px; resize: vertical; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-submit {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--r-btn);
	padding: .85rem 1.6rem;
	font-family: var(--font-sans);
	font-size: var(--fs-button);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(251, 173, 36, .28);
	transition: background .2s;
}
:is(.nj-contact-form, .nj-form-section) .wpcf7-submit:hover { background: var(--accent-2); }
:is(.nj-contact-form, .nj-form-section) .wpcf7-spinner { vertical-align: middle; }
:is(.nj-contact-form, .nj-form-section) .wpcf7-not-valid-tip { font-size: .8rem; font-weight: 500; margin-top: .3rem; }
:is(.nj-contact-form, .nj-form-section) .wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: var(--r-btn); font-size: .9rem; font-weight: 500; }

/* ==========================================================================
   O NÁS — `nj-about-section s-white` (section-head + Row.nj-cards se 2 kartami),
   `nj-story-section s-sand-2` (Image.nj-story-img 2/5 + text 3/5),
   `nj-values-section s-sand-1` (section-head + Code .feat-grid.nj-values-grid),
   `nj-cta-section s-sand-3` (Text + 2 Button moduly btn-primary / btn-outline).
   ========================================================================== */
.nj-cards .et_pb_text {
	height: 100%;
	box-sizing: border-box;
	background: var(--sand-1);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 30px 32px;
}
.nj-cards h3 { margin: 0 0 .6rem; font-size: var(--fs-h3); }
.nj-cards p { color: var(--muted); margin: 0; line-height: 1.65; }

.nj-story-section > .et_pb_row { align-items: center; }
.nj-story-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-deep); display: block; }
.nj-story-section .eyebrow { margin-bottom: .5rem; }
.nj-story-section h2 { margin: 0 0 .8rem; }
.nj-story-section p { line-height: 1.75; margin: 0; }

.nj-values-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nj-values-grid .feat { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px 22px; }
.nj-values-grid .feat-icon { background: var(--sand-1); box-shadow: none; }

.nj-cta-section > .et_pb_row { max-width: 760px !important; text-align: center; }
.nj-cta-section .et_pb_column { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 12px !important; }
.nj-cta-section .et_pb_text { flex-basis: 100%; margin-bottom: 12px; text-align: center; }
.nj-cta-section h2 { margin: 0 0 .6rem; }
.nj-cta-section p { margin: 0; color: var(--ink); }

/* ==========================================================================
   GALERIE — `nj-gallery-section s-sand-1 / s-white`: section-head (H2 + popis)
   a [nj_gallery ids="…" limit="0"] (dlaždice .cell, lightbox gallery-lightbox.js).
   ========================================================================== */
.nj-gallery-section .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nj-gallery-section .gallery-grid .cell {
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	border: 0;
	padding: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: transform .2s;
	width: 100%;
	display: block;
}
.nj-gallery-section .gallery-grid .cell:hover { transform: scale(1.02); }
.nj-gallery-section .gallery-grid .cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   TEXTOVÉ STRÁNKY (O Grebaštici, Obchodní a storno podmínky, Nevidím…):
   karta .nj-text-section (21-text-pages.css) + obrázky a nadpisy z obsahu.
   ========================================================================== */
.nj-text-section img { max-width: 100%; height: auto; border-radius: var(--r-card); display: block; }
.nj-text-section figure { margin: 1.4rem 0; }
.nj-text-section figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.nj-text-section h4 { font-size: var(--fs-h4); }
/* karta s formulářem by se ve sloupci Divi smrskla na šířku polí */
.nj-form-section .et_pb_text { width: 100%; box-sizing: border-box; }
.nj-form-section .wpcf7 { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.nj-values-grid { grid-template-columns: repeat(2, 1fr); }
	.nj-gallery-section .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	:is(.nj-contact-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section),
	:is(.nj-contact-section, .nj-about-section, .nj-story-section, .nj-values-section, .nj-cta-section, .nj-gallery-section).et_pb_section { padding: 52px 0 !important; }
	.nj-map-section,
	.nj-map-section.et_pb_section { padding-bottom: 52px !important; }
	.nj-story-img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
	.nj-values-grid { grid-template-columns: 1fr; }
	.nj-gallery-section .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.nj-contact-form,
	.nj-contact-form.et_pb_text { padding: 24px 20px !important; }
	.nj-cards .et_pb_text { padding: 24px 22px; }
	.nj-map-section .nj-map { height: 300px; }
}
