
/* =========================================================
   ANTALYA TURLARI — HERO RESERVATION CLEAN REBUILD V1
   Sadece hm27 namespace. Eski modal/takvim/saat CSS'inden bağımsız.
   ========================================================= */

html.hm27-open,
body.hm27-open{
    overflow:hidden!important;
    overscroll-behavior:none!important;
}

.hm27-layer[hidden],
.hm27-modal[hidden]{
    display:none!important;
}

.hm27-layer{
    position:fixed;
    inset:0;
    z-index:2147482000;
    display:grid;
    place-items:center;
    padding:22px;
    isolation:isolate;
}

.hm27-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    padding:0;
    background:rgba(0,18,31,.76);
    backdrop-filter:blur(11px);
    -webkit-backdrop-filter:blur(11px);
    cursor:default;
}

.hm27-modal{
    --hm27-accent:#15c5d8;
    --hm27-accent2:#169dd6;

    position:relative;
    z-index:2;
    width:min(720px,calc(100vw - 44px));
    max-height:min(780px,calc(100dvh - 44px));
    display:flex;
    flex-direction:column;
    overflow:hidden;

    border:1px solid rgba(109,218,235,.48);
    border-radius:22px;

    color:#fff;
    background:
        radial-gradient(circle at 100% 0%,rgba(28,165,202,.14),transparent 35%),
        linear-gradient(180deg,#08354c 0%,#062d42 100%);

    box-shadow:
        0 35px 110px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.hm27-modal--vip{
    --hm27-accent:#16bde0;
    --hm27-accent2:#2d77dc;
}

.hm27-modal--hotel{
    --hm27-accent:#ff9a24;
    --hm27-accent2:#ff641f;
    border-color:rgba(255,145,58,.55);
}

.hm27-head{
    flex:0 0 auto;
    min-height:96px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 24px;
    border-bottom:1px solid rgba(255,255,255,.11);
    background:rgba(255,255,255,.015);
}

.hm27-title{
    min-width:0;
    display:flex;
    align-items:center;
    gap:14px;
}

.hm27-icon{
    flex:0 0 46px;
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:13px;
    color:var(--hm27-accent);
    background:rgba(0,0,0,.10);
}

.hm27-icon svg{
    width:29px;
    height:29px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hm27-title h2{
    margin:0;
    color:#fff;
    font-size:21px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.02em;
}

.hm27-title p{
    margin:5px 0 0;
    color:#b7cad4;
    font-size:10px;
    line-height:1.3;
    font-weight:600;
}

.hm27-close{
    flex:0 0 40px;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.16);
    border-radius:12px;
    color:#fff;
    background:rgba(255,255,255,.07);
    font:inherit;
    font-size:27px;
    line-height:1;
    cursor:pointer;
    transition:.18s ease;
}

.hm27-close:hover{
    background:rgba(255,255,255,.13);
    transform:translateY(-1px);
}

.hm27-body{
    min-height:0;
    flex:1 1 auto;
    overflow-y:auto;
    overflow-x:hidden;
    padding:22px 24px 24px;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(130,193,210,.55) transparent;
}

.hm27-body::-webkit-scrollbar{width:7px}
.hm27-body::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:rgba(130,193,210,.55);
}

.hm27-form{
    margin:0;
}

.hm27-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.hm27-field{
    min-width:0;
    display:grid;
    gap:7px;
}

.hm27-field--wide{
    grid-column:1/-1;
}

.hm27-field > span:first-child{
    color:#e9f5f8;
    font-size:10px;
    line-height:1;
    font-weight:900;
}

.hm27-control{
    min-width:0;
    height:54px;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    align-items:center;
    overflow:hidden;

    border:1px solid #d9e3e8;
    border-radius:11px;
    color:#233d52;
    background:#f7f9fb;
    transition:border-color .16s ease,box-shadow .16s ease;
}

.hm27-control:focus-within{
    border-color:var(--hm27-accent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--hm27-accent) 16%,transparent);
}

.hm27-control i{
    width:40px;
    display:grid;
    place-items:center;
    color:#26485e;
    font-style:normal;
    font-size:16px;
}

.hm27-control input,
.hm27-control select{
    width:100%;
    min-width:0;
    height:52px;
    margin:0;
    padding:0 14px 0 0;
    border:0;
    outline:0;
    color:#40586c;
    background:transparent;
    font:inherit;
    font-size:12px;
    font-weight:750;
}

.hm27-control input[type="date"]{
    appearance:auto;
    -webkit-appearance:auto;
    color-scheme:light;
}

.hm27-control select{
    cursor:pointer;
}

.hm27-counter{
    height:54px;
    display:grid;
    grid-template-columns:56px 1fr 56px;
    overflow:hidden;
    border:1px solid #d9e3e8;
    border-radius:11px;
    background:#f7f9fb;
}

.hm27-counter button{
    border:0;
    color:#15384d;
    background:#edf4f7;
    font:inherit;
    font-size:23px;
    font-weight:800;
    cursor:pointer;
}

.hm27-counter button:hover{
    background:#e2f1f5;
}

.hm27-counter > span{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    color:#19394e;
    background:#fff;
    font-size:12px;
    font-weight:700;
}

.hm27-counter strong{
    font-size:15px;
}

.hm27-return{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-top:14px;
    padding:15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(255,255,255,.035);
}

.hm27-return[hidden]{
    display:none!important;
}

.hm27-check{
    margin-top:16px;
    min-height:62px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 14px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:14px;
    background:rgba(255,255,255,.035);
    cursor:pointer;
}

.hm27-check input{
    flex:0 0 20px;
    width:20px;
    height:20px;
    accent-color:var(--hm27-accent);
}

.hm27-check span{
    display:grid;
    gap:3px;
}

.hm27-check strong{
    color:#f3fbfd;
    font-size:11px;
}

.hm27-check small{
    color:#9fb6c2;
    font-size:9px;
}

.hm27-note{
    margin-top:16px;
    padding:11px 13px;
    border-radius:10px;
    color:#a9c1cd;
    background:rgba(0,0,0,.12);
    font-size:9px;
    text-align:center;
}

.hm27-feedback{
    margin-top:14px;
    padding:10px 12px;
    border:1px solid rgba(255,92,92,.35);
    border-radius:10px;
    color:#ffd8d8;
    background:rgba(160,23,37,.38);
    font-size:10px;
}

.hm27-feedback[hidden]{display:none!important}

.hm27-submit{
    width:100%;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:16px;
    padding:0 18px;
    border:0;
    border-radius:11px;
    color:#fff;
    background:linear-gradient(90deg,var(--hm27-accent),var(--hm27-accent2));
    box-shadow:0 10px 25px color-mix(in srgb,var(--hm27-accent) 14%,transparent);
    font:inherit;
    font-size:12px;
    font-weight:950;
    cursor:pointer;
    transition:transform .18s ease,filter .18s ease;
}

.hm27-submit:hover{
    transform:translateY(-1px);
    filter:brightness(1.05);
}

.hm27-submit span{
    font-size:20px;
}

/* Tablet */
@media (max-width:900px) and (min-width:768px){
    .hm27-layer{padding:18px}
    .hm27-modal{
        width:min(680px,calc(100vw - 36px));
        max-height:calc(100dvh - 36px);
    }
}

/* Mobile = real fullscreen */
@media (max-width:767px){
    .hm27-layer{
        display:block;
        padding:0;
    }

    .hm27-backdrop{
        display:none;
    }

    .hm27-modal{
        position:fixed;
        inset:0;
        width:100vw;
        max-width:none;
        height:100dvh;
        max-height:100dvh;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .hm27-head{
        position:sticky;
        top:0;
        z-index:5;
        min-height:78px;
        padding:14px 15px;
        background:#08354c;
    }

    .hm27-icon{
        flex-basis:42px;
        width:42px;
        height:42px;
        border-radius:11px;
    }

    .hm27-icon svg{
        width:25px;
        height:25px;
    }

    .hm27-title{
        gap:10px;
    }

    .hm27-title h2{
        font-size:18px;
    }

    .hm27-title p{
        font-size:9px;
    }

    .hm27-close{
        flex-basis:38px;
        width:38px;
        height:38px;
        border-radius:10px;
        font-size:24px;
    }

    .hm27-body{
        height:calc(100dvh - 78px);
        padding:18px 12px calc(24px + env(safe-area-inset-bottom));
    }

    .hm27-grid,
    .hm27-return{
        grid-template-columns:1fr;
        gap:13px;
    }

    .hm27-field--wide{
        grid-column:auto;
    }

    .hm27-control,
    .hm27-counter{
        height:56px;
        border-radius:12px;
    }

    .hm27-control input,
    .hm27-control select{
        height:54px;
        font-size:13px;
    }

    .hm27-field > span:first-child{
        font-size:10.5px;
    }

    .hm27-counter{
        grid-template-columns:58px 1fr 58px;
    }

    .hm27-submit{
        position:sticky;
        bottom:0;
        z-index:4;
        min-height:56px;
        margin-top:18px;
        border-radius:12px;
        box-shadow:0 -10px 25px rgba(4,37,52,.24);
    }

    .hm27-check{
        align-items:flex-start;
    }
}

/* Small mobile */
@media (max-width:390px){
    .hm27-head{
        min-height:72px;
        padding:12px 11px;
    }

    .hm27-body{
        height:calc(100dvh - 72px);
        padding:15px 9px calc(20px + env(safe-area-inset-bottom));
    }

    .hm27-title h2{
        font-size:16px;
    }

    .hm27-title p{
        display:none;
    }

    .hm27-control,
    .hm27-counter{
        height:53px;
    }

    .hm27-control input,
    .hm27-control select{
        height:51px;
        font-size:12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
    .hm27-close,
    .hm27-submit{
        transition:none!important;
    }
}


/* =========================================================
   HM27 CUSTOM AVAILABILITY CALENDAR — FINAL
   Admin tarih/kontenjan ile Boş / Dolmak Üzere / Dolu
   ========================================================= */
.hm27-control:has(.hm27-date-button){grid-template-columns:40px minmax(0,1fr)}
.hm27-control:has(.hm27-date-button) > i{display:grid}
.hm27-date-button{
    width:100%;height:52px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:0 13px 0 0;border:0;outline:0;color:#40586c;background:transparent;font:inherit;font-size:12px;font-weight:750;cursor:pointer;text-align:left
}
.hm27-date-button b{font-size:15px;color:#223d51;font-weight:700}
.hm27-date-button.is-filled span{color:#17384d;font-weight:850}

.hm27-calendar[hidden]{display:none!important}
.hm27-calendar{
    position:fixed;z-index:2147483500;width:344px;padding:13px;border:1px solid rgba(39,203,219,.48);border-radius:18px;
    color:#eefcff;background:linear-gradient(180deg,#0a3c55 0%,#073149 58%,#062a3e 100%);
    box-shadow:0 26px 80px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.04)
}
.hm27-calendar__top{min-height:48px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.1)}
.hm27-calendar__top>div{text-align:center;display:grid;gap:2px}
.hm27-calendar__top strong{font-size:14px;color:#fff}
.hm27-calendar__top small{font-size:9px;color:#95b5c3}
.hm27-calendar__nav{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.13);border-radius:10px;color:#fff;background:rgba(255,255,255,.055);font:inherit;font-size:24px;cursor:pointer}
.hm27-calendar__nav:hover{background:rgba(255,255,255,.11)}
.hm27-calendar__week,.hm27-calendar__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.hm27-calendar__week{padding:10px 0 5px}
.hm27-calendar__week span{text-align:center;color:#8faebb;font-size:9px;font-weight:900}
.hm27-calendar__day{position:relative;min-width:0;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.08);border-radius:9px;color:#eaf9fc;background:rgba(255,255,255,.035);font:inherit;font-size:11px;font-weight:850;cursor:pointer}
.hm27-calendar__day::after{content:"";position:absolute;right:5px;top:5px;width:5px;height:5px;border-radius:50%;background:#31df9b;box-shadow:0 0 0 2px rgba(49,223,155,.11)}
.hm27-calendar__day.is-near{border-color:rgba(255,177,54,.55);background:rgba(255,154,31,.08)}
.hm27-calendar__day.is-near::after{background:#ffae35;box-shadow:0 0 0 2px rgba(255,174,53,.12)}
.hm27-calendar__day.is-full{border-color:rgba(255,82,101,.45);color:#aebbc1;background:rgba(255,74,94,.08);cursor:not-allowed}
.hm27-calendar__day.is-full::after{background:#ff5068;box-shadow:0 0 0 2px rgba(255,80,104,.12)}
.hm27-calendar__day.is-closed{opacity:.28;cursor:not-allowed}
.hm27-calendar__day.is-closed::after{display:none}
.hm27-calendar__day.is-past{opacity:.18;cursor:not-allowed}
.hm27-calendar__day.is-past::after{display:none}
.hm27-calendar__day.is-other{opacity:.18;pointer-events:none}
.hm27-calendar__day:hover:not(.is-full):not(.is-closed):not(.is-past):not(.is-other){transform:translateY(-1px);border-color:var(--hm27-accent,#16c5d8);background:rgba(26,192,213,.12)}
.hm27-calendar__day.is-selected{color:#fff;border-color:#6f56ff!important;background:linear-gradient(145deg,#5369ff,#7550ef)!important;box-shadow:0 6px 15px rgba(100,78,245,.34)}
.hm27-calendar__day.is-selected::after{background:#fff}
.hm27-calendar__legend{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid rgba(255,255,255,.09);color:#a9c0ca;font-size:8.5px;font-weight:750}
.hm27-calendar__legend span{display:flex;align-items:center;gap:5px}
.hm27-calendar__legend i{width:7px;height:7px;border-radius:50%;background:#31df9b}
.hm27-calendar__legend i.is-near{background:#ffae35}.hm27-calendar__legend i.is-full{background:#ff5068}
.hm27-calendar__foot{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}
.hm27-calendar__foot small{color:#7797a5;font-size:7.5px;line-height:1.3}.hm27-calendar__foot button{border:0;color:#35dce5;background:transparent;font:inherit;font-size:9px;font-weight:900;cursor:pointer}

@media(max-width:767px){
 .hm27-calendar{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;max-height:76dvh;overflow-y:auto;border-radius:20px;padding:12px}
 .hm27-calendar__day{height:42px;font-size:12px}.hm27-calendar__week,.hm27-calendar__grid{gap:4px}.hm27-calendar__top{position:sticky;top:-12px;z-index:3;background:#0a3c55;padding-top:9px}
}
@media(max-width:390px){
 .hm27-calendar{left:5px!important;right:5px!important;bottom:calc(5px + env(safe-area-inset-bottom))!important;padding:9px;border-radius:16px}
 .hm27-calendar__day{height:37px;font-size:11px}.hm27-calendar__week,.hm27-calendar__grid{gap:3px}.hm27-calendar__legend{gap:8px;font-size:8px}
}


/* =========================================================
   HM27 CUSTOM SELECT — FINAL
   Native beyaz dropdown yerine site uyumlu tek sistem.
   ========================================================= */

.hm27-control--select{
    overflow:visible!important;
}

.hm27-control--select > select.hm27-native-select{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
    opacity:0!important;
    pointer-events:none!important;
}

.hm27-select-ui{
    position:relative;
    grid-column:2;
    min-width:0;
    height:100%;
}

.hm27-select-ui__trigger{
    width:100%;
    height:100%;
    min-height:52px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 28px;
    align-items:center;
    gap:8px;
    padding:0 8px 0 0;

    border:0;
    outline:0;
    border-radius:0 10px 10px 0;

    color:#40586c;
    background:transparent;

    font:inherit;
    font-size:12px;
    font-weight:800;
    text-align:left;

    cursor:pointer;
}

.hm27-select-ui__trigger-value{
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.hm27-select-ui__chevron{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:8px;
    color:#29465a;
    font-size:15px;
    transition:transform .18s ease,background .18s ease;
}

.hm27-select-ui.is-open .hm27-select-ui__chevron{
    transform:rotate(180deg);
    background:color-mix(in srgb,var(--hm27-accent) 10%,transparent);
}

.hm27-control--select:has(.hm27-select-ui.is-open){
    border-color:var(--hm27-accent)!important;
    box-shadow:
        0 0 0 3px color-mix(in srgb,var(--hm27-accent) 15%,transparent),
        0 10px 28px rgba(0,0,0,.10)!important;
}

/* popup */
.hm27-select-ui__panel{
    position:absolute;
    z-index:2147483000;
    left:-40px;
    top:calc(100% + 8px);

    width:calc(100% + 40px);
    min-width:280px;
    max-height:390px;

    padding:9px;

    border:1px solid color-mix(in srgb,var(--hm27-accent) 35%,rgba(255,255,255,.16));
    border-radius:14px;

    color:#eaf9fd;
    background:
        radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--hm27-accent) 10%,transparent),transparent 42%),
        linear-gradient(180deg,#08384f 0%,#062d42 100%);

    box-shadow:
        0 25px 65px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.04);

    overflow:hidden;
}

.hm27-select-ui__panel[hidden]{
    display:none!important;
}

.hm27-select-ui__search-wrap{
    position:relative;
    margin-bottom:8px;
}

.hm27-select-ui__search-wrap::before{
    content:"⌕";
    position:absolute;
    z-index:2;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#6f98a9;
    font-size:17px;
}

.hm27-select-ui__search{
    width:100%;
    height:43px;
    padding:0 12px 0 39px;
    border:1px solid rgba(141,191,207,.25);
    border-radius:9px;
    outline:0;

    color:#eaf8fc;
    background:rgba(1,23,36,.58);

    font:inherit;
    font-size:11px;
    font-weight:700;
}

.hm27-select-ui__search::placeholder{
    color:#7293a1;
}

.hm27-select-ui__search:focus{
    border-color:var(--hm27-accent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--hm27-accent) 12%,transparent);
}

.hm27-select-ui__caption{
    display:flex;
    align-items:center;
    gap:7px;
    padding:5px 6px 7px;
    color:var(--hm27-accent);
    font-size:9px;
    font-weight:950;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.hm27-select-ui__caption::before{
    content:"✦";
    font-size:13px;
}

.hm27-select-ui__options{
    max-height:292px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:3px;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(118,169,186,.55) transparent;
}

.hm27-select-ui__options::-webkit-scrollbar{
    width:6px;
}

.hm27-select-ui__options::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:rgba(118,169,186,.55);
}

.hm27-select-ui__option{
    width:100%;
    min-height:43px;
    display:grid;
    grid-template-columns:30px minmax(0,1fr) 25px;
    align-items:center;
    gap:8px;
    margin:3px 0;
    padding:5px 8px;

    border:1px solid transparent;
    border-radius:9px;

    color:#deedf3;
    background:transparent;

    font:inherit;
    text-align:left;
    cursor:pointer;
    transition:.14s ease;
}

.hm27-select-ui__option:hover,
.hm27-select-ui__option.is-active{
    border-color:rgba(255,255,255,.08);
    background:rgba(255,255,255,.055);
}

.hm27-select-ui__option.is-selected{
    border-color:color-mix(in srgb,var(--hm27-accent) 55%,transparent);
    background:linear-gradient(
        90deg,
        color-mix(in srgb,var(--hm27-accent) 42%,#07334a),
        color-mix(in srgb,var(--hm27-accent) 18%,#07334a)
    );
    box-shadow:0 5px 16px color-mix(in srgb,var(--hm27-accent) 12%,transparent);
}

.hm27-select-ui__option-icon{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:8px;

    color:#d7f7fc;
    background:rgba(255,255,255,.055);
    font-size:14px;
}

.hm27-select-ui__option-copy{
    min-width:0;
    display:grid;
    gap:2px;
}

.hm27-select-ui__option-copy strong{
    overflow:hidden;
    color:#eef9fc;
    font-size:11px;
    line-height:1.2;
    font-weight:850;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.hm27-select-ui__option-copy small{
    overflow:hidden;
    color:#88a6b4;
    font-size:8.5px;
    line-height:1.2;
    font-weight:600;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.hm27-select-ui__check{
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    justify-self:end;
    border:1px solid rgba(161,196,207,.35);
    border-radius:50%;
    color:transparent;
    font-size:11px;
    font-weight:950;
}

.hm27-select-ui__option.is-selected .hm27-select-ui__check{
    color:#062d42;
    border-color:var(--hm27-accent);
    background:var(--hm27-accent);
}

.hm27-select-ui__empty{
    padding:18px 10px;
    color:#91aab6;
    font-size:10px;
    text-align:center;
}

/* time list gets compact two-column feel on large lists */
.hm27-select-ui.is-time .hm27-select-ui__options{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
}

.hm27-select-ui.is-time .hm27-select-ui__option{
    grid-template-columns:1fr;
    min-height:40px;
    margin:0;
    padding:6px;
    text-align:center;
}

.hm27-select-ui.is-time .hm27-select-ui__option-icon,
.hm27-select-ui.is-time .hm27-select-ui__check,
.hm27-select-ui.is-time .hm27-select-ui__option-copy small{
    display:none;
}

.hm27-select-ui.is-time .hm27-select-ui__option-copy strong{
    text-align:center;
}

/* MOBILE: seçim paneli formun içine taşmaz, fullscreen modalın altında sheet olur */
@media (max-width:767px){
    .hm27-select-ui__panel{
        position:fixed;
        left:8px;
        right:8px;
        top:auto;
        bottom:calc(8px + env(safe-area-inset-bottom));

        width:auto;
        min-width:0;
        max-height:72dvh;

        padding:10px;
        border-radius:18px;

        box-shadow:
            0 -12px 45px rgba(0,0,0,.32),
            0 30px 85px rgba(0,0,0,.62);
    }

    .hm27-select-ui__options{
        max-height:calc(72dvh - 105px);
    }

    .hm27-select-ui__option{
        min-height:49px;
    }

    .hm27-select-ui__option-copy strong{
        font-size:12px;
    }

    .hm27-select-ui__option-copy small{
        font-size:9px;
    }

    .hm27-select-ui.is-time .hm27-select-ui__options{
        grid-template-columns:repeat(3,minmax(0,1fr));
        max-height:55dvh;
    }
}

@media (max-width:390px){
    .hm27-select-ui__panel{
        left:5px;
        right:5px;
        bottom:calc(5px + env(safe-area-inset-bottom));
        max-height:78dvh;
        border-radius:15px;
    }

    .hm27-select-ui__options{
        max-height:calc(78dvh - 105px);
    }

    .hm27-select-ui.is-time .hm27-select-ui__options{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


/* =========================================================
   HM27 DROPDOWN — RESPONSIVE FINAL OVERRIDE
   Desktop / Tablet / Mobile
   ========================================================= */

/* Modal itself must not grow when a dropdown opens */
.hm27-modal{
    overflow:hidden!important;
}

.hm27-body{
    position:relative!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
}

/* custom select is overlay only */
.hm27-select-ui{
    position:relative!important;
    z-index:auto!important;
}

.hm27-select-ui.is-open{
    z-index:50!important;
}

.hm27-select-ui__panel{
    position:fixed!important;

    width:min(420px,calc(100vw - 28px))!important;
    min-width:0!important;
    max-width:420px!important;

    max-height:min(460px,calc(100dvh - 40px))!important;

    margin:0!important;

    overflow:hidden!important;

    border-radius:14px!important;

    z-index:2147483200!important;
}

.hm27-select-ui__options{
    max-height:300px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
}

/* Compact option cards */
.hm27-select-ui__option{
    min-height:42px!important;
    padding:5px 8px!important;
}

.hm27-select-ui__search{
    height:41px!important;
}

/* Time picker: no search needed */
.hm27-select-ui.is-time .hm27-select-ui__search-wrap{
    display:none!important;
}

.hm27-select-ui.is-time .hm27-select-ui__panel{
    width:min(380px,calc(100vw - 28px))!important;
    max-width:380px!important;
}

.hm27-select-ui.is-time .hm27-select-ui__options{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    max-height:270px!important;
    padding:4px!important;
}

.hm27-select-ui.is-time .hm27-select-ui__option{
    min-height:39px!important;
    height:39px!important;
    padding:4px!important;
    border-radius:8px!important;
}

.hm27-select-ui.is-time .hm27-select-ui__caption{
    margin-bottom:4px!important;
}

/* Desktop */
@media (min-width:1200px){
    .hm27-modal{
        width:min(720px,calc(100vw - 56px))!important;
        max-height:min(760px,calc(100dvh - 56px))!important;
    }

    .hm27-body{
        padding-bottom:24px!important;
    }
}

/* Tablet / small desktop */
@media (min-width:768px) and (max-width:1199px){
    .hm27-modal{
        width:min(680px,calc(100vw - 32px))!important;
        max-height:calc(100dvh - 32px)!important;
    }

    .hm27-select-ui__panel{
        width:min(390px,calc(100vw - 24px))!important;
        max-width:390px!important;
        max-height:min(420px,calc(100dvh - 30px))!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__panel{
        width:min(360px,calc(100vw - 24px))!important;
        max-width:360px!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__options{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        max-height:250px!important;
    }
}

/* Mobile */
@media (max-width:767px){
    .hm27-select-ui__panel{
        left:8px!important;
        right:8px!important;
        top:auto!important;
        bottom:calc(8px + env(safe-area-inset-bottom))!important;

        width:auto!important;
        min-width:0!important;
        max-width:none!important;
        max-height:72dvh!important;

        border-radius:18px!important;
    }

    .hm27-select-ui__options{
        max-height:calc(72dvh - 96px)!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__panel{
        width:auto!important;
        max-width:none!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__options{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        max-height:54dvh!important;
    }

    .hm27-select-ui__option{
        min-height:48px!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__option{
        min-height:43px!important;
        height:43px!important;
    }
}

@media (max-width:390px){
    .hm27-select-ui__panel{
        left:5px!important;
        right:5px!important;
        bottom:calc(5px + env(safe-area-inset-bottom))!important;
        max-height:78dvh!important;
        border-radius:15px!important;
    }

    .hm27-select-ui__options{
        max-height:calc(78dvh - 94px)!important;
    }

    .hm27-select-ui.is-time .hm27-select-ui__options{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        max-height:58dvh!important;
    }
}


/* =========================================================
   HM27 DROPDOWN SEARCH — FINAL
   Yalnızca açılan dropdown içindeki search alanı düzenlenmiştir.
   ========================================================= */

.hm27-select-ui__search-wrap{
    position:sticky!important;
    top:0!important;
    z-index:8!important;

    margin:0 0 10px!important;
    padding:4px!important;

    border:1px solid color-mix(in srgb,var(--hm27-accent) 34%,rgba(255,255,255,.10))!important;
    border-radius:12px!important;

    background:
        linear-gradient(180deg,
            color-mix(in srgb,var(--hm27-accent) 8%,#0a344a),
            #082f44)!important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.15),
        inset 0 1px 0 rgba(255,255,255,.035)!important;
}

.hm27-select-ui__search-wrap::before{
    content:""!important;
    display:none!important;
}

.hm27-select-ui__search{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;

    padding:0 42px 0 42px!important;

    border:1px solid rgba(181,221,232,.28)!important;
    border-radius:9px!important;
    outline:none!important;

    color:#f4fbfd!important;
    caret-color:var(--hm27-accent)!important;

    background:
        linear-gradient(180deg,
            rgba(2,27,41,.94),
            rgba(3,38,55,.96))!important;

    font:inherit!important;
    font-size:12px!important;
    font-weight:750!important;
    letter-spacing:.005em!important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 3px 10px rgba(0,0,0,.08)!important;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease!important;
}

.hm27-select-ui__search::placeholder{
    color:#8aa8b5!important;
    opacity:1!important;
    font-weight:650!important;
}

.hm27-select-ui__search:hover{
    border-color:color-mix(in srgb,var(--hm27-accent) 48%,rgba(255,255,255,.20))!important;
}

.hm27-select-ui__search:focus{
    border-color:var(--hm27-accent)!important;
    background:#062f45!important;

    box-shadow:
        0 0 0 3px color-mix(in srgb,var(--hm27-accent) 16%,transparent),
        0 7px 18px rgba(0,0,0,.16)!important;
}

/* Search icon */
.hm27-select-ui__search-wrap::after{
    content:"⌕"!important;
    position:absolute!important;
    left:17px!important;
    top:50%!important;
    transform:translateY(-50%)!important;

    width:18px!important;
    height:18px!important;
    display:grid!important;
    place-items:center!important;

    color:var(--hm27-accent)!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:900!important;

    pointer-events:none!important;
}

/* JS tarafından eklenen temizle butonu */
.hm27-select-ui__search-clear{
    position:absolute!important;
    z-index:5!important;
    right:10px!important;
    top:50%!important;
    transform:translateY(-50%)!important;

    width:28px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;

    padding:0!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:8px!important;

    color:#9db7c2!important;
    background:rgba(255,255,255,.045)!important;

    font:inherit!important;
    font-size:16px!important;
    line-height:1!important;

    cursor:pointer!important;
    transition:.15s ease!important;
}

.hm27-select-ui__search-clear:hover{
    color:#fff!important;
    border-color:color-mix(in srgb,var(--hm27-accent) 35%,rgba(255,255,255,.08))!important;
    background:color-mix(in srgb,var(--hm27-accent) 17%,rgba(255,255,255,.04))!important;
}

.hm27-select-ui__search-clear[hidden]{
    display:none!important;
}

/* Arama sonucunda bulunan metin/satırlar daha net */
.hm27-select-ui__option:not([hidden]){
    opacity:1!important;
}

.hm27-select-ui__empty{
    margin:8px 2px 2px!important;
    padding:17px 12px!important;

    border:1px dashed rgba(150,191,204,.22)!important;
    border-radius:10px!important;

    color:#9db4be!important;
    background:rgba(255,255,255,.025)!important;

    font-size:10px!important;
    font-weight:700!important;
    text-align:center!important;
}

/* Mobilde search üstte sabit ve dokunması kolay */
@media (max-width:767px){
    .hm27-select-ui__search-wrap{
        margin-bottom:9px!important;
        padding:4px!important;
        border-radius:13px!important;
    }

    .hm27-select-ui__search{
        height:50px!important;
        min-height:50px!important;

        padding-left:44px!important;
        padding-right:44px!important;

        border-radius:10px!important;
        font-size:13px!important;
    }

    .hm27-select-ui__search-wrap::after{
        left:17px!important;
        font-size:18px!important;
    }

    .hm27-select-ui__search-clear{
        right:10px!important;
        width:31px!important;
        height:31px!important;
    }
}


/* =========================================================
   HM27 SEARCH FILTER — VISIBILITY FIX
   ========================================================= */
.hm27-select-ui__option[hidden]{
    display:none!important;
}

.hm27-select-ui__option.hm27-filter-hidden{
    display:none!important;
}

.hm27-select-ui__option.hm27-filter-match{
    display:grid!important;
}
