/* 2026-11-27 Sag alt tek iletisim butonu (telefon + WhatsApp birlesik).
   Etrafinda dalga gibi acilip sonen halkalar; tiklaninca yaylanarak acilan kucuk pencere.
   Sablon: themes/GoTrip/Layout/app.blade.php */
.ot-contact { --ot-navy: #1c2b4a; --ot-orange: #e06a0d; --ot-spring: cubic-bezier(.34, 1.4, .5, 1); }

.ot-contact-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 99991;
    width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
    background: var(--ot-navy); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .16);
    transition: transform .4s var(--ot-spring), background .2s;
    animation: otFabGel .6s var(--ot-spring) both;
    -webkit-tap-highlight-color: transparent;
}
.ot-contact-fab:hover { transform: scale(1.06); }
.ot-contact-fab:active { transform: scale(.95); }
.ot-contact-fab:focus-visible { outline: 2px solid var(--ot-orange); outline-offset: 3px; }
.ot-contact-fab svg { position: relative; z-index: 2; transition: transform .35s var(--ot-spring), opacity .2s; }
.ot-contact-fab .ico-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }

/* halkalar: butondan disari acilip sonuyor, birbirini takip ederek */
.ot-contact-fab .ot-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--ot-orange); pointer-events: none; z-index: 1;
    animation: otRing 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
}
.ot-contact-fab .ot-ring:nth-child(2) { animation-delay: .8s; }
.ot-contact-fab .ot-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes otRing {
    0%   { transform: scale(1);   opacity: .85; }
    80%  { opacity: 0; }
    100% { transform: scale(1.75); opacity: 0; }
}
.ot-contact-fab .ot-dot {
    position: absolute; top: 1px; right: 1px; z-index: 3; width: 14px; height: 14px; border-radius: 50%;
    background: #25d366; box-shadow: 0 0 0 3px #fff;
}
@keyframes otFabGel { 0% { opacity: 0; transform: translateY(18px) scale(.85); } }

/* acik durum */
.ot-contact.is-open .ot-contact-fab .ot-ring,
.ot-contact.is-open .ot-contact-fab .ot-dot { display: none; }
.ot-contact.is-open .ot-contact-fab .ico-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.ot-contact.is-open .ot-contact-fab .ico-close { opacity: 1; transform: none; }

/* pencere */
.ot-contact-panel {
    position: fixed; right: 22px; bottom: 96px; z-index: 99991;
    width: 300px; max-width: calc(100vw - 32px);
    background: #fff; color: #0f172a; border-radius: 18px 18px 6px 18px;
    box-shadow: 0 18px 48px -14px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .05);
    padding: 18px 16px 14px; transform-origin: bottom right;
    opacity: 0; visibility: hidden; transform: translateY(18px) scale(.85);
    transition: opacity .22s, visibility .22s, transform .45s var(--ot-spring);
}
.ot-contact.is-open .ot-contact-panel { opacity: 1; visibility: visible; transform: none; }
.ot-contact-panel__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ot-orange); }
.ot-contact-panel__title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 4px 0 2px; color: #0f172a; }
.ot-contact-panel__text { font-size: 13px; color: #64748b; margin: 0 0 12px; }
.ot-contact-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px;
    border-radius: 12px; background: #f8f9fc; text-decoration: none !important; color: #0f172a !important;
    transition: background .2s, transform .2s;
}
.ot-contact-item:hover { background: #f1f3f8; transform: translateX(-2px); }
.ot-contact-item__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ot-contact-item--phone .ot-contact-item__icon { background: #1877d1; }
.ot-contact-item--wa .ot-contact-item__icon { background: #25d366; }
.ot-contact-item__body { display: flex; flex-direction: column; min-width: 0; }
.ot-contact-item__label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ot-contact-item__sub { font-size: 12.5px; color: #64748b; line-height: 1.3; }
.ot-contact-item__arrow { margin-left: auto; color: #94a3b8; flex: none; }

/* sayfa basina don oku: tek butonun ustunde */
.bravo-totop-float { bottom: 100px !important; }
body.ot-contact-open .bravo-totop-float { opacity: 0 !important; visibility: hidden !important; }

@media (prefers-reduced-motion: reduce) {
    .ot-contact-fab .ot-ring { animation: none; display: none; }
    .ot-contact-fab, .ot-contact-panel { animation: none; transition: none; }
}

@media (max-width: 768px) {
    .ot-contact-fab { right: 16px; bottom: 86px; width: 54px; height: 54px; }
    .ot-contact-panel { right: 16px; bottom: 152px; }
    .bravo-totop-float { bottom: 152px !important; }
    body.drp-open .ot-contact,
    body.mdest-open .ot-contact,
    body.modal-open .ot-contact,
    body:has(.hotel_room_book_status.bk-footer) .ot-contact { display: none !important; }
}
