﻿/* Detail search overlay – merged from tema + header */

.offcanvas-backdrop {
    z-index: 1080;
}

#quickMenu .invalid-feedback.d-block {
    display: block !important;
}

body.ah-dsearch-lock {
    overflow: hidden !important;
}

#daramadis.mt-search-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 50000 !important;
    isolation: isolate;
    display: none;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 1.25rem !important;
    overflow-y: auto !important;
    background: rgba(248, 250, 252, .97) !important;
    backdrop-filter: blur(6px);
}

#daramadis.ah-detail-search-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#daramadis .mt-holder {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 2.5rem 0 !important;
}

#daramadis .mt-frame {
    position: relative;
    z-index: 1;
    width: min(980px, 100%) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
}

#daramadis .detayliaramaalti {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#daramadis .daramatitle,
#daramadis .ah-ds-close--top {
    display: none !important;
}

#daramadis .ah-form-label {
    display: block !important;
    text-align: left !important;
}

#daramadis .ah-ds-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 50010 !important;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .14) !important;
}

#daramadis .ah-ds-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

#daramadis .ah-ds-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

#daramadis .ah-ds-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767.98px) {
    #daramadis.mt-search-popup {
        padding: .75rem !important;
    }

    #daramadis .mt-holder {
        padding: 3.25rem 0 1rem !important;
    }

    #daramadis .mt-frame {
        width: 100% !important;
    }
}

/* Dialog, forms, validation */
#daramadis .ah-ds-dialog {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

#daramadis .ah-ds-card {
    border: 0 !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .14);
}

#daramadis .ah-ds-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 0 !important;
    background: linear-gradient(135deg, #f59f00 0%, #f08c00 45%, #d88900 100%) !important;
}

#daramadis .ah-ds-main-head .ah-main-title {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
}

#daramadis .ah-ds-main-head .ah-main-title i {
    color: #fff !important;
}

#daramadis .ah-ds-head-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

#daramadis .ah-ds-head-close:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

#daramadis .ah-ds-card .card-body {
    padding: 1.25rem;
}

#daramadis .ah-ds-card .card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

#daramadis .form-label {
    margin-bottom: .4rem;
    color: #212529;
}

#daramadis .form-control,
#daramadis .form-select {
    min-height: 44px;
    border-radius: .55rem;
}

#daramadis .form-control:focus,
#daramadis .form-select:focus {
    border-color: rgba(245, 159, 0, .75);
    box-shadow: 0 0 0 .2rem rgba(245, 159, 0, .15);
}

#daramadis .form-control.is-invalid,
#daramadis .form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .12) !important;
}

#daramadis .aramainput,
#daramadis input[name="callword"] {
    background-color: #fff !important;
    color: #212529 !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    box-shadow: none !important;
}

#daramadis .aramainput::placeholder,
#daramadis input[name="callword"]::placeholder {
    color: #8b95a1 !important;
}

#daramadis .aramainput:focus,
#daramadis input[name="callword"]:focus {
    background-color: #fff !important;
    border-color: rgba(245, 159, 0, .85) !important;
    box-shadow: 0 0 0 .22rem rgba(245, 159, 0, .16) !important;
    outline: 0 !important;
}

#daramadis .btn-ah-cta,
#daramadis .btn-outline-secondary {
    border-radius: 999px;
    font-weight: 700;
}

#daramadis .btn-ah-cta {
    padding-inline: 1.25rem;
}

#daramadis .btn-outline-secondary {
    font-weight: 600;
}

#daramadis .ah-ds-view-buttons {
    gap: .75rem !important;
}

#daramadis .ah-ds-view-buttons .btn {
    min-height: 44px;
    border-radius: 999px !important;
    font-weight: 700;
}

#daramadis .ah-ds-view-buttons .btn.active {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

#daramadis .ah-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    width: 100%;
}

#daramadis .ah-price-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 72px;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

#daramadis .ah-price-group .form-control {
    min-width: 0;
}

#daramadis .ah-price-cent {
    width: 72px !important;
    max-width: 72px !important;
    text-align: center;
    padding-left: .5rem;
    padding-right: .5rem;
}

#daramadis .ah-price-comma {
    color: #495057;
    font-weight: 700;
}

#daramadis .ah-price-separator {
    color: #6c757d;
    font-weight: 700;
    text-align: center;
}

#daramadis #dsPriceError {
    margin-top: .45rem;
    font-weight: 600;
}

#daramadis #dsNeighbourhood::placeholder {
    color: #8b95a1 !important;
    opacity: 1 !important;
}

#daramadis #dsNeighbourhood::-webkit-input-placeholder {
    color: #8b95a1 !important;
    opacity: 1 !important;
}

@media (max-width: 575.98px) {
    #daramadis .ah-ds-view-buttons {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    #daramadis .ah-ds-dialog {
        padding: .75rem 0 2rem;
    }

    #daramadis .ah-ds-card .card-body {
        padding: 1rem;
    }

    #daramadis .ah-ds-card .card-footer {
        padding: 1rem;
    }

    #daramadis .ah-price-line {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    #daramadis .ah-price-separator {
        display: none;
    }
}