﻿
/* خلاصه Dropdown */
.dropdown-btn {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

/* دکمه + و - */
.qtyBtn button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* input عدد */
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

/* زیرمنو */
.dropdown-menu-wrap {
    min-width: 100%;
    background: #f8fafc;
    border-radius: 10px;
}

/* موبایل */
@media (max-width: 576px) {
    .dropdown-menu-wrap

{
    width: 100%;
}

}



.lazy-load {
    min-height: 150px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .lazy-load.loaded {
        opacity: 1;
    }
/* ── Autocomplete Dropdown ── */
#dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    padding: 4px !important;
    margin-top: 0 !important;
}

    #dropdown .list-group-item {
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.15s;
        cursor: pointer;
    }

        #dropdown .list-group-item:hover {
            background: #eff6ff;
            color: #3b82f6;
        }

        #dropdown .list-group-item small {
            color: #94a3b8;
            font-size: 11px;
            margin-right: auto;
        }


.cd-words-wrapper b {
    position: absolute;
    opacity: 0;
}

    .cd-words-wrapper b.is-visible {
        position: relative;
        opacity: 1;
    }


/* ── Guest Selector Wrapper ── */
.gs-wrapper {
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

    .gs-wrapper .label-text,
    .input-box .label-text {
        margin-bottom: 5px !important;
        display: block;
        line-height: 1;
    }

/* ── Trigger Button ── */
.gs-trigger {
    height: 46px;
    padding: 0 14px;
    width: 100%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: none;
}

    .gs-trigger:hover {
        border-color: #94a3b8;
    }

    .gs-trigger.open {
        border-color: #3b82f6;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 2px 8px rgba(59,130,246,0.12);
    }

.gs-trigger-icon {
    font-size: 18px;
    color: #64748b;
}

.gs-trigger-text {
    margin-bottom: 1px;
    flex: 1;
    text-align: right;
}

.gs-trigger-summary {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.gs-trigger-arrow {
    color: #94a3b8;
    transition: transform 0.3s;
    font-size: 12px;
}

.gs-trigger.open .gs-trigger-arrow {
    transform: rotate(180deg);
    color: #3b82f6;
}

/* ── Dropdown Panel ── */
.gs-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1050;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s;
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}

    .gs-panel.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

.gs-panel-inner {
    padding: 10px 14px;
}

/* ── Row ── */
.gs-row {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

    .gs-row:last-of-type {
        border-bottom: none;
    }

.gs-row-info {
    flex: 1;
    text-align: right;
}

.gs-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.gs-row-sub {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}

/* ── Counter ── */
.gs-counter {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.gs-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
}

    .gs-btn:hover:not(:disabled) {
        background: #eff6ff;
        color: #3b82f6;
    }

    .gs-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.gs-val {
    min-width: 28px;
    font-size: 13px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

/* ── Children Ages Section ── */
.gs-children-ages {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    margin-top: 4px;
}

    .gs-children-ages.visible {
        max-height: 250px;
        opacity: 1;
    }

.gs-ages-hint {
    font-size: 10px;
    padding: 4px 8px;
    margin: 4px 0 6px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    text-align: right;
}

.gs-ages-grid {
    gap: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 140px;
    overflow-y: auto;
}

.gs-age-item {
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: right;
}

    .gs-age-item:focus-within {
        border-color: #3b82f6;
    }

.gs-age-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.gs-age-select {
    width: 100%;
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    height: 24px;
    padding: 0;
}

/* ── Error Msg & Confirm Button ── */
.gs-error-msg {
    color: #ef4444;
    font-size: 11px;
    margin-top: 6px;
    text-align: right;
    display: none;
}

.gs-confirm {
    margin-top: 8px;
    padding: 8px;
    width: 100%;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

    .gs-confirm:hover {
        background: #2563eb;
    }
