/* -----------------------------------------------------
   Floating Alert Button
----------------------------------------------------- */
#pf-alerts-button {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 30px);
    left: 35px;
    background: #d60f0f;
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

#pf-alerts-button:hover {
    background: #b50c0c;
}

/* -----------------------------------------------------
   Modal Background
----------------------------------------------------- */
#pf-alerts-modal {
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.60);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf-alerts-hidden {
    display: none !important;
}

/* -----------------------------------------------------
   Modal Content Box
----------------------------------------------------- */
#pf-alerts-modal-content {
    background: #fff;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* -----------------------------------------------------
   Modal Close Button
----------------------------------------------------- */
#pf-alerts-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#pf-alerts-close:hover {
    color: #000;
}

/* -----------------------------------------------------
   Modal Text
----------------------------------------------------- */
#pf-alerts-modal-content h2 {
    margin-top: 0;
}

#pf-alerts-modal-content h3 {
    margin-top: 18px;
    margin-bottom: 8px;
}

/* -----------------------------------------------------
   Region Buttons
----------------------------------------------------- */
.pf-alerts-region-row button,
.pf-alerts-region-col button {
    background: #eee;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

.pf-alerts-region-row button:hover,
.pf-alerts-region-col button:hover {
    background: #ddd;
}

.pf-active {
    background: #d60f0f !important;
    color: #fff !important;
}

/* -----------------------------------------------------
   Destination Button Layout
----------------------------------------------------- */
.pf-alerts-region-col {
    display: flex;
    flex-wrap: wrap;
}

/* -----------------------------------------------------
   Price Slider
----------------------------------------------------- */
#pf-alerts-price {
    width: 100%;
    margin-top: 5px;
}

#pf-alerts-price-display {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

/* -----------------------------------------------------
   Save Button
----------------------------------------------------- */
#pf-alerts-save {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    font-size: 16px;
    background: #d60f0f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

#pf-alerts-save:hover {
    background: #b50c0c;
}

/* -----------------------------------------------------
   Mobile Refinements
----------------------------------------------------- */
@media (max-width: 480px) {

    #pf-alerts-button {
        padding: 9px 14px;
        font-size: 13px;
        left: 15px;
    }

    #pf-alerts-modal-content {
        width: 98%;
        padding: 20px;
    }

    .pf-alerts-region-row button,
    .pf-alerts-region-col button {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* -----------------------------------------------------
   Hide Floating Button on Mobile When Modal Is Open
----------------------------------------------------- */
@media (max-width: 768px) {
    #pf-alerts-button.pf-alerts-active {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
    }
}