/* =============================================
   Airport Limousine - Floating Contact Button
   Brand Colors: Orange (#E8A87C / #D89560) on Dark (#1a1209)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* --- Backdrop --- */
.alc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999998;
    pointer-events: none;
}

.alc-backdrop.alc-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Container --- */
.alc-floating-container {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}

.alc-position-right {
    right: 30px;
    align-items: flex-end;
}

.alc-position-left {
    left: 30px;
    align-items: flex-start;
}

/* --- Popup --- */
.alc-popup {
    position: absolute;
    bottom: 80px;
    width: 310px;
    background: linear-gradient(180deg, #1f1610 0%, #15100a 100%);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: 22px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(232, 168, 124, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.alc-position-right .alc-popup {
    right: 0;
    transform-origin: bottom right;
}

.alc-position-left .alc-popup {
    left: 0;
    transform-origin: bottom left;
}

.alc-popup.alc-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- Popup Header --- */
.alc-popup-header {
    background: linear-gradient(135deg, #E8A87C 0%, #D89560 50%, #C88550 100%);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.alc-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.alc-popup-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.alc-header-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.alc-popup-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px 0;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.4;
    border: none;
    background: none;
    font-family: 'Cairo', sans-serif;
}

.alc-popup-header p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.alc-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alc-header-icon svg {
    width: 22px;
    height: 22px;
}

/* --- Popup Body --- */
.alc-popup-body {
    padding: 14px;
}

/* --- Contact Option --- */
.alc-option {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: #f5f0eb !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.alc-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.12), rgba(232, 168, 124, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.alc-option:hover::before {
    opacity: 1;
}

.alc-option:hover {
    transform: translateX(-4px);
    color: #f5f0eb !important;
}

.alc-option:hover .alc-option-icon {
    transform: scale(1.1);
}

.alc-option:focus {
    outline: none !important;
    box-shadow: none !important;
}

.alc-option + .alc-option {
    margin-top: 4px !important;
}

/* --- Option Icon --- */
.alc-option-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alc-option-icon svg {
    width: 26px;
    height: 26px;
}

.alc-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c3e) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.alc-phone {
    background: linear-gradient(135deg, #E8A87C, #C88550) !important;
    box-shadow: 0 4px 15px rgba(232, 168, 124, 0.4);
}

.alc-email {
    background: linear-gradient(135deg, #4a90e2, #2968b8) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.35);
}

/* --- Option Info --- */
.alc-option-info {
    flex: 1;
    min-width: 0;
}

.alc-option-info .alc-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f5f0eb;
    margin-bottom: 3px;
    line-height: 1.3;
}

.alc-option-info .alc-number {
    font-size: 0.78rem;
    font-weight: 400;
    color: #b8a898;
    direction: ltr;
    text-align: right;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.alc-option-info .alc-email-text {
    font-size: 0.72rem;
    word-break: break-all;
    letter-spacing: 0;
}

/* --- Arrow --- */
.alc-arrow {
    color: #b8a898;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.alc-option:hover .alc-arrow {
    color: #E8A87C;
    transform: translateX(-4px);
}

/* --- Popup Footer --- */
.alc-popup-footer {
    padding: 0 16px 14px;
    text-align: center;
    border-top: 1px solid rgba(232, 168, 124, 0.08);
    padding-top: 12px;
    margin-top: 4px;
}

.alc-popup-footer span {
    font-size: 0.72rem;
    color: #b8a898;
    opacity: 0.7;
}

/* --- FAB Button --- */
.alc-fab {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #E8A87C 0%, #D89560 100%) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
        0 6px 25px rgba(232, 168, 124, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-width: unset !important;
    min-height: unset !important;
}

.alc-fab:hover {
    transform: scale(1.08) !important;
    box-shadow:
        0 8px 35px rgba(232, 168, 124, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.alc-fab:active {
    transform: scale(0.95) !important;
}

.alc-fab.alc-active {
    background: linear-gradient(135deg, #2a1f14, #1f1610) !important;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(232, 168, 124, 0.35) !important;
}

/* --- FAB Icons --- */
.alc-fab-icon {
    position: absolute;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alc-icon-contact {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.alc-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.alc-fab.alc-active .alc-icon-contact {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.alc-fab.alc-active .alc-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* --- Pulse Ring --- */
.alc-pulse-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #E8A87C;
    animation: alc-pulse 2.5s ease-out infinite;
    pointer-events: none;
    bottom: 0;
}

.alc-position-right .alc-pulse-ring {
    right: 0;
}

.alc-position-left .alc-pulse-ring {
    left: 0;
}

.alc-pulse-delay {
    animation-delay: 0.8s;
}

.alc-fab.alc-active ~ .alc-pulse-ring {
    animation: none;
    opacity: 0;
}

@keyframes alc-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --- Online Dot --- */
.alc-online-dot {
    position: absolute;
    top: 2px;
    width: 14px;
    height: 14px;
    background: #25d366;
    border-radius: 50%;
    border: 2.5px solid #1a1209;
    z-index: 11;
    animation: alc-online-pulse 2s ease infinite;
    pointer-events: none;
}

.alc-position-right .alc-online-dot {
    left: 2px;
}

.alc-position-left .alc-online-dot {
    right: 2px;
}

.alc-fab.alc-active ~ .alc-online-dot {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes alc-online-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}

/* --- Tooltip --- */
.alc-tooltip {
    position: absolute;
    bottom: 16px;
    background: linear-gradient(135deg, #2a1f14, #1f1610);
    color: #f5f0eb;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(232, 168, 124, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    animation: alc-tooltip-show 0.5s ease 2s forwards;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    z-index: 10;
}

.alc-position-right .alc-tooltip {
    right: 78px;
    transform: translateX(10px);
}

.alc-position-right .alc-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #1f1610;
    border-left: 1px solid rgba(232, 168, 124, 0.2);
    border-bottom: 1px solid rgba(232, 168, 124, 0.2);
}

.alc-position-left .alc-tooltip {
    left: 78px;
    transform: translateX(-10px);
}

.alc-position-left .alc-tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #1f1610;
    border-right: 1px solid rgba(232, 168, 124, 0.2);
    border-top: 1px solid rgba(232, 168, 124, 0.2);
}

@keyframes alc-tooltip-show {
    0% { opacity: 0; }
    100% { opacity: 1; transform: translateX(0); }
}

.alc-fab.alc-active ~ .alc-tooltip {
    opacity: 0 !important;
}

/* --- Stagger Animations --- */
.alc-popup.alc-active .alc-option:nth-child(1) {
    animation: alc-slide-in 0.4s ease 0.1s both;
}

.alc-popup.alc-active .alc-option:nth-child(2) {
    animation: alc-slide-in 0.4s ease 0.2s both;
}

.alc-popup.alc-active .alc-option:nth-child(3) {
    animation: alc-slide-in 0.4s ease 0.3s both;
}

@keyframes alc-slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .alc-floating-container {
        bottom: 20px;
    }
    .alc-position-right {
        right: 20px;
    }
    .alc-position-left {
        left: 20px;
    }
    .alc-popup {
        width: calc(100vw - 40px);
        max-width: 310px;
    }
    .alc-tooltip {
        display: none !important;
    }
    .alc-fab {
        width: 58px !important;
        height: 58px !important;
    }
    .alc-pulse-ring {
        width: 58px;
        height: 58px;
    }
}

/* --- Accessibility --- */
.alc-option:focus-visible {
    outline: 2px solid #E8A87C !important;
    outline-offset: 2px;
}

.alc-fab:focus-visible {
    outline: 3px solid rgba(232, 168, 124, 0.5) !important;
    outline-offset: 3px;
}

/* --- Print: Hide --- */
@media print {
    .alc-floating-container,
    .alc-backdrop {
        display: none !important;
    }
}
