:root{
    --brand:#ff7a00;
    --border:#e5e7eb;
    --bg:#f6f7f9;
}

*{box-sizing:border-box;font-family:IRANSans,sans-serif}
body{margin:0;background:var(--bg);direction:rtl}

.search-wrapper{margin:10px auto;}
.search-box{
    background:#fff;
    border-radius:20px;
    box-shadow:0 20px 45px rgba(0,0,0,.08);
    padding:10px;
    /*border:1px solid #2e53bd;*/
}

.tabs{display:flex;gap:8px;overflow-x:hidden;margin-bottom:18px}
.tab{
    padding:5px 12px;
    background:#ffffff;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    white-space:nowrap;
}
.tab.active{background:#fe9e26;color:#fff}

.tab-content{display:none}
.tab-content.active{display:block}

.form-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.field input,
.field select{
    width:100%;
    padding:10px;
    border-radius:12px;
    border:1px solid #ccc;
    font-size:16px;
}

@media (min-width:768px){
    .field input,
    .field select{
        font-size:14px;
    }
}


.two-col-mobile{
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align items */
  border: 1px solid #ccc; /* Example border */
  border-radius: 12px; /* Rounded corners */
}

.passenger-btn{
    width:34px;
    height:34px;
    border:none !important;
    background:var(--brand) !important;
    color:#fff !important;
    border-radius:10px;
    font-size:18px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}

.passenger-btn.minus{
    background:#e5e7eb !important;
    color:#111 !important;
}

.passenger-btn:focus{
    outline:none;
    box-shadow:none;
}

.passenger{position:relative}

.passenger-panel{
    display:none;
    position:absolute;
    top:62px;
    right:0;
    width:100%;
    background:#fff;
    border-radius:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
    padding:15px;
    z-index:20;
}

.p-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.counter{display:flex;align-items:center}
.counter button{
    width:34px;
    height:34px;
    border:none;
    background:var(--brand);
    color:#fff;
    border-radius:10px;
    font-size:18px;
}
.counter span{margin:0 10px;font-weight:600}

.datetime-group{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.search-btn{
    margin-top:18px;
    width:100%;
    padding:10px;
    background:#2e53bd;
    border:none;
    border-radius:16px;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

/* desktop */
@media(min-width:768px){
    .form-grid{
        grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    }
}
.hotel-search-form{
    margin-bottom:0;
}

/* -----------------------------------------------------*/
    .select-box {
        position: relative;
    }

    .select-display {
        background: white;
        padding: 8px 15px;
        border-radius: 12px;
        border: 1px solid #ccc;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: 0.2s;
    }

    .select-display:hover {
        border-color: #00a3ff;
    }

    .icon {
        width: 20px;
        height: 20px;
        margin-left: 10px;
        opacity: 0.7;
    }

    .selected-text {
        flex-grow: 1;
        padding:0px 5px;
    }

    .arrow {
        transition: 0.25s;
    }

    /* DROPDOWN */
    .dropdown {
        width: 100%;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.15);
        max-height: 0;
        overflow-y: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
        position: absolute; /* برای دسکتاپ همچنان absolute باشد */
        z-index: 100;
    }

    .dropdown.open {
        max-height: 340px;
        padding: 25px 10px;
        overflow-y: auto;
    }

    .search-input {
        width: 90%;
        margin: 10px auto;
        display: block;
        padding: 10px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        font-size: 14px;
    }

    .group-title {
        font-size: 13px;
        padding: 8px 15px;
        margin-top: 10px;
        font-weight: bold;
        color: #666;
    }

    .city-item {
        padding: 10px 15px;
        cursor: pointer;
        font-size: 14px;
        transition: 0.15s;
    }

    .city-item:hover {
        background: #f0f8ff;
    }

    .highlight {
        color: #00a3ff;
        font-weight: bold;
    }

    /* FORM STYLES */
    .myForm {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    }
    .form-group {
        margin-bottom: 15px;
    }
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #555;
    }

    /* MOBILE */
    @media (max-width: 480px) {
        .select-box {
            width: 100%;
        }
        .dropdown {
            width: 100%; /* برای اینکه عرض کامل موبایل را بگیرد */
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.15);
            max-height: 0; /* در حالت عادی بسته است */
            overflow-y: hidden;
            transition: max-height 0.35s ease;
            padding: 0;
        }
        .dropdown.open {
        position: fixed; /* تغییر به حالت فیکس */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* تمام ارتفاع صفحه */
        border-radius: 0;
        z-index: 15000; /* قرارگیری روی همه چیز */
        background: white;
        padding: 20px;
        overflow-y: auto;
        display: block; /* اطمینان از نمایش */
        max-height: 100vh;
        box-shadow: none;
        }
        
        /* برای بهبود ظاهر در حالت تمام‌صفحه */
        .search-input {
            width: 100%;
            margin-bottom: 20px;
            padding: 15px;
            font-size: 16px; /* بزرگتر برای موبایل */
        }
        .myForm {
            width: 90%;
        }
    }
.guest-actions{
    text-align:center;
}    
.guest-actions button {
    padding:6px 12px;
    background:#2e53bd;
    width:100%;
}

.date-input-left,
.date-input-right {
  flex-grow: 1; /* Allow buttons to take available space */
  text-align: center;
  padding: 8px; /* Add some padding */
}
.date-input {
  flex-grow: 1; /* Allow buttons to take available space */
  text-align: center;
  padding: 8px; /* Add some padding */
}

.date-separator {
  padding: 0 10px; /* Spacing around the pipe */
  color: #888; /* Color for the separator */
}

.date-input-container {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align items */
  border: 1px solid #ccc; /* Example border */
  border-radius: 5px; /* Rounded corners */
  padding: 5px;
  width: fit-content; /* Adjust width to content */
}

.is-disabled {
    pointer-events: none; 
    opacity: 0.6;         
    user-select: none;    
    cursor: not-allowed;  
}
