:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #414141;
    background: #d7e9f4;
    --blue: #1092cc;
    --link: #0876a5;
    --gutter: clamp(15px, 5.25%, 65px);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 280px;
    font-size: 18px;
    line-height: 1.45;
    background: url("/assets/solymar/urlaub.jpg") center top / cover no-repeat fixed;
}

a { color: var(--link); }
a:hover { color: #075475; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #073c60; outline-offset: 3px; }

.site {
    max-width: 1240px;
    min-height: 100vh;
    margin-inline: auto;
    background: #fdfdfd;
    box-shadow: 0 0 6px #0002;
}

.site-header { position: relative; }

.brand-row {
    min-height: 119px;
    padding: 34px var(--gutter) 8px;
    background: #f3f3f3;
    border-bottom: 1px solid #eaeaea;
}

.brand { display: inline-block; vertical-align: top; }
.brand img { width: 280px; height: auto; }

.language {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: calc(var(--gutter) + 35px);
    width: 220px;
    font-size: 13px;
    line-height: 1.3;
}

.language summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    color: #333;
    background: linear-gradient(white, #eee);
    border: 1px solid #a9a9a9;
    border-radius: 5px;
}

.language summary::after { content: "▾"; color: #777; }
summary::-webkit-details-marker { display: none; }
.language ul, .mobile-nav ul, .desktop-nav ul, .footer ul { list-style: none; margin: 0; padding: 0; }
.language ul, .mobile-nav nav { background: white; border: 1px solid #ddd; box-shadow: 0 3px 8px #0002; }
.language a { display: block; padding: 6px 8px; text-decoration: none; }
.language a[aria-current] { background: #e6f4fb; }

.desktop-nav {
    display: flex;
    align-items: center;
    min-height: 65px;
    margin-inline: var(--gutter);
}

.desktop-nav ul { display: flex; flex-wrap: wrap; gap: 5px; }
.desktop-nav a, .mobile-nav a {
    display: block;
    padding: 11px 15px;
    color: #151515;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.desktop-nav a:hover, .mobile-nav a:hover { background: #e7f4fb; }
/* The active item as on the live site: a blue box with white text. */
.desktop-nav a[aria-current], .mobile-nav a[aria-current] { border-radius: 2px; background: #1193d4; color: #fff; }
.mobile-nav { display: none; position: absolute; z-index: 2; right: var(--gutter); bottom: 17px; }
.mobile-nav summary { display: block; color: #111; font-size: 21px; line-height: 1.3; }
.menu-icon {
    display: inline-block;
    width: 17px;
    height: 14px;
    border-block: 3px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.mobile-nav nav { position: absolute; right: 0; min-width: 210px; }

.welcome, main, .footer { margin-inline: var(--gutter); }
.welcome { position: relative; margin-block: 0; }
.welcome img { width: 100%; height: auto; }
.welcome figcaption {
    position: absolute;
    top: 49.4%;
    left: 0;
    padding: 23px 35px;
    background: #ffffffe0;
    font-size: clamp(18px, 3.1vw, 36px);
    font-weight: 700;
    letter-spacing: .01em;
}

main { padding-bottom: 28px; }
.home-copy { max-width: 100%; overflow-wrap: anywhere; }
.home-copy h1, .home-copy > h2:first-child { margin: 12px 0 18px; text-align: center; font-size: 37px; font-weight: 400; line-height: 1.14; }
.home-copy > :first-child { margin-top: 12px; }
.search-module { margin-block: 25px; }
.search-module > h2 { margin: 0 0 15px; font-size: 25px; font-weight: 400; }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.home-cards article { border: 1px solid #ddd; background: white; box-shadow: 0 2px 6px #0001; }
.home-cards a { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.home-cards figure { position: relative; margin: 0; }
.home-cards img { width: 100%; height: auto; }
.home-cards figcaption {
    position: absolute;
    bottom: 12%;
    padding: 8px 12px;
    background: #ffffffe0;
    color: #333;
    font-size: 17px;
    font-weight: 700;
}
.home-cards p { flex: 1; margin: 13px; white-space: normal; font-size: 15px; }
.home-cards .button { margin: 0 13px 13px; text-align: center; }

.button {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #067fb4;
    border-radius: 4px;
    color: white;
    background: var(--blue);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}
.button:hover { color: white; background: #087aad; }

.rental-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 25px; padding: 4px 15px 16px; }
.rental-filter input[type="date"] {
    display: block;
    width: 206px;
    max-width: 100%;
    min-height: 34px;
    margin-top: 4px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #555;
    background: white;
    font-size: 14px;
}
.rental-filter > div { align-self: end; }
.rental-filter a { margin-left: 8px; font-size: 15px; }
.rental-notice { margin: 0 0 12px; padding: 12px 16px; background: #ffffe0; }
.rental {
    display: grid;
    grid-template-columns: 20% minmax(0, 1fr);
    background: linear-gradient(white, #ffefd1);
}
.rental + .rental, .rental-detail { margin-top: 6px; }
.rental-photos { padding: 9px 3px; min-width: 0; }
/* Thumbnails as in the legacy gallery column: stacked blocks with a 3px margin. */
.rental-photos a[data-photo] { display: inline; }
.rental-photos img { display: block; height: auto; margin: 3px; border: 1px solid #b2b2b2; }
.rental-info { min-width: 0; padding: 8px; overflow-wrap: anywhere; }
.rental-title {
    margin: 0 0 10px;
    padding: 9px;
    background: var(--blue);
    color: #fcfcfc;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}
.rental-price { color: #ff0; }
.rental-reference { margin-left: 25px; }
.rental-tags { padding-bottom: 4px; border-bottom: 2px dashed #b2b2b2; }
.rental-tag { display: inline-block; padding: 4px; margin: 0 5px 4px 0; border-radius: 3px; background: var(--blue); color: white; }
.rental-link { background: #ff0; white-space: nowrap; text-decoration: none; }
.rental-description { margin: 18px 0 14px; }
.rental-tags a + a { margin-left: 8px; }
.rental-tags a[href^="#"] { color: #1193d4; text-decoration: none; }
html { scroll-behavior: smooth; }

#solymar_map { min-height: 0; margin-bottom: 16px; }
/* The legacy inquiry form: Bootstrap 3 form controls from the probiz template and the component's
   own rules, as computed on the live site. */
.inquiry-column { width: 70%; display: inline-block; }
.inquiry-aside { width: 29%; display: inline-block; vertical-align: top; text-align: center; }
.inquiry-aside p { margin: 0 0 10px; }
.inquiry-aside .solymarcam_img { max-width: 100%; height: auto; }
#contact_form p { margin: 0 0 10px; line-height: 26px; }
#contact_form label { display: inline-block; margin-bottom: 5px; font-size: 18px; font-weight: 400; color: #444; }
#contact_form input, #contact_form select, #contact_form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    color: #555;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.42857;
}
#contact_form select { width: 220px; }
#contact_form textarea { width: 206px; }
#contact_form input[type="checkbox"] { display: inline-block; height: auto; margin: 4px 0 0; padding: 0; box-shadow: none; }
#contact_form input[type="submit"] { border-color: #0f7fb8; background-color: #1193d4; color: #fff; cursor: pointer; }
#contact_form input[type="submit"]:hover { background-color: #0f7fb8; }
#contact_form input[type="submit"]:disabled { opacity: .65; cursor: not-allowed; }
#contact_form #last_name { display: none; }
#contact_form label a { color: #1193d4; text-decoration: none; }
#contact_form label a:hover { text-decoration: underline; }
#solymar_contact { letter-spacing: .3px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.inquiry-status { padding: 9px 12px; background: #e6f4fb; }
.inquiry-status.error { background: #fff1db; }

.rental-calendar { margin-top: 16px; }
/* The legacy calendar: span.inliner months of 260px and a collapsed .calendar-table. */
.calendar-months { display: flex; overflow-x: auto; padding: 0 0 12px; }
.calendar-month { flex: 0 0 260px; margin: 4px; border-collapse: collapse; table-layout: fixed; }
.calendar-month caption { padding: 10px 0; font-size: 18px; font-weight: 400; text-align: left; }
.calendar-month th, .calendar-month td { height: 40px; text-align: center; }
.calendar-month th { background: #7fffd4; }
.calendar-day { background: #ffefd1; }
/* The legacy booked colours: .not-available, -first and -last of the component stylesheet. */
.calendar-occupied, .calendar-day.occupied-3 { background: #ff5722; color: #777; }
.calendar-free { background: #ffefd1; color: #777; }
.calendar-day.occupied-1 { background-image: linear-gradient(312deg, #ff5722 50%, #ffefd1 50%); }
.calendar-day.occupied-2 { background-image: linear-gradient(132deg, #ff5722 50%, #ffefd1 50%); }


.article { max-width: 78ch; padding-top: 14px; overflow-wrap: anywhere; }
.article h1 { margin: 0 0 16px; line-height: 1.15; }
.article table { display: block; max-width: 100%; overflow: auto; }
/* The legacy footer module: social logos floated right; the copyright is white on white, as live. */
.footer { padding: 20px 0; color: #fff; font-size: 18px; text-align: center; }
.footer-social { margin: 0; overflow: hidden; }
.footer-social img { float: right; max-height: 60px; width: auto; }

@media (max-width: 767px) {
    :root { --gutter: 15px; }
    body { background: #fdfdfd; }
    .site { box-shadow: none; }
    .brand-row { min-height: 146px; }
    .language { top: 112px; right: 30px; max-width: 65%; }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; position: relative; bottom: auto; right: auto; height: 57px; text-align: center; }
    .mobile-nav summary { display: inline-block; padding: 14px 20px; }
    .mobile-nav nav { right: 50%; transform: translateX(50%); top: 51px; }
    .welcome figcaption { top: 43%; padding: 9px; }
    .home-copy h1, .home-copy > h2:first-child { font-size: 24px; }
    .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rental-filter { grid-template-columns: 1fr; gap: 0; padding: 0 0 10px; }
    .rental-reference { margin-left: 12px; }
    .rental-photos .rental-title { font-size: 14px; padding-inline: 5px; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
    .home-cards { grid-template-columns: 1fr; }
}

/* Contact page: a mailto link and the address to copy for webmail. */
.contact-page .contact-address { margin-right: 8px; font-weight: bold; }
.contact-page .contact-copy { font-size: 14px; }
.contact-page .contact-status { margin-left: 8px; color: #2e7d32; }

/* The legacy video preview and its overlay player (.solymar-lightbox of the component stylesheet). */
#immotrigger img { display: block; max-width: 100%; height: auto; margin: 3px 0; }
.solymar-lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .8); text-align: center; }
.solymar-lightbox iframe { max-width: 90%; max-height: 60%; margin-top: 2%; }
.solymar-close { color: #fff; cursor: pointer; }

/* The magnifier of the legacy search button (Font Awesome's fa-search). */
.rental-filter .button svg { width: 13px; height: 14px; margin-right: 1px; vertical-align: -2px; fill: currentColor; }
