/* Explain: Styles for site header, cards, gallery, forms, FAQ, and calendar components. */
/* ===== Header ===== */
#siteHeader {
    transition: box-shadow 0.3s ease;
}

#siteHeader.is-scrolled {
    box-shadow: 0 12px 30px -22px rgba(43, 40, 35, 0.7);
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    font-family: inherit;
    background: none;
    border: 0;
}

.nav-dropdown-icon {
    font-size: 0.62rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.is-open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    z-index: 60;
    min-width: 15rem;
    padding: 0.5rem 0.35rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 26px 50px -30px rgba(43, 40, 35, 0.85);
}

.nav-dropdown.is-open .nav-dropdown-panel {
    display: block;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link i {
    width: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    background: var(--surface-alt);
    color: var(--primary-color);
}

/* Mobile panel — display handled here only */
#mobilePanel {
    display: none;
}

#mobilePanel.is-open {
    display: block;
}

@media (min-width: 1024px) {
    #mobilePanel,
    #mobilePanel.is-open {
        display: none;
    }
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
    color: var(--text-color);
    transition: color 0.25s ease;
}

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

/* ===== Hero ===== */
.hero-media {
    transform-origin: center;
    animation: heroZoom 22s ease-out both;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.reveal {
    animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-2 { animation-delay: 0.12s; }
.reveal-3 { animation-delay: 0.24s; }
.reveal-4 { animation-delay: 0.36s; }
.reveal-5 { animation-delay: 0.5s; }

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    height: auto;
    min-height: 3.25rem;
    padding-block: 0.85rem;
    white-space: normal;
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--text-color);
    border-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .hero-media,
    .reveal {
        animation: none;
    }
}

/* ===== Cards ===== */
.unit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -30px rgba(43, 40, 35, 0.75);
}

/* Slight left nudge so the pair of units sits more balanced on wide screens */
@media (min-width: 640px) {
    .unit-card--nudge {
        transform: translateX(-0.75rem);
    }

    .unit-card--nudge:hover {
        transform: translateX(-0.75rem) translateY(-4px);
    }
}

@media (min-width: 1024px) {
    .unit-card--nudge {
        transform: translateX(-1.5rem);
    }

    .unit-card--nudge:hover {
        transform: translateX(-1.5rem) translateY(-4px);
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.facility-card {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.facility-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.facility-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-color);
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 1.75rem 1.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.review-card::before {
    content: '\201D';
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 1.15rem;
    font-family: var(--font-heading);
    font-size: 3.25rem;
    line-height: 1;
    color: var(--border-color);
}

/* ===== Gallery + lightbox ===== */
.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--surface-alt);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.gallery-tile img {
    transition: transform 0.7s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 18, 15, 0.45), rgba(20, 18, 15, 0));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-tile:hover::after {
    opacity: 1;
}

.gallery-tile::after,
.gallery-tile img {
    border-radius: inherit;
}

.gallery-tile.gallery-circle {
    border-radius: 9999px;
}

.gallery-tile.is-hidden {
    display: none;
}

.gallery-filter {
    padding: 0.55rem 1.35rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.gallery-filter.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(18, 16, 13, 0.94);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-figure {
    max-width: min(1100px, 100%);
    max-height: 88vh;
    text-align: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    width: auto;
    object-fit: contain;
}

/* ===== Forms ===== */
.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.field-input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 90, 58, 0.14);
}

.field-input::placeholder {
    color: #9a9486;
}

select.field-input {
    cursor: pointer;
}

.form-card {
    padding: 1.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

@media (min-width: 768px) {
    .form-card {
        padding: 2.5rem;
    }
}

.summary-card {
    padding: 1.5rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.summary-row strong {
    font-weight: 600;
    color: var(--text-color);
}

.map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FAQ ===== */
.faq-item {
    overflow: hidden;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
}

.faq-item.is-open {
    border-color: var(--secondary-color);
    box-shadow: 0 18px 40px -32px rgba(43, 40, 35, 0.8);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 1.05rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    color: var(--text-color);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.25s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.25rem 1.35rem;
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--text-muted);
}

/* ===== Partner links ===== */
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 100%;
    min-height: 9.5rem;
    padding: 1.35rem 0.9rem;
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 18px 40px -32px rgba(43, 40, 35, 0.8);
}

.partner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    background: var(--surface-alt);
    border-radius: 999px;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.partner-sub {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ===== Owner calendar ===== */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.25rem;
    padding: 0.35rem 0.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--text-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cal-cell:hover {
    border-color: var(--primary-color);
}

.cal-cell--empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.cal-cell.is-past {
    color: #b5ae9f;
    background: transparent;
    cursor: not-allowed;
}

.cal-cell.is-past:hover {
    border-color: var(--border-color);
}

.cal-cell.is-blocked-u0 {
    color: var(--unit-green-text);
    background: var(--unit-green);
    border-color: var(--unit-green);
}

.cal-cell.is-blocked-u1 {
    color: var(--unit-yellow-text);
    background: var(--unit-yellow);
    border-color: var(--unit-yellow);
}

.cal-cell.is-blocked-both {
    color: var(--unit-yellow-text);
    background: linear-gradient(115deg, var(--unit-green) 0 50%, var(--unit-yellow) 50% 100%);
    border-color: var(--unit-green);
}

.cal-cell.is-selected {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--background-color), 0 0 0 4px var(--text-color);
}

.cal-cell.is-today {
    box-shadow: inset 0 0 0 2px var(--accent-color);
}

.cal-day {
    font-weight: 600;
}

.cal-mark {
    font-size: 0.6rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.cal-legend {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.cal-legend--u0 {
    background: var(--unit-green);
    border-color: var(--unit-green);
}

.cal-legend--u1 {
    background: var(--unit-yellow);
    border-color: var(--unit-yellow);
}

.cal-legend--both {
    background: linear-gradient(115deg, var(--unit-green) 0 50%, var(--unit-yellow) 50% 100%);
    border-color: var(--unit-green);
}

.cal-legend--selected {
    background: var(--background-color);
    box-shadow: 0 0 0 2px var(--background-color), 0 0 0 3px var(--text-color);
}

.cal-cell.is-range::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 1.4rem;
    max-width: 55%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%);
}

.cal-cell--static {
    cursor: default;
}

.cal-cell:disabled {
    cursor: not-allowed;
}

.cal-blocked-list {
    margin-top: 1rem;
    padding-top: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
}

/* ===== Unit pick button — color follows the unit it belongs to ===== */
.unit-pick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.32rem 0.95rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--text-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* יורט 1 — ירוק */
.unit-pick-btn--u0 {
    color: var(--unit-green);
    border-color: var(--unit-green);
}

.unit-pick-btn--u0:hover,
.unit-pick-btn--u0.is-active {
    color: var(--unit-green-text);
    background: var(--unit-green);
    border-color: var(--unit-green);
}

/* יורט 2 — צהוב */
.unit-pick-btn--u1 {
    color: var(--unit-yellow-text);
    background: color-mix(in srgb, var(--unit-yellow) 34%, var(--background-color));
    border-color: var(--unit-yellow);
}

.unit-pick-btn--u1:hover,
.unit-pick-btn--u1.is-active {
    color: var(--unit-yellow-text);
    background: var(--unit-yellow);
    border-color: var(--unit-yellow);
}

.unit-pick-btn.is-active {
    font-weight: 700;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-color) 22%, transparent);
}

@media (max-width: 480px) {
    .cal-cell {
        min-height: 2.7rem;
        font-size: 0.85rem;
    }
}