/* =========================================================
   VILLA ISTRA KAMENJAK - zajednicki stil za sve stranice
   Fontovi: Playfair Display (naslovi) + Jost (tekst)
   ========================================================= */

:root {
    /* Boje */
    --sand: #f5f2ea;          /* glavna pozadina */
    --sand-dark: #ebe5d7;     /* alternativne sekcije */
    --white: #ffffff;
    --ink: #13233a;           /* glavni tekst i naslovi */
    --muted: #5d6673;         /* podnaslovi, sporedni tekst */
    --primary: #23496e;       /* morsko plava - gumbi, ikone */
    --primary-dark: #163452;  /* hover, footer */
    --primary-soft: #e3ebf3;  /* pozadina ikona */
    --olive: #7d8650;         /* mali naglasci */
    --line: #ddd5c4;          /* tanke linije */

    /* Fontovi */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

    /* Razmaci i oblici */
    --section-space: 88px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(19, 35, 58, 0.08);
    --shadow-hover: 0 14px 32px rgba(19, 35, 58, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--sand);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s, background-color 0.25s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Gumbi ---------- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-light {
    background-color: var(--white);
    color: var(--ink);
}

.btn-light:hover {
    background-color: var(--sand);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- Navigacija ---------- */
.navbar {
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
}

.navbar-overlay {           /* naslovna: preko velike slike */
    position: absolute;
    top: 0;
    left: 0;
    color: var(--white);
}

.navbar-solid {             /* stranice soba */
    position: sticky;
    top: 0;
    background-color: rgba(245, 242, 234, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    color: var(--ink);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links a:not(.btn):hover {
    opacity: 0.7;
}

.nav-links .btn {
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

/* ---------- Hero (naslovna) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.25) 50%, rgba(10, 22, 40, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--white);
}

.hero-title {
    font-size: 76px;
    font-style: italic;
    font-weight: 500;
    color: var(--white);
    margin: 8px 0 12px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    color: var(--white);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin: 16px 0 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Traka s prednostima ---------- */
.features-bar {
    background-color: var(--white);
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 16px;
}

.feature-item i {
    font-size: 20px;
    color: var(--primary);
}

/* ---------- Sekcije ---------- */
.section {
    padding: var(--section-space) 0;
}

.section-alt {
    background-color: var(--sand-dark);
}

.section-white {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 38px;
}

.section-title p {
    font-size: 18px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 10px;
}

.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background-color: var(--olive);
    margin: 20px auto 0;
}

/* ---------- Kartice apartmana ---------- */
.apartment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.apartment-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.apartment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.apartment-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.apartment-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.apartment-info h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.apartment-info .features {
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 20px;
    flex: 1;
}

.apartment-info .btn {
    align-self: flex-start;
    padding: 10px 26px;
    font-size: 14px;
}

/* ---------- Aktivnosti ---------- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.activity-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.activity-card p {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 19px;
}

/* ---------- Ikone s tekstom ---------- */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-icon-text {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 20px;
    box-shadow: var(--shadow);
}

.feature-icon-text i,
.amenity-card i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-text span {
    display: block;
    font-weight: 500;
}

/* ---------- Kontakt ---------- */
.contact-box {
    background: var(--white);
    padding: 56px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
}

.contact-box h3 {
    font-size: 24px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-weight: 500;
}

.contact-item span,
.contact-item a {
    color: var(--muted);
}

.contact-item a:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--sand);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.25s, background-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
}

/* ---------- Stranice apartmana ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--muted);
    margin: 28px 0 20px;
}

.back-link:hover {
    color: var(--primary);
}

.slider-container {
    width: 100%;
    height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background-color: var(--sand-dark);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background-color 0.25s;
}

.arrow:hover {
    background: var(--white);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    border: none;
    padding: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.25);
}

.apartment-header {
    text-align: center;
    padding: 56px 0 40px;
}

.apartment-header h1 {
    font-size: 48px;
}

.apartment-header p {
    font-size: 19px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 10px;
}

.apartment-header::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background-color: var(--olive);
    margin: 22px auto 0;
}

.description {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--ink);
}

.amenities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.amenity-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

.amenity-card p {
    font-size: 15px;
    font-weight: 500;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-card h3 i {
    color: var(--primary);
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--muted);
}

.detail-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--olive);
}

.detail-card .note {
    font-size: 16px;
    color: var(--muted);
}

/* Poziv na rezervaciju */
.cta-band {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 72px 0;
}

.cta-band h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 12px;
}

.cta-band p {
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

footer .footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
}

/* =========================================================
   PRILAGODBA ZA TABLET I MOBITEL
   ========================================================= */
@media (max-width: 1024px) {
    .apartment-grid { grid-template-columns: repeat(2, 1fr); }
    .features-row { grid-template-columns: repeat(2, 1fr); }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-container { height: 460px; }
}

@media (max-width: 768px) {
    :root { --section-space: 60px; }

    body { font-size: 16px; }

    .nav-logo { font-size: 18px; letter-spacing: 1.5px; }
    .nav-links { gap: 16px; }
    .nav-links .hide-mobile { display: none; }
    .nav-links .btn { padding: 8px 18px; font-size: 12px; }

    .hero-title { font-size: 52px; }
    .hero-tagline { font-size: 24px; }
    .hero-eyebrow { font-size: 13px; letter-spacing: 4px; }

    .features-grid { flex-direction: column; align-items: center; gap: 12px; }

    .section-title h2,
    .cta-band h2 { font-size: 30px; }

    .activity-grid,
    .details-grid { grid-template-columns: 1fr; }

    .contact-box { padding: 32px 22px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    .slider-container { height: 320px; }
    .arrow { width: 40px; height: 40px; font-size: 15px; }
    .prev-arrow { left: 12px; }
    .next-arrow { right: 12px; }

    .apartment-header { padding: 40px 0 28px; }
    .apartment-header h1 { font-size: 36px; }

    .amenities-container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 540px) {
    .apartment-grid,
    .features-row { grid-template-columns: 1fr; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
}

/* fokus samo za tipkovnicu, ne nakon klika misem */
.dot:focus, .arrow:focus { outline: none; }
.dot:focus-visible, .arrow:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* =========================================================
   KALENDAR DOSTUPNOSTI I UPIT
   ========================================================= */
.price-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.price-chip {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 180px;
}

.price-chip span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.price-chip strong {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
}

.price-chip small {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.cal-card,
.inquiry-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cal-range {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.cal-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s;
}

.cal-arrow:hover:not(:disabled) {
    background: var(--sand);
    border-color: var(--primary);
}

.cal-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.cal-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.cal-month h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
    color: var(--ink);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-dow {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    padding-bottom: 6px;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.05;
    border: none;
    border-radius: 8px;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
    cursor: pointer;
    line-height: 1.15;
    transition: background-color 0.15s, color 0.15s;
}

.cal-day span {
    font-size: 15px;
    font-weight: 500;
}

.cal-day small {
    font-size: 10.5px;
    color: var(--olive);
    font-weight: 500;
}

.cal-day:hover:not(:disabled) {
    background: var(--primary-soft);
}

.cal-day.is-today span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cal-day.is-past {
    background: transparent;
    color: #c4bfb3;
    cursor: default;
}

.cal-day.is-booked {
    background: #f1e4e1;
    color: #b08a84;
    cursor: default;
}

.cal-day.is-booked span {
    text-decoration: line-through;
}

.cal-day.is-booked:not(:disabled) {
    cursor: pointer;
}

.cal-day.in-range {
    background: var(--primary-soft);
    border-radius: 0;
}

.cal-day.is-start,
.cal-day.is-end {
    background: var(--primary);
    color: var(--white);
}

.cal-day.is-start small,
.cal-day.is-end small,
.cal-day.in-range small {
    color: inherit;
    opacity: 0.85;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lg {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.lg-free { background: var(--sand); border: 1px solid var(--line); }
.lg-booked { background: #f1e4e1; }
.lg-selected { background: var(--primary); }

.inquiry-card {
    position: sticky;
    top: 96px;
}

.inquiry-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.stay-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--sand);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.stay-dates small {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.stay-dates strong {
    font-weight: 500;
    font-size: 15px;
}

.stay-dates i {
    color: var(--olive);
}

.stay-summary {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.stay-summary .hint {
    font-size: 15px;
    color: var(--muted);
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    padding: 4px 0;
}

.sum-row em {
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
}

.sum-total {
    font-weight: 600;
    font-size: 17px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.warn {
    margin-top: 10px;
    font-size: 14px;
    color: #a0522d;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.form-msg {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.form-msg.is-ok { color: #3d7a4f; }
.form-msg.is-error { color: #a0522d; }

@media (max-width: 1024px) {
    .booking-layout { grid-template-columns: 1fr; }
    .inquiry-card { position: static; }
}

@media (max-width: 540px) {
    .cal-card, .inquiry-card { padding: 20px 14px; }
    .cal-grid { gap: 2px; }
    .cal-day span { font-size: 14px; }
    .cal-day small { font-size: 9.5px; }
    .price-chip { min-width: 0; flex: 1 1 140px; padding: 12px 10px; }
}

.header-btn {
    margin-top: 24px;
}

/* sidrene poveznice ne idu ispod gornje trake */
section[id] { scroll-margin-top: 70px; }

/* =========================================================
   DORADA TIPOGRAFIJE I RAZMAKA
   ========================================================= */

/* ravne brojke (Playfair inace ima "plesuce" brojke) */
body, h1, h2, h3, h4, .price-chip strong, .cal-range {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

h2 { letter-spacing: -0.3px; }

/* podnaslovi malo puniji i citljiviji */
.section-title p,
.apartment-header p,
.apartment-info .features,
.hero-subtitle,
.description,
.cta-band p {
    font-weight: 400;
}

.section-title p { font-size: 18px; }

.section-title { margin-bottom: 52px; }

/* hero: citljiviji tekst preko fotografije */
.hero-overlay {
    background:
        radial-gradient(ellipse at center, rgba(10, 22, 40, 0.45) 0%, rgba(10, 22, 40, 0.15) 70%),
        linear-gradient(to bottom, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.2) 45%, rgba(10, 22, 40, 0.5) 100%);
}

.hero-content { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }

.hero-title { line-height: 1.05; margin: 14px 0 10px; }

.hero-tagline { font-style: italic; font-size: 28px; }

.hero-subtitle { font-size: 17px; letter-spacing: 0.5px; margin: 14px 0 38px; }

.btn-outline { background-color: rgba(255, 255, 255, 0.08); backdrop-filter: blur(2px); }

.hero .btn { text-shadow: none; }

/* kartice apartmana */
.apartment-info { padding: 24px 24px 26px; }
.apartment-info .features { font-size: 16px; margin-bottom: 22px; }

/* zaglavlje sobe: linija ide izmedju podnaslova i gumba */
.apartment-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 0 12px;
}

.apartment-header h1 { font-size: 50px; }

.apartment-header::after { order: 3; margin: 22px auto 26px; }

.apartment-header .header-btn { order: 4; margin-top: 0; }

.apartment-header + .section,
main > .container + .section { padding-top: 64px; }

.description { margin-top: 8px; line-height: 1.8; }

/* pogodnosti: centrirane, bez "viseceg" zadnjeg reda */
.amenities-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1060px;
}

.amenity-card { flex: 0 1 188px; padding: 30px 16px 26px; }

.amenity-card i { margin-bottom: 14px; }

/* kartice s opremom */
.detail-card h3 { font-size: 21px; }
.detail-card li { line-height: 1.6; }

/* kalendar */
.cal-nav {
    position: relative;
    z-index: 1;
    margin-bottom: -40px;
    pointer-events: none;
}

.cal-nav .cal-arrow { pointer-events: auto; }

.cal-range {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.cal-month h4 { line-height: 40px; margin-bottom: 8px; }

.cal-day small { font-size: 11px; }

.price-chips { margin-bottom: 32px; }

.price-chip strong { display: block; margin: 2px 0; }

.inquiry-card h3 { font-size: 26px; }

.stay-summary .hint { line-height: 1.6; }

/* kontakt */
.contact-box h3 { margin-bottom: 26px; }

/* mobitel */
@media (max-width: 768px) {
    .section-title { margin-bottom: 40px; }
    .section-title p { font-size: 17px; }

    .hero-title { font-size: 56px; }
    .hero-tagline { font-size: 23px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 32px; }
    .hero-buttons { gap: 12px; }
    .hero-buttons .btn { width: 100%; max-width: 260px; padding: 12px 24px; }

    .apartment-header { padding: 36px 0 4px; }
    .apartment-header h1 { font-size: 38px; }
    .apartment-header p { font-size: 17px; }
    .apartment-header + .section,
    main > .container + .section { padding-top: 48px; }

    .amenities-container { gap: 12px; }
    .amenity-card {
        flex: 0 1 calc(50% - 6px);
        padding: 20px 10px 18px;
    }
    .amenity-card i { width: 52px; height: 52px; font-size: 20px; margin-bottom: 10px; }
    .amenity-card p { font-size: 14px; line-height: 1.4; }

    .detail-card { padding: 24px 22px; }
    .detail-card h3 { font-size: 20px; }

    .cal-month h4 { font-size: 14px; }
    .contact-box h3 { font-size: 22px; }
}

/* =========================================================
   PREKIDAC JEZIKA (EN / DE) u izborniku
   ========================================================= */
.lang-switch {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.lang-switch .lang-current {
    padding: 4px 8px;
}

.lang-switch a {
    padding: 4px 8px;
    border-left: 1px solid currentColor;
    opacity: 0.65;
    transition: opacity 0.25s;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .lang-switch { font-size: 12px; letter-spacing: 1px; }
    .lang-switch .lang-current,
    .lang-switch a { padding: 4px 6px; }
}

/* uski mobiteli: logo, jezik i gumb stanu u jedan red */
@media (max-width: 420px) {
    .nav-logo { font-size: 16px; letter-spacing: 1px; }
    .nav-links { gap: 8px; }
    .nav-links .btn { padding: 7px 13px; letter-spacing: 1px; }
    .lang-switch .lang-current,
    .lang-switch a { padding: 3px 5px; }
}

@media (max-width: 360px) {
    .navbar .container { padding: 0 16px; }
    .nav-logo { font-size: 15px; letter-spacing: 0.5px; }
    .nav-links { gap: 6px; }
    .nav-links .btn { padding: 7px 11px; font-size: 11px; }
}
