/*
Theme Name: Noah
Theme URI: https://apartmentsnoah.com/
Author: Apartments Noah
Description: Custom theme for Apartments Noah, Stanići (Omiš). Works with Booking Calendar, SiteOrigin Page Builder, Accordions, Final Tiles Gallery and Contact Form 7. Prices and contact data are edited under Noah → Cjenik i podaci.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: noah
*/

/* Look: Adriatic blue ground, green shutters and yellow broom from the house photos.
   Type: Instrument Serif (display), Manrope (body), IBM Plex Mono (specs, labels). */
:root {
	--sea: #0B3954;
	--sea-deep: #10202A;
	--shutter: #2E6A4F;
	--broom: #E8B21E;
	--mist: #F3F6F6;
	--mint: #E9F0EE;
	--white: #FFFFFF;
	--ink: #14232D;
	--ink-2: #33454F;
	--ink-3: #4A5D68;
	--line: #DCE4E6;
	--line-2: #C9D5D9;
	--booked: #F2D9D3;
	--free: #E7F0EC;
	--f-display: "Instrument Serif", Georgia, "Times New Roman", serif;
	--f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--wrap: 1240px;
	--gut: max(20px, env(safe-area-inset-left, 0px));
	--radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--shutter); }
:focus-visible { outline: 3px solid var(--broom); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--sea); text-wrap: balance; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(48px, 7.2vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.6vw, 58px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { margin: 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shutter); }
.lead { font-size: 20px; max-width: 600px; }
.muted { color: var(--ink-3); }
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--broom); color: var(--ink); }
.btn-primary:hover { background: #F2C343; color: var(--ink); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-dark { background: var(--sea); color: var(--white); }
.btn-dark:hover { background: var(--shutter); color: var(--white); }
.link-arrow { font-weight: 700; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 44px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.bg-white { background: var(--white); }
.bg-mint { background: var(--mint); }
.bg-sea { background: var(--sea); color: var(--white); }
.bg-sea h2, .bg-sea h3 { color: var(--white); }
.bg-sea .eyebrow { color: var(--broom); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--sea); color: var(--white); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand .name { font-family: var(--f-display); font-size: 40px; line-height: 1; letter-spacing: 0.02em; }
.brand .tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.brand img { max-height: 56px; width: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7); background: transparent; color: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.main-nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--broom); }
.main-nav li.is-cta > a { background: var(--broom); color: var(--ink); padding: 12px 22px; border-radius: 999px; }
.main-nav li.is-cta > a:hover { background: #F2C343; color: var(--ink); }
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; background: var(--sea-deep); border-radius: 8px; padding: 8px; }
	.main-nav a { display: block; padding: 14px 16px; font-size: 17px; }
	.main-nav li.is-cta > a { margin-top: 6px; text-align: center; }
	.brand .name { font-size: 34px; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--sea); overflow: hidden; }
.hero > img, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,32,48,0.62) 0%, rgba(8,32,48,0.10) 38%, rgba(8,32,48,0.72) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(170px, 22vw, 290px); padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .eyebrow { color: var(--white); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.page-hero { background: var(--sea); color: var(--white); }
.page-hero .wrap { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { color: var(--white); font-size: clamp(42px, 5.4vw, 68px); }
.page-hero p { margin: 0; max-width: 640px; opacity: 0.92; }

/* Facts */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-block: 28px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact b { font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--sea); }
.fact span { font-size: 14px; color: var(--ink-3); }

/* Intro */
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "—"; color: var(--shutter); font-weight: 700; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }

/* Apartments */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.apt { display: flex; flex-direction: column; gap: 16px; }
.apt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.apt .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.apt .from { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.apt .from strong { color: var(--ink); }
.apt p { margin: 0; font-size: 16px; color: var(--ink-2); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-family: var(--f-mono); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.apt .links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.apt .links a + a { color: var(--shutter); }
.amenities { margin: 28px 0 0; font-size: 15px; color: var(--ink-3); }

/* Banner */
.banner { position: relative; }
.banner img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; }
.banner .quote { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(8,32,48,0.75), rgba(8,32,48,0)); padding-top: 120px; padding-bottom: 48px; }
.banner blockquote { margin: 0 auto; max-width: var(--wrap); font-family: var(--f-display); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: var(--white); padding-inline: 20px; }

/* Experience cards */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.tile:hover { color: var(--ink); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile .body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.tile .meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--shutter); }
.tile p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* Events + culture */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--shutter); padding-top: 3px; }
.timeline .what span { display: block; font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.heritage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 40px; }
.heritage > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.heritage small { font-family: var(--f-mono); font-size: 12px; color: var(--shutter); }
.heritage strong { font-size: 18px; }
.heritage span { font-size: 15px; color: var(--ink-2); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.review { margin: 0; background: var(--white); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: #B8860B; letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 24px; line-height: 1.3; }
.review figcaption { font-size: 14px; color: var(--ink-3); }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.price-table th { text-align: right; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; padding: 12px 8px; color: var(--ink-3); }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 0; }
.price-table td { text-align: right; padding: 14px 8px; border-top: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { padding-right: 0; }
.price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-table tr.is-peak td { font-weight: 700; color: var(--shutter); }
.bg-sea .price-table th { color: #B9CDD8; }
.bg-sea .price-table td { border-color: rgba(255,255,255,0.18); }
.bg-sea .price-table tr.is-peak td { color: var(--broom); }
.table-scroll { overflow-x: auto; min-width: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-2); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--shutter); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--sea-deep); color: #D9E3E7; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-block: 72px 40px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.site-footer .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #8FA6B2; margin-bottom: 4px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--broom); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .bottom { border-top: 1px solid #22394A; padding-block: 20px 32px; font-size: 13px; color: #8FA6B2; }
.site-footer .bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Mobile booking bar */
.book-bar { display: none; }
@media (max-width: 720px) {
	.book-bar { display: flex; position: sticky; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gut) max(12px, env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); font-size: 14px; }
	.book-bar .btn { padding: 12px 20px; }
	body.page-book-now .book-bar { display: none; }
}

/* Generic content (pages, posts, SiteOrigin layouts) */
.content-area { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.entry-content { font-size: 17px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 1.4em 0 0.5em; font-size: clamp(30px, 3.4vw, 44px); }
.entry-content h3 { margin: 1.3em 0 0.4em; font-size: clamp(24px, 2.4vw, 30px); }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border-top: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose { max-width: 760px; }
.single .post-meta { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--broom); }
.post-cover { width: 100%; max-height: 560px; object-fit: cover; }
.more-posts { margin-top: 64px; }

/* SiteOrigin + plugins inside the new design */
.panel-layout .so-panel { margin-bottom: 24px; }
.siteorigin-panels-stretch { padding-left: 0 !important; padding-right: 0 !important; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #B7C6CC; border-radius: var(--radius); background: var(--white); }
.wpcf7 input[type=submit] { font: inherit; font-weight: 700; background: var(--broom); color: var(--ink); border: 0; padding: 15px 28px; border-radius: 999px; cursor: pointer; }
.accordions .accordion-header, .accordions .accordions-head { font-family: var(--f-body) !important; font-weight: 700 !important; }

/* Book now page */
.book-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.book-main { flex: 999 1 640px; min-width: 0; }
.book-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.book-aside .card { border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.book-aside h2 { font-size: 30px; }
.book-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.terms { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.terms dt { color: var(--ink-3); }
.terms dd { margin: 0; }
.apt-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 28px; }
.apt-picker button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; font: inherit; padding: 14px 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; line-height: 1.3; }
.apt-picker button span { font-size: 13px; color: var(--ink-3); }
.apt-picker button[aria-pressed="true"] { border: 2px solid var(--sea); padding: 13px 15px; box-shadow: inset 0 0 0 1px var(--sea); }
.page-book-now select.active_booking_form, .page-book-now select.active_booking_form + br, .page-book-now select.active_booking_form + br + br, .page-book-now .custom-html-widget > label[for="calendar_type"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-book-now .book-main .panel-grid-cell { width: 100% !important; }
/* Booking Calendar (wpbc) skin */
.bk_calendar_frame { max-width: 100% !important; }
.datepick-inline { background: var(--white) !important; border: 0 !important; border-radius: 8px; padding: 16px !important; width: auto !important; font-family: var(--f-body) !important; }
.datepick-inline .datepick-header, .datepick-inline .datepick-month-header { background: transparent !important; color: var(--ink) !important; font-family: var(--f-body) !important; font-weight: 700 !important; }
.datepick-inline .datepick-nav a, .datepick-inline .datepick-ctrl a { color: var(--sea) !important; }
.datepick-inline td { border: 2px solid var(--white) !important; }
.datepick-inline td.date_available, .datepick-inline td.date_available a, .datepick-inline td.datepick-days-cell.date_available { background: var(--free) !important; color: var(--ink) !important; }
.datepick-inline td.date_approved, .datepick-inline td.date2approve, .datepick-inline td.date_user_unavailable { background: var(--booked) !important; color: #8A3B2A !important; }
.datepick-inline td.datepick-current-day, .datepick-inline td.datepick-current-day a, .datepick-inline td.check_in_time.datepick-current-day { background: var(--sea) !important; color: var(--white) !important; }
.booking_form .control-group, .booking_form .form-group { margin-bottom: 14px; }
.booking_form input[type=text], .booking_form input[type=email], .booking_form textarea, .booking_form select { font: inherit !important; padding: 12px 14px !important; border: 1px solid #B7C6CC !important; border-radius: var(--radius) !important; height: auto !important; box-shadow: none !important; max-width: 100%; }
.booking_form .btn, .booking_form input[type=button], .booking_form button { font: inherit !important; font-weight: 700 !important; background: var(--broom) !important; color: var(--ink) !important; border: 0 !important; padding: 15px 28px !important; border-radius: 999px !important; text-shadow: none !important; background-image: none !important; }

/* 404 + misc */
.notfound { text-align: left; }
.pagination { display: flex; gap: 12px; margin-top: 40px; }

/* Anchor prices (NN 101/2026) and price notes */
.price-table small.anchor { display: block; font-size: 11px; font-weight: 400; line-height: 1.3; color: var(--ink-3); white-space: nowrap; }
.bg-sea .price-table small.anchor { color: #B9CDD8; }
.price-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.bg-sea .price-note { color: #D2DEE4; }
.bg-sea .price-note a { color: var(--white); }
.extras-title { font-family: var(--f-body); font-weight: 700; font-size: 18px; margin: 28px 0 8px; color: inherit; }
.price-table.extras td { text-align: right; }
.price-table.extras td:first-child { text-align: left; }
.price-table .unit { color: var(--ink-3); font-size: 14px; }

/* Language switcher */
.lang-switch { display: flex; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: inline-block; padding: 6px 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); text-decoration: none; border-radius: 4px; min-width: 32px; text-align: center; }
.lang-switch a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.lang-switch .is-current a { color: var(--ink); background: var(--white); }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 860px) { .header-right { width: 100%; order: 3; justify-content: space-between; } .bar .nav-toggle { order: 2; } }
.bg-sea .terms dt { color: #B9CDD8; }
.bk-panel[hidden] { display: none !important; }
.timeline-box { overflow-x: auto; background: var(--white); border-radius: 8px; padding: 16px; }
.apt-gallery + .apt-gallery { padding-top: 0; }
.post-cover, main > img.wp-post-image { width: 100%; max-height: 560px; object-fit: cover; }
.price-table.compact { font-size: 14px; }
.price-table.compact th { padding: 8px 4px; font-size: 11px; letter-spacing: 0.06em; }
.price-table.compact td { padding: 9px 4px; }
.price-table.compact th:first-child, .price-table.compact td:first-child { padding-left: 0; }
.price-table.compact small.anchor { font-size: 11px; }
.book-aside .price-note { font-size: 13px; }
@media (max-width: 1100px) { .book-aside { position: static; } }
.hero .eyebrow { overflow-wrap: anywhere; }
