/* ================================
   GLOBAL STILOVI
================================ */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f5f6f8;
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0 0 15px;
    font-weight: 700;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* PAGE WRAPPER */
.page-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.left-col {
    flex: 1;
}

/* Premium container spacing */
section {
    margin-bottom: 50px;
}

/* ================================
   HERO SEKCIJA
================================ */

.hero {
    position: relative;
    height: 55vh;
    min-height: 420px;
    overflow: hidden;
    z-index: 10;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.7)
    );
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 60px;
    color: #fff;
}

.hero-content .title {
    font-size: 46px;
    font-weight: 800;
}

.hero-content .location {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-cta {
    padding: 14px 28px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: #005fa3;
}


.hero-media {
    position: absolute;
    inset: 0;
}

.hero .glightbox {
    display: block;
    height: 100%;
}

.hero .glightbox img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-thumbs {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 10px;
    width: 150px;
    z-index: 2;
}

.hero-thumb {
    position: relative;
    display: block;
}

.hero-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
}

.hero-description {
    margin: 10px 0 16px;
    max-width: 740px;
    font-size: 16px;
    line-height: 1.6;
    color: #f1f1f1;
}

.hero-hidden-links,
.hero-thumb--hidden {
    display: none;
}

/* ================================
   GLIGHTBOX PAGINATION DOTS
================================ */

#glightbox-body .glightbox-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 99999;
    pointer-events: auto;
}

#glightbox-body .glightbox-pagination-dot {
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    cursor: pointer;
    transition:
        width 0.15s ease,
        height 0.15s ease,
        background-color 0.15s ease;
}

#glightbox-body .glightbox-pagination-dot.is-active {
    background-color: rgba(255, 255, 255, 0.95);
    width: 8px;
    height: 8px;
}

#glightbox-body .glightbox-pagination-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

/* ================================
   STICKY NAVIGATION
================================ */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e1e1e1;
    padding: 0;
}

.nav-bar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-bar a:hover {
    color: #0071c2;
    border-color: #0071c2;
}

/* Active state when scrolling (JS opcionalno) */
.nav-bar a.active {
    color: #0071c2;
    border-color: #0071c2;
}

/* Enhanced demo nav bar */
.nav-bar--demo .nav-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-brand-text {
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(120deg, #0ea5e9, #6366f1, #14b8a6, #0ea5e9);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nav-brand-glow 6s ease-in-out infinite;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-brand-text::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    border-radius: 999px;
    margin-top: 2px;
    opacity: 0.6;
}

@keyframes nav-brand-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-bar--demo .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-bar--demo .nav-language {
    margin-left: 0;
}

.nav-language-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.nav-language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-language select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 14px;
}

.nav-lang-select--hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.nav-lang-custom {
    position: relative;
}

.nav-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
}

.nav-lang-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.nav-lang-code {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

.nav-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 120px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 4px;
    display: none;
    z-index: 40;
}

.nav-lang-menu.is-open {
    display: block;
}

.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
}

.nav-lang-option:hover {
    background: #f3f4f6;
}

@media (max-width: 768px) {
    .nav-lang-current {
        padding: 4px 8px;
    }
}

.nav-toggle {
    display: none;
    position: absolute;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: #111827;
    content: "";
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle-icon::after {
    position: absolute;
    top: 6px;
    left: 0;
}

/* X state */
.nav-bar--demo.nav-open .nav-toggle-icon {
    background-color: transparent;
}

.nav-bar--demo.nav-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-bar--demo.nav-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-overlay {
    display: none;
}

/* ================================
   GALLERY – PREMIUM BOOKING STYLE
================================ */

.gallery h2 {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.gallery-section h2 {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    font-size: 28px;
}

/* Layout */
.gallery-section .gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* Large main image */
.gallery-main img {
    height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Side images */
.gallery-side-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}

.gallery-side-grid img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Hover effect */
.gallery img {
    transition: transform 0.25s ease, filter 0.2s;
}

.gallery img:hover {
    transform: scale(1.03);
    filter: brightness(90%);
}


/* ================================
   DESCRIPTION SECTION
================================ */

.description h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.description p {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
}

.map-contact-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.d-block {
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

.text-body {
    color: #444;
}

#city-info-section .city-info-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

@media (max-width: 768px) {
    #city-info-section .city-info-layout {
        flex-direction: column;
    }
    #city-info-section [data-city-imglink] {
        width: 100%;
    }
    #city-info-section [data-city-thumb] {
        width: 100% !important;
        height: auto !important;
    }
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    z-index: 2000;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.fade.show {
    opacity: 1;
}

.modal.show {
    display: flex;
}

.modal .modal-dialog {
    width: 100%;
    max-width: 960px;
}

.modal .modal-content {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.modal .modal-body {
    padding: 0;
}

.modal .btn-close {
    position: relative;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}

.modal .btn-close::before,
.modal .btn-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

.modal .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}



/* ================================
   MAP SECTION
================================ */

.map-placeholder {
    background: #d9d9d9;
    height: 360px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.micro-location-section {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.micro-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.micro-location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
    gap: 6px;
}

.micro-location-name {
    font-weight: 700;
    color: #111827;
}

.micro-location-meta {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.micro-location-empty {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

@media (max-width: 768px) {
    .micro-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .micro-location-grid {
        grid-template-columns: 1fr;
    }
}

.location-section .house-map {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
    z-index: 0;
}

.house-map-wrapper {
    position: relative;
    z-index: 0;
}

.map-guard {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.01);
}

.map-guard span {
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    color: #ffffff;
    font-size: 11px;
}

.map-guard.is-hidden {
    display: none;
}

.house-map .leaflet-container {
    position: relative;
    z-index: 0;
}

@media (max-width: 768px) {
    .location-section .house-map {
        height: 260px;
    }
}

.page-footer {
    margin-top: 40px;
    padding: 20px 0 30px;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}

.page-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* ================================
   LIST OF UNITS (ACCOMMODATIONS)
================================ */

.units h2 {
    margin-bottom: 25px;
    font-size: 28px;
}

.unit-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-start;
}

.unit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.unit-card.unit-card--expanded {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.unit-thumb {
    flex: 0 0 220px;
    position: relative;
}

.unit-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.unit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unit-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.unit-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unit-id {
    font-size: 13px;
    color: #5a5e64;
    font-weight: 600;
    margin-left: 6px;
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.unit-from-price {
    margin: 0 0 0 auto;
    color: #0f5132;
    background: #d1e7dd;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.unit-meta {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.unit-toggle-details {
    padding: 10px 14px;
    background: #eef2ff;
    color: #1f3f8c;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    align-self: flex-start;
    transition: background 0.2s ease, border-color 0.2s ease;

    /* Prijelaz (za glatke promjene) */
  transition: all 0.3s ease-in-out;
  
  /* Primjena pulsirajuće animacije */
  animation: pulse-glow 2s infinite alternate; /* 2 sekunde, beskonačno, mijenja smjer */
}

/* Definiranje pulsirajuće sjene */
@keyframes pulse-glow {
  0% {
    /* Početna, slabija sjena */
    box-shadow: 
      0 0 3px rgba(0, 195, 255, 0.4),  /* Mekši, prozirniji sjaj */
      0 0 7px rgba(0, 195, 255, 0.2); /* Manji sjaj */
  }
  
  100% {
    /* Završna, jača sjena (maksimalni sjaj) */
    box-shadow: 
      0 0 10px rgba(0, 195, 255, 0.9),  /* Jači, manje proziran sjaj */
      0 0 20px rgba(0, 195, 255, 0.7);  /* Širi sjaj */
  }
}

.unit-toggle-details:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
}

.unit-details {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.unit-card.unit-card--expanded .unit-details {
    display: block;
}

.unit-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.unit-section-header h4 {
    margin: 0;
}

.unit-equipment {
    margin: 10px 0 16px;
}

.equipment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.equipment-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #eef2ff;
    color: #1f3f8c;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.unit-equipment-empty {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.unit-gallery {
    margin: 10px 0 16px;
}

.unit-gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.unit-gallery-item {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #f3f4f6;
}

.unit-gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.unit-gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(92%);
}

.unit-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.unit-gallery-overlay--mobile {
    display: none;
}

.unit-gallery-hidden,
.unit-gallery-item--hidden {
    display: none;
}

.unit-pricing {
    margin: 10px 0 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.unit-pricing--cards {
    padding: 0;
    background: transparent;
    border: none;
}

.unit-pricing--cards .unit-price-years {
    margin-bottom: 12px;
}

.unit-price-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unit-price-year-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.unit-price-year-pill.is-active {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1f3f8c;
}

.unit-pricing-group {
    display: none;
    margin-top: 8px;
}

.unit-pricing-group.is-active {
    display: block;
}

.season-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.season-card {
    background: #f7f9fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.season-range {
    font-weight: 600;
    color: #1f2933;
}

.season-price {
    color: #0d6efd;
    font-weight: 700;
}

.unit-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unit-pricing-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    align-items: center;
}

.unit-pricing-name {
    font-weight: 600;
}

.unit-pricing-dates {
    color: #6b7280;
    font-size: 14px;
}

.unit-pricing-price {
    justify-self: flex-end;
    font-weight: 700;
}

@media (max-width: 640px) {
    .season-cards {
        grid-template-columns: 1fr;
    }
}

.unit-price-note {
    margin: 12px 0;
}

.unit-price-note.price-note {
    padding: 0.85rem 1rem;
    background: #f0f4ff;
    border-radius: 10px;
    border: 1px dashed rgba(13, 110, 253, 0.4);
    color: #0f2f5f;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
}

.unit-details .unit-promo-box {
    margin: 12px 0;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.5);
    color: #0f5132;
    font-size: 14px;
    line-height: 1.45;
}

.unit-details .unit-promo-box-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
}

.unit-details .unit-promo-box-list {
    margin: 0;
    padding-left: 18px;
    color: #111827;
}

.unit-details .unit-promo-box-list li {
    margin: 4px 0;
}

.unit-details .unit-promo-box-legend {
    margin-top: 8px;
    font-size: 12px;
    color: #1f5133;
}

.unit-price-extra {
    margin: 4px 0 0;
    font-size: 13px;
    color: #4b5563;
}

.unit-availability {
    margin: 10px 0 0;
}

.unit-availability h4 {
    margin: 0 0 8px;
}

.calendar-mini {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

.calendar-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.calendar-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.calendar-mini .day {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

.calendar-mini .is-free {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.calendar-mini .is-booked {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.calendar-mini-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.legend-box.is-free {
    background: #34d399;
}

.legend-box.is-booked {
    background: #f87171;
}

.view-unit {
    margin-top: 10px;
    padding: 10px 20px;
    background: #0071c2;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

/* ================================
   SIDEBAR CONTACT BOX (DESKTOP)
================================ */
/* ================================
   SIDEBAR CONTACT BOX (DESKTOP)
================================ */

.sidebar {
    width: 330px;
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-top: 20px;
}

.contact-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact-box h3 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 700;
}

.contact-box input,
.contact-box textarea,
.contact-box select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

.contact-box > button {
    width: 100%;
    padding: 14px 20px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s;
    box-sizing: border-box;
}

.contact-box > button:hover {
    background: #005fa3;
}

.contact-box--sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-box--sidebar input,
.contact-box--sidebar textarea,
.contact-box--sidebar select {
    margin-bottom: 0;
}

.contact-box--sidebar .form-field {
    margin: 0;
}

.contact-box--sidebar .price-estimate {
    margin-top: 4px;
}

.promo-spectrum-border {
    isolation: isolate;
}

.promo-spectrum-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: transparent;
    box-shadow:
         0 0 3px rgba(255, 0, 0, 0.65),
        0 0 10px rgba(255, 0, 0, 0.50),
        0 0 18px rgba(255, 0, 0, 0.30);
    filter: hue-rotate(0deg);
    animation: promo-glow-cycle 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes promo-glow-cycle {
    to {
        filter: hue-rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-spectrum-border::before {
        animation: none;
    }
}

/* ================================
   MOBILE STICKY CTA
================================ */

.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
    display: none; /* visible only on mobile */
    z-index: 30;
}

.mobile-cta button {
    width: 100%;
    padding: 14px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* ================================
   MOBILE CONTACT MODAL
================================ */

body.is-contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.contact-modal.active {
    pointer-events: auto;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.contact-modal.active .contact-modal-backdrop {
    opacity: 1;
}

.contact-modal .modal-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
    padding: 25px;
    max-height: min(92vh, 760px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

.contact-modal.active .modal-content {
    transform: translateY(0);
}

.contact-modal .modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-modal input,
.contact-modal textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-modal .modal-content > button:not(.close) {
    width: 100%;
    padding: 16px;
    background: #0071c2;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
}

.contact-modal .close {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    background: none;
    border: 0;
    padding: 0;
    color: #555;
    font-weight: 600;
    cursor: pointer;
}

/* ================================
   RESPONSIVE MEDIA QUERIES
================================ */

/* TABLET */
@media (max-width: 992px) {

    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

}

/* MOBILE */
@media (max-width: 768px) {

    .hero {
        height: 42vh;
        min-height: 300px;
    }

    .hero-content {
        bottom: 30px;
        left: 20px;
    }

    .hero-content .title {
        font-size: 28px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-main img {
        height: 260px;
    }

    .gallery-side-grid {
        display: none; /* postaje slider umjesto grid */
    }

    .mobile-cta {
        display: block;
    }

    section {
        margin-bottom: 40px;
    }
}

/* Širi sidebar i centriranje u odnosu na galeriju */
.sidebar {
    width: 380px;            /* bilo je 330px */
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-top: 20px;
}

/* Sidebar card malo “teži” */
.contact-box {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16); /* jača sjena */
}

/* da anchor skok ne sakrije naslov sekcije ispod sticky menija */
section {
    margin-bottom: 50px;
    scroll-margin-top: 90px;   /* NOVO */
}

/* Mapa više “mapasto” izgleda */
.map-section h2 {
    margin-bottom: 15px;
}

.map-placeholder {
    background: #d9d9d9;
    height: 360px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #c4c4c4;     /* NOVO */
}


/* ================================
   CONTACT SECTION – DONJA FORMA
================================ */

.contact h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.contact form {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    box-sizing: border-box;
    max-width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.contact form label,
.contact-box label,
.contact-modal label,
.modal-content label {
    font-weight: 600;
    font-size: 14px;
}

.contact form input,
.contact form textarea,
.contact form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

.contact form textarea {
    grid-column: 1 / -1;
    min-height: 110px;
    resize: vertical;
}

.contact form .stay-dates-input {
    grid-column: 1 / -1;
}

 .price-estimate {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
}

.price-estimate .estimate-line {
    margin: 2px 0;
}

.price-estimate .estimate-line.warn {
  color: #b45309;
  font-weight: 600;
}

.demo-promo-legend {
  margin-top: 8px;
  font-size: 12px;
  color: #03781a;
}

.demo-applied-promo {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  font-weight: 700;
  font-size: 14px;
}
.price-estimate .estimate-line.muted {
    color: #6b7280;
}

.estimate-hint {
    color: #6b7280;
    font-size: 13px;
}

.d-none {
    display: none !important;
}

/* Promo/estimate utility classes (Bootstrap-ish) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
    margin-right: 0.5rem;
}

.bg-success {
    background-color: #16a34a;
    color: #fff;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

.me-2 {
    margin-right: 0.5rem;
}

.text-muted {
    color: #6b7280;
}

.contact form > button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: flex-start;
    padding: 12px 24px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
}

.pets-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pets-row .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pets-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.pets-count-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pets-count {
    max-width: 120px;
}

.guests-hint {
    font-size: 0.9em;
    opacity: .8;
    margin-top: 6px;
}

.guest-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-stepper .stepper-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #111;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.guest-stepper .stepper-input {
    flex: 1 1 0;
    min-width: 88px;
    height: 44px;
    text-align: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}


/* ================================
   UNIT MODAL (FULL DESIGN)
================================ */

.unit-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.unit-modal.active {
    display: block;
}

.unit-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.unit-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 860px;
    max-width: 95%;
    background: white;
    border-radius: 12px;
    padding: 30px;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.unit-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.unit-modal h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.unit-modal__meta {
    color: #666;
    margin-bottom: 4px;
    font-size: 15px;
}

.unit-modal__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.unit-modal__gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.unit-modal__body h4 {
    font-size: 20px;
    margin: 18px 0 8px;
}

.unit-modal__body p {
    font-size: 16px;
    line-height: 1.6;
}

.unit-modal__contact {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.unit-modal__contact button {
    padding: 12px 20px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
}

/* ================================
   MOBILE VERSION OF MODAL
================================ */

@media (max-width: 768px) {

    .unit-modal__content {
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 20px 16px;
        transform: none;
        overflow-y: auto;
    }

    .unit-modal h3 {
        font-size: 22px;
    }

    .unit-modal__gallery {
        grid-template-columns: 1fr;
    }

    .unit-modal__gallery img {
        height: 200px;
    }

    .unit-modal__body p {
        font-size: 15px;
    }

    .unit-modal__body h4 {
        font-size: 18px;
    }

    .unit-modal__close {
        font-size: 32px;
        top: 10px;
        right: 14px;
    }
}

/* ================================
   MOBILE PREMIUM UPDATE (<= 768px)
================================ */

/* Gallery: 1 image per row */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr !important;
    }

    .gallery-main img {
        height: 240px;
    }

    .gallery-side-grid {
        display: none;
    }
}

/* Unit card: vertical layout */
@media (max-width: 768px) {
    .unit-card {
        flex-direction: column;
        padding: 14px;
    }

    .unit-thumb {
        width: 100%;
    }

    .unit-thumb img {
        width: 100%;
        height: 200px;
    }

    .unit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .unit-title {
        font-size: 18px;
    }

    .unit-meta {
        font-size: 14px;
    }

    .unit-from-price {
        margin-left: 0;
    }

    .unit-pricing-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .unit-pricing-price {
        justify-self: flex-start;
    }

    .unit-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .unit-gallery-grid .unit-gallery-item:nth-child(n+5) {
        display: none;
    }

    .unit-gallery-overlay--mobile {
        display: flex;
    }
}

/* Inquiry/contact visibility by breakpoint */
@media (min-width: 992px) {
    .contact-bottom {
        display: none !important;
    }
    .inquiry-modal {
        display: none !important;
    }
    .inquiry-sidebar {
        display: block;
    }
    .mobile-cta {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .inquiry-sidebar {
        display: none !important;
    }
    .inquiry-modal {
        display: none !important;
    }
    .contact-bottom {
        display: block;
    }
    .mobile-cta {
        display: none !important;
    }
}

/* Contact form: single column */
@media (max-width: 768px) {
    .contact form {
        grid-template-columns: 1fr;
    }

    .contact form > button[type="submit"] {
        width: 100%;
    }
}

/* Hero tweaks */
@media (max-width: 768px) {
    .hero-content .title {
        font-size: 26px;
    }

    .hero-content .location {
        font-size: 15px;
    }

    .hero-cta {
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* DEMO NAV: mobile hamburger behaviour */
@media (max-width: 768px) {
    .nav-bar--demo .nav-bar-inner {
        justify-content: space-between;
        padding: 10px 16px;
        gap: 10px;
    }

    .nav-bar--demo .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 18px 18px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 41;
    }

    .nav-bar--demo.nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-bar--demo .nav-toggle {
        display: inline-flex;
    }

    .nav-bar--demo .nav-language {
        width: auto;
        margin-left: 0;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .nav-language select {
        width: auto;
        font-size: 15px;
        padding: 8px 10px;
    }

    .nav-language-inline {
        margin-right: 50px;
    }

    .nav-brand-text {
        font-size: 17px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 40;
    }

    .nav-bar--demo.nav-open + .nav-overlay,
    .nav-bar--demo.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================================
   FINAL MOBILE POLISH (<= 768px)
   Veći fontovi, veća mapa/galerija, komforniji CTA
========================================= */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .page-wrapper {
        margin: 20px auto;
        padding: 0 14px;
        gap: 20px;
    }

    .nav-bar {
        gap: 14px;
        padding: 10px 6px;
    }

    .nav-bar a {
        font-size: 15px;
    }

    .hero {
        height: 56vh;
        min-height: 340px;
    }

    .hero-content {
        left: 14px;
        bottom: 16px;
    }

    .hero-content .title {
        font-size: 30px;
    }

    .hero-content .location {
        font-size: 16px;
    }

    .hero-content .contact-line {
        font-size: 14px;
    }

    .hero-cta {
        padding: 12px 20px;
        font-size: 16px;
    }

    .gallery-main img {
        height: 260px;
    }

    .map-placeholder {
        height: 260px;
    }

.unit-card {
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.unit-promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

    .unit-thumb img {
        height: 200px;
    }

    .unit-title {
        font-size: 19px;
    }

    .unit-meta {
        font-size: 15px;
    }

    .view-unit {
        font-size: 16px;
        padding: 12px;
    }

    .contact form {
        padding: 18px;
        gap: 12px 14px;
    }

    .contact form input,
    .contact form textarea {
        font-size: 16px;
        padding: 12px 14px;
    }

    .contact form > button[type="submit"] {
        font-size: 16px;
        padding: 12px 20px;
    }

    .mobile-cta button {
        font-size: 17px;
        padding: 14px;
    }
}

/* =========================================
   MOBILE READABILITY TUNE-UP (<= 768px)
   Veći fontovi, bolji layout, ugodniji dodiri
========================================= */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1, h2, h3 {
        margin: 0 0 12px;
    }

    .page-wrapper {
        margin: 24px auto;
        padding: 0 14px;
        gap: 22px;
    }

    section {
        margin-bottom: 32px;
    }

    .nav-bar {
        gap: 16px;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .nav-bar a {
        font-size: 15px;
    }

    .hero {
        height: 52vh;
        min-height: 320px;
    }

    .hero-content {
        bottom: 18px;
        left: 16px;
    }

    .hero-content .title {
        font-size: 28px;
    }

    .hero-content .location {
        font-size: 16px;
    }

    .hero-content .contact-line {
        font-size: 14px;
    }

    .hero-cta {
        padding: 12px 18px;
        font-size: 15px;
    }

    .gallery h2,
    .description h2,
    .units h2,
    .map-section h2,
    .micro-location h2,
    .contact h2 {
        font-size: 22px;
    }

    .description p,
    .micro-location p {
        font-size: 15px;
    }

    .gallery-main img {
        height: 240px;
    }

    .map-placeholder {
        height: 240px;
    }

    .unit-card {
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }

    .unit-title {
        font-size: 18px;
    }

    .unit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .unit-meta {
        font-size: 14px;
    }

    .contact form {
        padding: 18px;
        gap: 10px 12px;
    }

    .contact form input,
    .contact form textarea {
        font-size: 15px;
        padding: 10px 12px;
    }

    .contact form > button[type="submit"] {
        font-size: 16px;
        padding: 12px 18px;
    }

    .mobile-cta button {
        font-size: 16px;
    }
}

/* Dynamic gallery grid for demo */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(92%);
}

.gallery-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    border-radius: 10px;
}

.gallery-hidden-links,
.gallery-item--hidden {
    display: none;
}

.gallery-empty {
    background: #ffffff;
    border: 1px dashed #c5c5c5;
    padding: 14px 16px;
    border-radius: 10px;
    color: #555;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 0;
        padding-bottom: 12px;
    }

    .hero-media {
        position: relative;
        height: 320px;
    }

    .hero-thumbs {
        position: static;
        width: auto;
        margin: 10px 14px 0;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }

    .hero-thumb img {
        height: 70px;
    }

    .hero-description {
        color: #f8f8f8;
        font-size: 15px;
    }

    .gallery-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
    }
}

.unit-inquiry-btn {
    margin-top: 8px;
    padding: 10px 14px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.unit-inquiry-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.price-estimate {
    margin-top: 6px;
}

/* ================================
   BOOKING RANGE DATEPICKER (from public)
================================ */

.booking-range-container {
    position: relative;
    width: 100%;
}

.booking-range-input {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dfe3eb;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.booking-range-input[aria-disabled="true"] {
    cursor: default;
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.booking-range-input[aria-disabled="true"] .booking-range-text {
    color: #9ca3af;
    font-weight: 400;
}

.booking-range-input[aria-disabled="true"] .booking-range-icon {
    opacity: 0.5;
}

.booking-range-input[aria-disabled="true"] .booking-range-clear {
    cursor: default;
}

.booking-range-input:hover {
    border-color: #c1c7d6;
    background-color: #f9fafb;
}

.booking-range-input.is-open {
    border-color: #006ce4;
    box-shadow: 0 0 0 3px rgba(0, 108, 228, 0.18);
}

.booking-range-main {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.booking-range-text {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-range-text-start,
.booking-range-text-end {
    color: #1f2933;
    font-weight: 500;
}

.booking-range-text-start.is-placeholder,
.booking-range-text-end.is-placeholder {
    color: #6b7280;
    font-weight: 400;
}

.booking-range-separator {
    color: #6b7280;
    font-size: 0.9rem;
}

.booking-range-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.booking-range-clear {
    border: none;
    background: transparent;
    color: #6b7280;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.booking-range-clear:hover {
    background-color: #eef1f8;
    color: #111827;
}

.booking-range-clear:disabled {
    opacity: 0.35;
    cursor: default;
}

.booking-range-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e0e3ee;
    display: grid;
    place-items: center;
    position: relative;
    box-sizing: border-box;
}

.booking-range-icon::before,
.booking-range-icon::after {
    content: '';
    position: absolute;
    border-radius: 3px;
}

.booking-range-icon::before {
    width: 14px;
    height: 10px;
    border: 2px solid #006ce4;
    border-top-width: 4px;
}

.booking-range-icon::after {
    width: 8px;
    height: 2px;
    background: #006ce4;
    top: 8px;
    left: 9px;
    box-shadow: -4px 0 0 #006ce4;
}

.booking-overlay-anchor {
    position: relative;
}

.booking-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.12);
    z-index: 2000;
    padding: 1rem;
    width: 100vw;
}

.booking-overlay.hidden {
    display: none !important;
}

.booking-overlay.booking-overlay--inline {
    position: absolute;
    inset: auto;
    top: calc(100% + 10px);
    left: 0;
    width: min(890px, calc(100vw - 2rem));
    padding: 0;
    background: transparent;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 2100;
}

.contact-box--sidebar .booking-overlay.booking-overlay--inline {
    left: auto;
    right: 0;
}

.booking-overlay.booking-overlay--inline .booking-datepicker-panel {
    width: 100%;
    max-width: none;
    border-radius: 18px;
}

.booking-datepicker-panel {
    width: min(890px, 100vw - 2rem);
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 1.8rem 2rem;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(209, 213, 219, 0.8);
    box-sizing: border-box;
}

.booking-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.booking-month-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.booking-nav-btn,
.booking-close-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.booking-nav-btn:hover,
.booking-close-btn:hover {
    border-color: #006ce4;
    color: #006ce4;
    background-color: #f3f4ff;
}

.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .booking-overlay {
        width: calc(100vw - 1.5rem);
    }

    .booking-overlay.booking-overlay--inline {
        width: 100%;
    }

    .booking-datepicker-panel {
        padding: 1.2rem 1.1rem 1.5rem;
    }

    .booking-calendar-grid {
        grid-template-columns: 1fr;
        max-height: 70vh;
        overflow-y: auto;
        padding-right: 0.4rem;
    }
}

.booking-month {
    background: #ffffff;
    border-radius: 18px;
    padding: 0.7rem 0.8rem 0.9rem;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.booking-month-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.booking-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.booking-week-row span {
    text-align: center;
}

.booking-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.booking-day {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    min-height: 68px;
    padding: 0.35rem 0.25rem;
    text-align: center;
    line-height: 1.05;
    box-sizing: border-box;
}

.booking-day.empty {
    cursor: default;
    background: transparent;
}

.booking-day.disabled {
    cursor: default;
    color: #d1d5db;
}

.booking-day.promo:not(.disabled):not(.booked):not(.changeover) {
    background-color: rgba(22, 163, 74, 0.18);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.35);
}

.booking-day.booked {
    background-color: #fecaca;
    color: #b91c1c;
    cursor: default;
}

.booking-day.changeover {
    background-color: #fed7aa;
    color: #c05621;
    cursor: default;
}

.booking-day.today {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.booking-day-number {
    font-weight: 700;
    font-size: 0.95rem;
}

.booking-day-price {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
}

.booking-day.range-start .booking-day-price,
.booking-day.range-end .booking-day-price {
    color: #e5efff;
}

.booking-day.in-range .booking-day-price {
    color: #0f172a;
}

.booking-day.booked .booking-day-number,
.booking-day.changeover .booking-day-number {
    font-weight: 700;
}

.booking-day.range-start,
.booking-day.range-end {
    background-color: #006ce4 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    z-index: 2;
}

.booking-day.in-range {
    background-color: #e7f0ff !important;
    color: #1f2933 !important;
    border-radius: 999px !important;
    z-index: 1;
}

.booking-footer {
    margin-top: 0.5rem;
    text-align: center;
}

.booking-footnote {
    font-size: 0.78rem;
    color: #6b7280;
}

.booking-selection {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.booking-load-more {
    width: 100%;
    margin-top: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.booking-load-more:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.contact-box .booking-range-container {
    margin-bottom: 12px;
}

.contact-modal .booking-range-container {
    margin-bottom: 12px;
}

.contact-box .booking-range-input {
    padding: 12px 14px;
}

.contact-modal .booking-range-input {
    padding: 14px;
}

/* Desktop: show only sticky sidebar inquiry form */
@media (min-width: 993px) {
    section#contact.contact {
        display: none;
    }
}



/* Extra-small phones: keep controls inside card */
@media (max-width: 420px) {
    .contact form {
        padding: 14px;
        gap: 10px;
    }

    .contact form input,
    .contact form select,
    .contact form textarea {
        max-width: 100%;
    }

    .booking-range-input {
        gap: 0.5rem;
        padding: 10px 10px;
    }

    .booking-range-text {
        font-size: 14px;
    }

    .booking-range-icon {
        width: 28px;
        height: 28px;
    }

    .booking-range-clear {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }

    .contact form > button[type="submit"] {
        width: 100%;
        padding: 12px 14px;
        font-size: 15px;
    }
}

.hero-description,
#description p,
.unit-description p {
    white-space: pre-line;
}
