/*
Theme Name: Albamare
Template: hello-elementor
Description: Albamare Reisid — child theme of Hello Elementor (2026 redesign).
Version: 1.0.0
Text Domain: albamare
*/

/* ---------- Tokens (mirror of the Elementor global variables) ---------- */
:root {
	--am-navy: #0E2A4F;
	--am-navy-deep: #08182F;
	--am-coral: #EE3A43;
	--am-coral-dark: #C9252E;
	--am-sand: #F7F3EE;
	--am-sand-deep: #EDE5DA;
	--am-ink: #14223A;
	--am-muted: #5D6879;
	--am-line: #E4DDD2;
	--am-gold: #E9A23B;
	--am-font-display: "Playfair Display", Georgia, serif;
	--am-font-body: "Manrope", system-ui, sans-serif;
	--am-radius: 18px;
	--am-radius-sm: 10px;
	--am-shadow: 0 18px 50px rgba(14, 42, 79, 0.08);
}

/* ---------- Base ---------- */
body {
	font-family: var(--am-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--am-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: var(--am-coral); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--am-coral-dark); }
::selection { background: var(--am-coral); color: #fff; }
img { height: auto; }

/* Sticky header (Theme Builder header location). */
.elementor-location-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 0; } }

/* Shortcode widgets placed in slots take the full width. */
.elementor-widget-shortcode { width: 100%; }

/* Footer links */
.elementor-location-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.elementor-location-footer a:hover { color: #fff; }

/* ---------- Language switcher ---------- */
.am-lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.08); }
.am-lang a {
	font: 700 .72rem/1 var(--am-font-body); letter-spacing: .08em;
	color: rgba(255,255,255,.75); text-decoration: none; padding: .38rem .6rem; border-radius: 999px;
}
.am-lang a:hover { color: #fff; }
.am-lang a.is-current { background: var(--am-coral); color: #fff; }

/* ---------- Newsletter (Mailjet) inside the coral footer band ---------- */
.elementor-location-footer .mailjet_widget_form_builder_container,
.elementor-location-footer .mj-w-res-iframe { max-width: 100%; }
.elementor-location-footer form input[type="email"],
.elementor-location-footer form input[type="text"] {
	width: 100%; border: 0; border-radius: 999px; padding: 1rem 1.4rem;
	font: 600 1rem var(--am-font-body); color: var(--am-ink); background: #fff;
}
.elementor-location-footer form input[type="submit"],
.elementor-location-footer form button {
	border: 0; border-radius: 999px; padding: 1rem 1.8rem; cursor: pointer;
	font: 800 .95rem var(--am-font-body); color: #fff; background: var(--am-navy-deep);
}
.elementor-location-footer form input[type="submit"]:hover,
.elementor-location-footer form button:hover { background: var(--am-navy); }

/* ---------- Newsletter: CF7 form "Subscribe" (2492, Mailjet opt-in) in the footer band ---------- */
.am-subscribe { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; }
.am-subscribe p { margin: 0; }
.am-subscribe .form-group { flex: 1 1 11rem; margin: 0; }
.am-subscribe .form-group:has(.wpcf7-checkbox) { flex-basis: 100%; order: 3; }
.am-subscribe label { display: block; font: 700 .75rem/1.2 var(--am-font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.am-subscribe input[type="text"], .am-subscribe input[type="email"] {
	display: block; width: 100%; margin-top: .45rem; border: 0; border-radius: 999px; padding: .95rem 1.25rem;
	font: 600 1rem var(--am-font-body); color: var(--am-ink); background: #fff; box-shadow: 0 10px 30px rgba(8,24,47,.15);
}
.am-subscribe input:focus { outline: 3px solid rgba(8,24,47,.35); outline-offset: 2px; }
.am-subscribe .wpcf7-checkbox label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; display: inline-flex; gap: .5rem; align-items: center; }
.am-subscribe .wpcf7-list-item { margin: 0; }
.am-subscribe input[type="submit"] {
	order: 2; border: 0; border-radius: 999px; padding: .98rem 1.9rem; cursor: pointer;
	font: 800 .95rem var(--am-font-body); color: #fff; background: var(--am-navy-deep); transition: background .2s, transform .2s;
}
.am-subscribe input[type="submit"]:hover { background: var(--am-navy); transform: translateY(-1px); }
.am-subscribe .wpcf7-spinner { position: absolute; }
.am-subscribe .wpcf7-response-output { flex-basis: 100%; order: 4; margin: .25rem 0 0 !important; border: 0 !important; padding: 0 !important; color: #fff; font-weight: 600; }
.am-subscribe .wpcf7-not-valid-tip { color: #fff; font-size: .8rem; margin-top: .3rem; }
.am-subscribe .form-group { width: auto !important; }
.am-subscribe label br { display: none; }
.am-subscribe > p:has(input[type="submit"]) { order: 2; }
.am-subscribe .wpcf7-checkbox label, .am-subscribe .wpcf7-list-item-label { color: #fff; }

/* ---------- Long-form content (Info page template, posts) ---------- */
.elementor-widget-theme-post-content { font-size: 1.0625rem; line-height: 1.8; color: var(--am-ink); }
.elementor-widget-theme-post-content > .elementor-widget-container > *:first-child { margin-top: 0; }
.elementor-widget-theme-post-content h2 { font: 500 clamp(1.6rem, 2.6vw, 2.1rem)/1.2 var(--am-font-display); margin: 2.75rem 0 1rem; color: var(--am-ink); letter-spacing: -.01em; }
.elementor-widget-theme-post-content h3 { font: 800 1.2rem/1.35 var(--am-font-body); margin: 2rem 0 .75rem; }
.elementor-widget-theme-post-content p { margin: 0 0 1.15rem; }
.elementor-widget-theme-post-content p > strong:only-child { display: block; font-size: 1.1rem; margin-top: 1.75rem; color: var(--am-navy); }
.elementor-widget-theme-post-content ul, .elementor-widget-theme-post-content ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.elementor-widget-theme-post-content li { margin: .45rem 0; padding-left: .25rem; }
.elementor-widget-theme-post-content li::marker { color: var(--am-coral); }
.elementor-widget-theme-post-content img { border-radius: var(--am-radius); }
.elementor-widget-theme-post-content img.aligncenter { display: block; margin: 0 auto 2rem; }
.elementor-widget-theme-post-content a { font-weight: 600; }
.am-table { margin: 1.5rem 0 2.5rem; overflow-x: auto; }
.am-table table { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; border-radius: var(--am-radius-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--am-line); }
.am-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--am-line); vertical-align: top; }
.am-table tr:nth-child(even) td { background: var(--am-sand); }
.am-table tr:last-child td { border-bottom: 0; }
.am-table td:empty { display: none; }
.am-table table, .am-table td, .am-table th { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.am-table td:first-child { font-weight: 700; color: var(--am-navy); }
/* Reisikalender: search button per destination (tools/calendar_search_buttons.php) */
.am-table table:has(.am-cal-search) td { vertical-align: middle; }
.am-table table:has(.am-cal-search) td:empty { display: table-cell; }
.am-table td:has(.am-cal-search), .am-table table:has(.am-cal-search) td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.am-cal-search {
	display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
	background: var(--am-navy, #0E2A4F); color: #fff !important; font: 800 .82rem/1.2 var(--am-font-body);
	text-decoration: none !important; transition: background .2s;
}
.am-cal-search::after { content: "\2192"; transition: transform .2s; }
.am-cal-search:hover, .am-cal-search:focus-visible { background: var(--am-coral, #EE3A43); }
.am-cal-search:hover::after { transform: translateX(3px); }
@media (max-width: 600px) {
	.am-table table:has(.am-cal-search) td { padding: .7rem .75rem; }
	.am-cal-search { padding: .5rem .7rem; font-size: 0; gap: 0; }
	.am-cal-search::after { font-size: .95rem; }
}

/* ---------- Contact form (CF7 309, html_class am-form) ---------- */
.am-form .form-group { margin: 0 0 1rem; }
.am-form label { display: block; margin-bottom: .4rem; font: 700 .8rem/1.2 var(--am-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--am-muted); }
.am-form input[type="text"], .am-form input[type="email"], .am-form input[type="tel"], .am-form textarea {
	width: 100%; border: 1px solid var(--am-line); border-radius: 12px; padding: .9rem 1.1rem;
	font: 500 1rem var(--am-font-body); color: var(--am-ink); background: var(--am-sand); transition: border-color .2s, background .2s;
}
.am-form textarea { min-height: 9rem; resize: vertical; }
.am-form input:focus, .am-form textarea:focus { outline: 0; border-color: var(--am-navy); background: #fff; }
.am-form input[type="submit"] {
	width: 100%; border: 0; border-radius: 999px; padding: 1.05rem 2rem; cursor: pointer;
	font: 800 1rem var(--am-font-body); color: #fff; background: var(--am-coral); transition: background .2s, transform .2s;
}
.am-form input[type="submit"]:hover { background: var(--am-coral-dark); transform: translateY(-1px); }
.am-form .wpcf7-not-valid-tip { font-size: .8rem; margin-top: .3rem; }
.am-form .wpcf7-response-output { margin: 1rem 0 0 !important; border-radius: 12px; padding: .9rem 1.1rem !important; font-weight: 600; }

/* ---------- Blog index (Hello archive markup) ---------- */
.blog .site-main, .archive .site-main { max-width: 1240px; margin: 0 auto; padding: 5rem clamp(1.25rem, 4vw, 3rem) 6rem; }
.blog .page-header, .archive .page-header { margin-bottom: 3rem; }
.blog .page-header .entry-title, .archive .page-header .entry-title { font: 500 clamp(2.6rem, 5.5vw, 4.5rem)/1.05 var(--am-font-display); letter-spacing: -.02em; color: var(--am-ink); }
.blog .page-header .entry-title::after, .archive .page-header .entry-title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin-top: 1.1rem; border-radius: 3px; background: var(--am-coral); }
.blog .page-content, .archive .page-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 1024px) { .blog .page-content, .archive .page-content { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .blog .page-content, .archive .page-content { grid-template-columns: 1fr; } }
.blog article.post, .archive article.post {
	position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden;
	border-radius: var(--am-radius); background: #fff; border: 1px solid var(--am-line);
	box-shadow: 0 10px 30px rgba(14,42,79,.06); transition: transform .25s, box-shadow .25s;
}
.blog article.post:hover, .archive article.post:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(14,42,79,.14); }
.blog article.post > a, .archive article.post > a { order: -1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--am-sand); }
.blog article.post > a img, .archive article.post > a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog article.post:hover > a img, .archive article.post:hover > a img { transform: scale(1.05); }
.blog article.post .entry-title, .archive article.post .entry-title { margin: 1.25rem 1.4rem .6rem; font: 800 1.08rem/1.35 var(--am-font-body); }
.blog article.post .entry-title a, .archive article.post .entry-title a { color: var(--am-ink); text-decoration: none; }
.blog article.post .entry-title a::after, .archive article.post .entry-title a::after { content: ""; position: absolute; inset: 0; }
.blog article.post p, .archive article.post p {
	margin: 0 1.4rem 1.5rem; font-size: .92rem; line-height: 1.65; color: var(--am-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog .pagination, .archive .pagination { display: flex; justify-content: space-between; margin-top: 3rem; }
.blog .pagination a, .archive .pagination a {
	display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; border: 1.5px solid var(--am-navy);
	font: 800 .9rem var(--am-font-body); color: var(--am-navy); text-decoration: none; transition: all .2s;
}
.blog .pagination a:hover, .archive .pagination a:hover { background: var(--am-navy); color: #fff; }
.single-post .elementor-widget-theme-post-content img { display:block; margin: 0 auto 1.5rem; }
.am-subscribe .wpcf7-spinner { position: absolute; right: 0; margin: 0; }
.am-subscribe { position: relative; }

/* Header topbar: one outline icon set (phone, mail, pin), same size and stroke, centred on the cap height of the text.
   The Elementor SVG widgets mixed solid and outline glyphs with different proportions and a -3px nudge. */
.elementor-location-header a[href^="tel:"] > .e-svg-base,
.elementor-location-header a[href^="mailto:"] > .e-svg-base,
.elementor-location-header .e-svg-base:has(> svg[viewBox="0 0 384 512"]) {
	width: 16px !important; height: 16px !important; flex: 0 0 16px !important; transform: none !important;
	background-color: currentColor; -webkit-mask: var(--am-ico) center / contain no-repeat; mask: var(--am-ico) center / contain no-repeat;
}
.elementor-location-header a[href^="tel:"] > .e-svg-base svg,
.elementor-location-header a[href^="mailto:"] > .e-svg-base svg,
.elementor-location-header .e-svg-base:has(> svg[viewBox="0 0 384 512"]) svg { display: none; }
.elementor-location-header a[href^="tel:"] > .e-svg-base { --am-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.elementor-location-header a[href^="mailto:"] > .e-svg-base { --am-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.elementor-location-header .e-svg-base:has(> svg[viewBox="0 0 384 512"]) { --am-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.99-5.53 10.19-7.4 11.8a1 1 0 0 1-1.2 0C9.53 20.19 4 14.99 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.elementor-location-header :is(a[href^="tel:"] > .e-svg-base, a[href^="mailto:"] > .e-svg-base, .e-svg-base:has(> svg[viewBox="0 0 384 512"])) + span {
	line-height: 16px !important; text-box: trim-both cap alphabetic;
}
/* Social icons in the topbar: inline SVGs sat on the text baseline, a little below the ET/RU switch. */
.elementor-location-header a.e-svg-base:is([href*="facebook.com"], [href*="instagram.com"]) { display: block !important; line-height: 0; align-self: center; }
.elementor-location-header a.e-svg-base:is([href*="facebook.com"], [href*="instagram.com"]) svg { display: block; }

/* Kontakt / Контакты: the four contact cards sat across the edge of the dark hero (half on navy, half on
   white). One white panel with a shadow, like the form card next to it, with dividers between the rows. */
.e-grid-base > div:has(> a[href^="tel:"]):has(> a[href^="mailto:"]) {
	align-self: start; gap: 0 !important; padding: .4rem 1.5rem !important;
	background: #fff; border-radius: var(--am-radius, 18px); box-shadow: 0 18px 50px rgba(14, 42, 79, .12);
}
.e-grid-base > div:has(> a[href^="tel:"]):has(> a[href^="mailto:"]) > * {
	padding: 1.15rem 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; transform: none !important;
}
.e-grid-base > div:has(> a[href^="tel:"]):has(> a[href^="mailto:"]) > * + * { border-top: 1px solid var(--am-line, #E4DDD2) !important; }
