@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&family=Carlito:wght@400;700&display=swap');

/* Boje */
html {
	--bg: #ffffff;
	--fg: #333;
	--translucent-bg: #ffffffdd;
	--alt-bg: #ece7e1;
	--alt-fg: #68563c;
	--accent: #c1524d;
	--accent-hover: #d57771;
	--accent-fg: #fff;
}

/* Tipografija */
html { font: normal max(19px, 1.32vw) / 1.5 Carlito, sans-serif }
.desktop-menu__item { font-size: 1.05rem; text-decoration: none; white-space: nowrap }
.mobile-menu__item { font-size: 1.05rem; text-decoration: none; white-space: nowrap }
h1 { font-size: 1.7em; line-height: 1.1; margin: 1.5rem 0; text-transform: uppercase; letter-spacing: 1px }
h2 { font-size: 1.65em; line-height: 1.1; margin: 1.5rem 0 0.5rem }
h3 { font-size: 1.35em; line-height: 1.1; margin: 1.5rem 0 0.5rem }
h1,
h2,
h3 { font-family: Ubuntu, Playfair Display, serif; font-weight: 300; color: var(--accent) }
.strong { font-size: 111%; line-height: 1; vertical-align: -2%; font-weight: bold; opacity: 0.9 }
p,
ul,
table { margin: 0.8em 0 }

/* Reset */
* { box-sizing: border-box }
html { overflow-y: scroll }
h1:first-child,
h2:first-child,
h3:first-child,
p:first-child,
ul:first-child,
table:first-child { margin-top: 0 }
h2:last-child,
p:last-child,
ul:last-child,
table:last-child { margin-bottom: 0 }
ul { padding-left: 1.4em }
li { list-style-type: square }
a,
button { cursor: pointer }
img { vertical-align: bottom }
button,
table { font: inherit }

html { background: var(--accent) }
body { margin: 0; background: var(--bg); color: var(--fg) }
body[data-scroll] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden }
a { color: var(--accent) }

/* Gradivni blokovi */
.section:nth-child(2n+1) { background: var(--alt-bg) }
@media (min-width: 768px) {
	.header,
	.desktop-menu,
	.hero__search,
	.footer,
	.section { padding: 0 calc((100% - 40rem) / 2) }
}

/* Header */
body { padding-top: 3rem }
.header { position: fixed; z-index: 97; top: 0; left: 0; right: 0; height: 3rem; border-bottom: 1px solid var(--alt-bg); background: var(--translucent-bg); display: flex }
.header__logo { padding: 0 1rem; height: 1.73rem; width: auto }
.header__menu-opener { position: fixed; z-index: 99; right: 0; top: 0; width: 3rem; height: 3rem; background: var(--accent); color: var(--accent-fg); cursor: pointer; user-select: none; -webkit-user-select: none }
.header__menu-opener:active { background: var(--accent-hover) }
.header__menu-icon,
.header__close-icon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transform: rotate(0); transition: transform 200ms ease-out }
.header__menu-icon  { opacity: 1 }
.header__menu-opener.is-open .header__menu-icon  { opacity: 0; transform: rotate(-90deg) }
.header__menu-opener.is-open .header__close-icon { opacity: 1; transform: rotate(-90deg) }
.header__langs { display: none }
@media (min-width: 768px) {
	body { padding-top: 0 }
	.header { position: static }
	.header__menu-opener { display: none }
	.header__langs { margin-left: auto; display: flex }
	.header__lang { line-height: 3rem; padding: 0 0.3rem 0 2rem; background: 0.6rem center / 1.2rem no-repeat; color: var(--fg); font-size: 80%; text-decoration: none; filter: grayscale(0.8) }
	.header__lang:hover { filter: none }
	.header__lang--hr { background-image: url(lang-hr.svg) }
	.header__lang--en { background-image: url(lang-en.svg) }
	.header__lang--de { background-image: url(lang-de.svg) }
	.header__lang--it { background-image: url(lang-it.svg) }
}

/* Mobile & desktop menus */
.mobile-menu { position: fixed; z-index: 98; top: 3rem; width: 100%; height: calc(100% - 3rem); padding: 1rem 0 0 0; display: none; background: var(--accent) }
.mobile-menu.is-open { display: flex; flex-direction: column }
.mobile-menu__item { line-height: 2.6rem; padding: 0 1rem; border-bottom: 1px dotted var(--accent-fg); color: var(--accent-fg) }
.mobile-menu__item:hover,
.mobile-menu__item:active { background: var(--accent-hover) }
.mobile-menu__title { margin-top: 2rem; padding: 0 1rem; color: var(--accent-fg); font-size: 85%; text-transform: uppercase }
.mobile-menu__contact { padding: 0 1rem; color: var(--accent-fg); display: flex; align-items: center;}
.mobile-menu__icon { width: 1em; height: 1em; margin-right: 0.3em }
.mobile-menu__link { color: var(--accent-fg); text-decoration: none }
.mobile-menu__langs { margin-top: auto; padding-left: 10px; display: flex }
.mobile-menu__lang { padding: 26px 9px 26px 44px; background: 15px center / 23px no-repeat; font-size: 80%; color: var(--accent-fg); text-decoration: none }
.mobile-menu__lang:hover,
.mobile-menu__lang:active { background-color: var(--accent-hover) }
.mobile-menu__lang--hr { background-image: url(lang-hr.svg) }
.mobile-menu__lang--en { background-image: url(lang-en.svg) }
.mobile-menu__lang--de { background-image: url(lang-de.svg) }
.mobile-menu__lang--it { background-image: url(lang-it.svg) }
@media (min-width: 768px) {
	.mobile-menu { display: none }
}

.desktop-menu { display: none }
@media (min-width: 768px) {
	.desktop-menu { position: sticky; top: 0; z-index: 111; background: var(--bg); border-bottom: 1px solid var(--alt-bg); display: flex; align-items: center }
	.desktop-menu__item { line-height: 3.3rem; padding: 0 0.75rem; color: var(--fg) }
	.desktop-menu__item:hover,
	.desktop-menu__item:active { background: var(--alt-bg) }
}

/* Footer */
.footer { background: var(--accent); color: var(--accent-fg); line-height: 1.4; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto }
.footer__logo { grid-column: 1/2; grid-row: 1/3; width: 1.75em; height: 1.75em; margin: 1.5em 1em; opacity: 0.8 }
.footer__label { grid-column: 2/3; grid-row: 1/2; font-size: 85%; text-transform: uppercase }
.footer__contact { grid-column: 2/3; grid-row: 2/3; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5em 1.8em }
.footer__icon { width: 1em; height: 1em; margin-top: 0.2em }
.footer__part { white-space: nowrap; display: flex; align-items: flex-start; gap: 0 0.35em }
.footer__link { color: var(--accent-fg) }
.footer__go-to-top { grid-column: 3/4; grid-row: 1/3; width: 1.6em; height: 1.6em; padding: 0.5em; box-sizing: content-box; cursor: pointer; border-radius: 50%; margin: 1.0rem 0.5rem 1.0rem auto;}
.footer__go-to-top:hover { background: var(--accent-hover) }

/* Google map */
.google-map { padding-bottom: 100%; background: var(--alt-bg); position: relative }
.google-map iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0 }
@media (min-width: 768px) {
	.google-map { padding-bottom: 66% }
}

/* Hero */
.hero,
.hero__slide { width: 100%; height: 75vh; margin-bottom: 3rem }
.hero { background: var(--alt-bg); position: relative }
.hero__gallery { position: absolute; left: 0; top: 0; width: 100%; height: 100% }
.hero__slide { object-fit: cover }
@media (min-width: 768px) {
	.hero,
	.hero__slide { height: calc(100vh - 6rem); margin: 0 }
}
.hero__search { position: absolute; bottom: -5rem; left: 0; right: 0; z-index: 3 }
@media (min-width: 586px) {
	.hero__search { bottom: -4rem }
}
@media (min-width: 768px) {
	.hero__search { bottom: 0 }
}

/* Search form */
.search { z-index: 3; padding: 1rem }
.search__form { background: var(--accent); color: var(--accent-fg); line-height: 1.4; border-radius: 3px; box-shadow: 0 0 3px #0003; display: flex; flex-wrap: wrap; align-items: center; user-select: none }
.search__part { flex: 1 1 calc(50% - 20px); padding: 0.6rem 0; font-size: 1.1rem; text-align: center; cursor: pointer }
.search__arrow { width: 1.26rem; height: 1.26rem }
.search__button { flex: 0 0 100%; padding: 0.7rem; border: 0; border-radius: 0 0 3px 3px; background: var(--accent-fg); color: var(--accent); font-size: 1rem; text-transform: uppercase }
.search__label { font-size: 60%; text-transform: uppercase }
.search__day { font-size: 120%; font-weight: bold; vertical-align: -4%; line-height: 1 }
.search__month { font-size: 84%; display: block; line-height: 1 }
.search__year { font-size: 84%; display: none }
@media (min-width: 576px) {
	.search__part { flex: 4; font-size: 1.3rem; text-align: left; padding: 0.6rem 1rem }
	.search__button { flex: 1 0 auto; align-self: stretch; font-size: 1.1rem; border-radius: 0 3px 3px 0 }
	.search__month { display: inline }
}
@media (min-width: 768px) {
	.search__part { padding: 0.6rem 2rem }
	.search__year { display: inline }
}

/* Gallery (lightbox) */
.gallery { width: 100%; padding-bottom: 66%; box-sizing: border-box }
.gallery__slide { width: 100%; height: 100%; object-fit: cover }

/* Calendar */
.calendar { position: absolute; z-index: 999; padding: 0.3rem; background: var(--bg); border-radius: 3px; box-shadow: 0 0 3px #0009; user-select: none }
.calendar__days { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr }
.calendar__empty { opacity: 0.5 }
.calendar__empty,
.calendar__day { text-align: center; padding: 0.4em 0.6em; color:var(--fg) }
.calendar__day:hover,
.calendar__day:active { background:var(--alt-bg); color: var(--fg); border-radius: 3px }
.calendar__day--today { background:var(--accent); color:var(--accent-fg); border-radius: 50% }
.calendar__head { border-bottom: 1px solid #ccc; display: flex; align-items: center }
.calendar__month { margin: 0 auto }
.calendar__prev,
.calendar__next { width: 2.36rem; height: 2.36rem; color: var(--accent); cursor: pointer }

/* Apartments list */
.apt-list__item + .apt-list__item { margin-top: 3.3rem }
.apt-list__title { display: block; text-decoration: none }
.apt-list__intro { margin: 10px 0; text-transform: uppercase; opacity: 0.66 }
.apt-list__gallery { display: block; padding-bottom: 66%; position: relative }
.apt-list__image { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: no-repeat center/cover }
.apt-list__desc { margin-top: 10px; min-width: 0 }
.apt-list__features { margin: 0.8em 0 0 0; padding: 0; display: flex; flex-wrap: wrap }
.apt-list__amenities { margin: 0 0 0.8em 0; padding: 0; display: flex; flex-wrap: wrap }
.apt-list__feature,
.apt-list__amenity { display: inline-block; margin: 0.15rem 0.3rem 0.15rem 0; padding: 0 0.4em; border: 1px solid var(--fg); border-radius: 5px; font-size: 85% }
.apt-list__feature { background: var(--fg); color: var(--bg); opacity: 0.5 }
.apt-list__amenity { opacity: 0.75 }
@media (min-width: 768px) {
	.apt-list__item { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 1rem }
	.apt-list__aside { grid-column: 1/2; grid-row: 1/4; display: flex; flex-direction: column; justify-content: center }
	.apt-list__title { grid-column: 2/3; grid-row: 1/2 }
	.apt-list__intro { grid-column: 2/3; grid-row: 2/3 }
	.apt-list__desc { grid-column: 2/3; grid-row: 3/4; margin-top: 0 }
	.apt-list__deco { position: absolute; background: var(--accent); width: 40%; height: 50%; bottom: -13px; left: -13px }
	.apt-list__item + .apt-list__item .apt-list__deco { left: 30% }
}

.buttons { display: flex; flex-wrap: wrap; gap: 0.6rem }
.round-button { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 2px solid var(--accent); border-radius: 0.3em; line-height: 1.8; padding: 0 1em; font-size: 94%; text-decoration: none; text-transform: uppercase }
.round-button-alt { display: inline-block; color: var(--accent); border: 2px solid var(--accent); border-radius: 0.3em; line-height: 1.8; padding: 0 1em; font-size: 94%; text-decoration: none; text-transform: uppercase }
.link-button { padding: 0.5em 0 }
table { border-collapse: collapse; border-spacing: 5px }
table td:not(:first-child) { padding-left: 1em }
del { text-decoration-color: var(--accent); text-decoration-style: double }

.error { font-size: 110%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px }
.error__warning-icon { width: 2.3em; height: 2.3em; opacity: 0.7 }
.error__logo-icon { display: block; width: 2.3rem; height: 2.5rem; margin: 0.7rem auto }

/* Gallerista */
.gallerista { overflow: hidden; user-select: none; position: relative }
.gallerista__slide { position: absolute; top: 0; z-index: 1 }
.gallerista__dots { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center }
.gallerista__dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin: 0.8rem 0.25rem; border: 1px solid #ffffff99; border-radius: 50% }
.gallerista__dot--active { background: #ffffff99; border: none }
.gallerista__prev,
.gallerista__next { position: absolute; z-index: 2; display: block; width: 2rem; height: 2rem; padding: 1rem 0.2rem; box-sizing: content-box; transform: translateY(-50%); color: #ffffff99; background: #00000022; cursor: pointer }
.gallerista__prev { left: 0; top: 50% }
.gallerista__next { right: 0; top: 50% }

/* Fluid system */
.fluid { display: flex; align-items: center; flex-wrap: wrap }
.fluid__sm-2,
.fluid__sm-3,
.fluid__sm-4,
.fluid__sm-6,
.fluid__sm-9,
.fluid__md-2,
.fluid__md-3,
.fluid__md-4,
.fluid__md-6,
.fluid__md-9 { width: 100% }
.fluid__xs-2 { width: 16.6666% }
.fluid__xs-3 { width: 25% }
.fluid__xs-4 { width: 33.3333% }
.fluid__xs-6 { width: 50% }
.fluid__xs-9 { width: 75% }
@media (min-width: 576px) {
	.fluid__sm-2 { width: 16.6666% }
	.fluid__sm-3 { width: 25% }
	.fluid__sm-4 { width: 33.33% }
	.fluid__sm-6 { width: 50% }
	.fluid__sm-9 { width: 75% }
}
@media (min-width: 768px) {
	.fluid__md-2 { width: 16.6666% }
	.fluid__md-3 { width: 25% }
	.fluid__md-4 { width: 33.3333% }
	.fluid__md-6 { width: 50% }
	.fluid__md-9 { width: 75% }
}

/* Utility */
.m-l05 { margin-left: 0.4rem }
.m-l1 { margin-left: 1rem }
.m-t1 { margin-top: 1rem }
.m-b1 { margin-bottom: 1rem }
.m-10 { margin: 0.6rem 0 }
.p-10 { padding: 0.6rem }
.p-h10 { padding-left: 0.6rem; padding-right: 0.6rem }
.p-v10 { padding-top: 0.6rem; padding-bottom: 0.6rem }
.p-v60 { padding-top: 3rem; padding-bottom: 3rem }
.p-v90 { padding-top: 6rem; padding-bottom: 6rem }
.p-t40 { padding-top: 2rem }
.p-t60 { padding-top: 3rem }
.p-b20 { padding-bottom: 1rem }
.p-b40 { padding-bottom: 2rem }
.p-b60 { padding-bottom: 3rem }
.p-b90 { padding-bottom: 6rem }
.text-center { text-align: center }
.flex-center { display: flex; align-items: center; flex-wrap: wrap }
.nowrap { white-space: nowrap }
@media (min-width: 768px) {
	.md-nowrap { white-space: nowrap }
}

@keyframes appearing {
	from { opacity: 0 }
	to   { opacity: 1 }
}

.ani-shaking { animation: ani-shaking 1 700ms }
@keyframes ani-shaking {
	10%, 90% { transform: translateX(-1px) }
	20%, 80% { transform: translateX(2px) }
	30%, 50%, 70% { transform: translateX(-4px) }
	40%, 60% { transform: translateX(4px) }
}
