:root {
    --adriatic-bg: #f5fbff;
    --adriatic-primary: #00a896;
    --adriatic-hover: #028090;
    --adriatic-accent: #fcbf49;
    --adriatic-ink: #12383d;
    --adriatic-border: rgba(2, 128, 144, 0.12);
    --adriatic-shadow: 0 18px 45px rgba(2, 128, 144, 0.09);
    --adriatic-shadow-lg: 0 26px 70px rgba(2, 128, 144, 0.16);
    --adriatic-radius: 18px;
}

body,
body.bg-light,
.body-public {
    background: linear-gradient(
        180deg,
        #f5fbff 0%,
        #eef8ff 50%,
        #e6f4ff 100%
    ) !important;
    color: var(--adriatic-ink);
}

a {
    color: var(--adriatic-hover);
}

a:hover {
    color: var(--adriatic-primary);
}

.btn-primary {
    --bs-btn-bg: var(--adriatic-primary);
    --bs-btn-border-color: var(--adriatic-primary);
    --bs-btn-hover-bg: var(--adriatic-hover);
    --bs-btn-hover-border-color: var(--adriatic-hover);
    --bs-btn-active-bg: var(--adriatic-hover);
    --bs-btn-active-border-color: var(--adriatic-hover);
    --bs-btn-disabled-bg: var(--adriatic-primary);
    --bs-btn-disabled-border-color: var(--adriatic-primary);
}

.btn-outline-danger {
    --bs-btn-color: var(--adriatic-hover);
    --bs-btn-border-color: rgba(2, 128, 144, 0.35);
    --bs-btn-hover-bg: var(--adriatic-hover);
    --bs-btn-hover-border-color: var(--adriatic-hover);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--adriatic-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 150, 0.16);
}

.bg-white {
    background-color: #fff !important;
}

.border,
.border-bottom {
    border-color: var(--adriatic-border) !important;
}

.rounded-2 {
    border-radius: var(--adriatic-radius) !important;
}

header.bg-white {
    box-shadow: 0 10px 30px rgba(2, 128, 144, 0.06);
}

.navbar-brand {
    color: var(--adriatic-hover);
}

.navbar-brand:hover {
    color: var(--adriatic-primary);
}

.card,
.soft-card,
section.bg-white.border,
div.bg-white.border {
    border-color: var(--adriatic-border) !important;
    border-radius: var(--adriatic-radius) !important;
    box-shadow: var(--adriatic-shadow);
}

.home-hero {
    background: url("https://images.unsplash.com/photo-1555990538-c48dbe41d8df?auto=format&fit=crop&w=1800&q=80") center / cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.home-hero-carousel,
.home-hero-carousel .carousel-inner,
.home-hero-carousel .carousel-item {
    inset: 0;
    height: 100%;
    position: absolute;
    width: 100%;
}

.home-hero-carousel .carousel-item img {
    filter: none;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    width: 100%;
}

.home-hero-caption {
    bottom: auto;
    left: 50%;
    max-width: min(760px, calc(100% - 2rem));
    padding: 0;
    right: auto;
    top: 14%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.home-hero-caption h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.home-hero-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.home-hero-overlay {
    background: rgba(0, 0, 0, 0.15);
    inset: 0;
    position: absolute;
    z-index: 1;
}

.home-hero > .container {
    z-index: 2;
}

.home-hero-content {
    max-width: 860px;
    padding: 7rem 0;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.88);
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.home-hero-search {
    color: var(--adriatic-ink);
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px !important;
    max-width: 960px;
}

.home-hero-carousel ~ .container .home-hero-content {
    padding-bottom: 4rem;
    padding-top: 18rem;
}

.home-hero-search .home-search-box {
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 767.98px) {
    .home-hero-caption {
        top: 10%;
    }

    .home-hero-caption h2 {
        font-size: 2rem;
    }

    .home-hero-caption p {
        font-size: 1rem;
    }

    .home-hero-content {
        padding: 12rem 0 4rem;
    }

    .home-hero-carousel ~ .container .home-hero-content {
        padding-top: 15rem;
    }

    .home-hero-search {
        margin-top: 48px !important;
    }
}

.home-search-wrap {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.home-search-box {
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow-lg);
    margin-bottom: 5rem;
    padding: 2rem;
}

.home-search-box .form-control,
.home-search-box .form-select {
    border-radius: 14px;
    min-height: 52px;
}

.home-section {
    margin-bottom: 5.5rem;
}

.home-kicker {
    color: var(--adriatic-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.home-empty {
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    color: #6c757d;
    padding: 1.5rem;
}

.listing-card {
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover {
    box-shadow: var(--adriatic-shadow-lg);
    transform: translateY(-4px);
}

.listing-card-media {
    background: #dff5f1;
    overflow: hidden;
    position: relative;
}

.listing-card-media img,
.listing-card-placeholder {
    aspect-ratio: 16 / 12;
    display: block;
    object-fit: cover;
    width: 100%;
}

.listing-card-placeholder {
    align-items: center;
    color: #6c757d;
    display: flex;
    justify-content: center;
}

.listing-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.listing-card-location {
    color: var(--adriatic-hover);
    font-size: 0.84rem;
    font-weight: 700;
}

.listing-card-price {
    color: var(--adriatic-ink);
    font-size: 1.16rem;
    font-weight: 800;
}

.listing-card-badge {
    background: var(--adriatic-accent);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #4b3200;
    font-size: 0.78rem;
    font-weight: 800;
    left: 1rem;
    padding: 0.42rem 0.75rem;
    position: absolute;
    text-transform: uppercase;
    top: 1rem;
}

.listing-card-footer {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.listing-card-button {
    border-radius: 999px;
    flex: 0 0 auto;
    font-weight: 700;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.country-tile {
    align-items: end;
    background: #dcecf7;
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    color: #fff;
    display: flex;
    font-weight: 800;
    min-height: 150px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.country-tile::after {
    display: none;
}

.country-tile-image {
    filter: none;
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: 1;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.country-tile span {
    position: relative;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
    z-index: 2;
}

.country-tile:hover {
    box-shadow: var(--adriatic-shadow-lg);
    color: #fff;
    transform: translateY(-3px);
}

.country-page-hero {
    align-items: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(252, 191, 73, 0.24), transparent 28%),
        linear-gradient(135deg, #071f2b, #064452);
    color: #fff;
    display: flex;
    min-height: 460px;
    overflow: hidden;
    position: relative;
}

.country-page-hero-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.country-page-hero-overlay {
    background: linear-gradient(90deg, rgba(7, 31, 43, 0.82), rgba(6, 68, 82, 0.36));
    inset: 0;
    position: absolute;
    z-index: 1;
}

.country-page-hero .container {
    z-index: 2;
}

.country-page-hero-content {
    max-width: 760px;
    padding: 5rem 0;
}

.country-page-hero .lead {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.country-info-card {
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    padding: 1.5rem;
}

.country-chip {
    background: #e2f8f4;
    border: 1px solid rgba(0, 168, 150, 0.18);
    border-radius: 999px;
    color: var(--adriatic-hover);
    font-weight: 700;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.country-chip:hover {
    background: var(--adriatic-primary);
    color: #fff;
    transform: translateY(-1px);
}

.offer-hero {
    background: linear-gradient(180deg, #f8fffd 0%, var(--adriatic-bg) 100%);
    border-bottom: 1px solid var(--adriatic-border);
}

.offer-main-photo {
    border-radius: var(--adriatic-radius);
    display: block;
    box-shadow: var(--adriatic-shadow-lg);
    overflow: hidden;
}

.offer-main-photo-wrap {
    display: block;
    position: relative;
}

.offer-gallery-controls {
    bottom: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 4;
}

.offer-main-photo img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    opacity: 1;
    transition: opacity 180ms ease;
}

.offer-main-photo img.is-changing,
#offerGalleryImage.is-changing {
    opacity: 0.28;
}

.offer-gallery-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(18, 56, 61, 0.18);
    color: var(--adriatic-hover);
    display: flex;
    font-size: 3rem;
    font-weight: 700;
    height: 4rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: 4rem;
}

.offer-gallery-arrow:hover {
    background: var(--adriatic-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

.offer-gallery-arrow-prev {
    left: 1rem;
    right: auto;
}

.offer-gallery-arrow-next {
    left: auto;
    right: 1rem;
}

.offer-thumb {
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(2, 128, 144, 0.08);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.offer-thumb:hover {
    box-shadow: 0 14px 34px rgba(2, 128, 144, 0.14);
    transform: translateY(-2px);
}

.offer-thumb.is-active {
    box-shadow: 0 0 0 3px var(--adriatic-accent), 0 14px 34px rgba(2, 128, 144, 0.14);
    transform: translateY(-2px);
}

.offer-thumb img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

#offerGalleryImage {
    opacity: 1;
    transition: opacity 180ms ease;
}

.offer-photo-empty {
    align-items: center;
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    color: #6c757d;
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.offer-summary-card,
.offer-content-card {
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow);
    padding: 1.5rem;
}

.offer-summary-card {
    position: sticky;
    top: 1rem;
}

.offer-price-box {
    background: #e2f8f4;
    border-radius: var(--adriatic-radius);
    padding: 1rem;
}

.offer-price {
    color: var(--adriatic-hover);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
}

.offer-location {
    border-bottom: 1px solid var(--adriatic-border);
    padding-bottom: 1rem;
}

.offer-contact-box {
    border-top: 1px solid var(--adriatic-border);
    padding-top: 1rem;
}

.offer-description {
    color: #25464b;
    font-size: 1.02rem;
    line-height: 1.75;
}

.offer-amenity {
    background: #e2f8f4;
    border: 1px solid rgba(0, 168, 150, 0.18);
    border-radius: 999px;
    color: var(--adriatic-hover);
    font-weight: 700;
    padding: 0.55rem 0.85rem;
}

.offer-map {
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    height: 380px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .offer-summary-card {
        position: static;
    }
}

.fade-in {
    animation: fadeIn 180ms ease-in;
}

.soft-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.soft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.site-footer {
    background: linear-gradient(135deg, #071f2b, #064452);
    color: #fff;
    margin-top: 4rem;
}

.site-footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.site-footer-text {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.site-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-list li + li {
    margin-top: 0.55rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: color 160ms ease, padding-left 160ms ease;
}

.site-footer a:hover {
    color: var(--adriatic-accent);
    padding-left: 0.2rem;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    padding: 1.25rem 0;
}

.cookie-consent-banner {
    bottom: 1rem;
    left: 50%;
    max-width: min(960px, calc(100% - 2rem));
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1050;
}

.cookie-consent-content {
    align-items: center;
    background: #fff;
    border: 1px solid var(--adriatic-border);
    border-radius: var(--adriatic-radius);
    box-shadow: var(--adriatic-shadow-lg);
    color: var(--adriatic-ink);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.cookie-consent-content a {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .cookie-consent-content {
        align-items: stretch;
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
