/* Hero rezervasyon — tarih seçici (izole sınıflar, çakışma yok) */

.hero-search-pro {
    position: relative;
    margin: 1.75rem 0 0.75rem;
    z-index: 50;
    max-width: 680px;
    width: 100%;
    color: #0f172a;
}

.hero-search-form {
    position: relative;
    width: 100%;
}

.hero-search-picker {
    position: relative;
    z-index: 40;
}

/* Popup — arama çubuğunun ALTINDA açılır (üst menüye takılmaz) */
.hero-search-cal {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    bottom: auto;
    z-index: 1100;
}

.hero-search-cal[hidden] {
    display: none !important;
}

.hero-search-cal-inner {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-width: min(100%, 640px);
    max-height: min(78vh, 560px);
    overflow-y: auto;
}

.hero-search-cal-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 16px 20px 8px;
}

.hero-search-cal-panels .hdp-month {
    padding: 0 8px 8px;
    min-width: 0;
}

.hero-search-cal-panels .hdp-month + .hdp-month {
    border-left: 1px solid #e8eef2;
    padding-left: 16px;
}

.hdp-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 32px;
}

.hdp-month-title {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #042f3f;
    margin: 0;
}

.hdp-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hdp-nav:hover {
    background: #e2e8f0;
    color: #042f3f;
}

.hdp-nav-spacer {
    width: 32px;
    flex-shrink: 0;
}

.hdp-dow {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0;
    margin: 0 0 6px;
    padding: 0;
    width: 100%;
}

.hdp-dow span {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 0;
}

.hdp-dow span.hdp-dow-closed {
    color: #f87171;
}

.hdp-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 3px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hdp-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    max-width: 36px;
    margin: 0 auto;
    min-height: 32px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    box-sizing: border-box;
}

.hdp-cell.hdp-empty {
    visibility: hidden;
    pointer-events: none;
}

.hdp-cell.hdp-past,
.hdp-cell.hdp-booked,
.hdp-cell.hdp-closed {
    color: #cbd5e1;
    cursor: not-allowed;
}

.hdp-cell.hdp-available:hover:not(:disabled) {
    background: #f0fdfa;
}

.hdp-cell.hdp-start,
.hdp-cell.hdp-end {
    border-color: #14b8a6;
    color: #042f3f;
    font-weight: 700;
    background: #fff;
}

.hdp-cell.hdp-in-range {
    background: rgba(20, 184, 166, 0.15);
    border-radius: 8px;
    border-color: transparent;
}

.hero-search-cal-hint {
    margin: 0;
    padding: 8px 20px 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.hero-search-cal-alerts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Saat seçici — takvimin altında, kompakt */
.hdp-time-section {
    padding: 12px 20px 14px;
    margin-top: 4px;
    border-top: 1px solid #e8eef2;
    background: #fff;
}

.hdp-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hdp-time-title {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hdp-time-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px;
}

.hdp-time-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 2px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.hdp-time-cell:hover:not(:disabled) {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.hdp-time-cell.is-selected {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.12);
    color: #042f3f;
}

.hdp-time-cell.hdp-time-off {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    font-size: 9px;
}

.hdp-office-alert,
.hdp-min-days-alert {
    margin: 0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    border-radius: 0;
    text-align: center;
}

.hdp-office-alert {
    color: #92400e !important;
    background: #fffbeb;
    border-top: 1px solid #fcd34d;
    border-bottom: 1px solid #fcd34d;
}

.hero .hero-search-cal .hdp-min-days-alert,
.hero-search-cal .hdp-min-days-alert {
    color: #ffffff !important;
    background: #dc2626;
    border: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.hdp-min-days-alert:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 5;
}

.hdp-office-alert[hidden],
.hdp-min-days-alert[hidden] {
    display: none !important;
}

/* Arama çubuğu */
.hero-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.hero-search-trigger {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: none;
    background: transparent;
    color: #042f3f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}

.hero-search-trigger-icon {
    color: #14b8a6;
    display: flex;
    flex-shrink: 0;
}

.hero-search-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-search-trigger-chevron {
    display: flex;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.hero-search-trigger.is-open .hero-search-trigger-chevron {
    transform: rotate(180deg);
}

.hero-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: none;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.hero-search-submit:hover {
    filter: brightness(1.05);
}

.hero-search-meta {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

.hero-search-meta .booking-field-delivery {
    margin: 0;
}

.hero-search-meta .field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.hero-search-meta select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}

/* Hero: popup kesilmesin */
.hero-home {
    overflow: visible;
    padding-bottom: 3rem;
}


.hero-home .hero-content {
    overflow: visible;
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    /* .reveal transform fixed konumlandırmayı bozar — takvim akışta açılsın */
    .hero-search-pro.reveal,
    .hero-search-pro.reveal.is-visible {
        transform: none;
    }

    .hero-search-cal {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-height: none;
        transform: none;
        overflow: visible;
        margin-top: 0;
        z-index: auto;
    }

    .hero-search-cal:not([hidden]) .hero-search-cal-inner {
        border-radius: 0 0 16px 16px;
        margin-top: -1px;
    }

    .hero-search-picker.is-cal-open .hero-search-bar {
        border-radius: 16px 16px 0 0;
    }

    .hero-search-picker.is-cal-open .hero-search-submit {
        border-radius: 0;
    }

    .hero-search-cal-inner {
        min-width: 0;
        max-height: none;
    }

    .hero-search-cal-panels {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .hero-search-cal-panels .hdp-month + .hdp-month {
        border-left: none;
        border-top: 1px solid #e8eef2;
        padding-left: 10px;
        padding-top: 14px;
        margin-top: 8px;
    }

    .hero-search-bar {
        flex-direction: column;
        border-radius: 16px;
    }

    .hero-search-trigger {
        padding: 14px 16px;
        border-bottom: 1px solid #e8eef2;
    }

    .hero-search-submit {
        width: 100%;
        padding: 14px;
        border-radius: 0 0 16px 16px;
    }

    .hdp-time-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hdp-time-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
