/* ================================================================
   FAB BUTTONS — fab-buttons.css  (пълна версия)
   ----------------------------------------------------------------
   Компоненти:
     .fab-group        — мобилни FAB бутони (фиксирани долу вдясно)
     .fab-trigger      — мобилен меню бутон + bottom sheet
     .contact-bar      — десктоп лента в navbar-а
     .fab-modal        — десктоп modal (QR + опции)
     .info-modal       — Info modal (адрес + карта)
     .fab-overlay      — тъмен фон за всички модали
     .fab-toast        — нотификация "Копирано"
   ================================================================ */


/* ================================================================
   БАЗОВ FAB БУТОН
   ================================================================ */
.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  position: relative;
  flex-shrink: 0;
}
.fab-btn:active {
  transform: scale(0.93);
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.fab-btn svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  pointer-events: none;
  flex-shrink: 0;
  display: block;
}

/* Цветове */
.fab-btn--call  { background: #27ae60; color: #fff; }
.fab-btn--sms   { background: #8e44ad; color: #fff; }
.fab-btn--share { background: #2980b9; color: #fff; }
.fab-btn--copy  { background: #e67e22; color: #fff; }
.fab-btn--info  { background: #16a085; color: #fff; }
.fab-btn--menu  {
  background: #269957;
  color: #fff;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.15s ease;
}
.fab-btn--menu.is-active {
  background: #c0392b;
  transform: rotate(45deg);
}


/* ================================================================
   ВАРИАНТ A — Отделни FAB бутони (мобилно, долу вдясно)
   На десктоп се скриват.
   ================================================================ */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 992px) {
  .fab-group { display: none; }
}


/* ================================================================
   ВАРИАНТ B — Trigger + Bottom Sheet (мобилно)
   На десктоп trigger-ът се скрива.
   ================================================================ */
.fab-trigger {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9000;
}
@media (min-width: 992px) {
  .fab-trigger { display: none; }
}


/* ================================================================
   CONTACT BAR — десктоп лента в Bootstrap navbar
   ----------------------------------------------------------------
   Поставя се вътре в .navbar-header или .navbar-right.
   На мобилно е скрита — FAB бутоните я заместват.
   ================================================================ */
.contact-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}
@media (min-width: 992px) {
  .contact-bar { display: flex; }
  /* Центрирай вертикално в Bootstrap 3 navbar (height: 50px) */
  .navbar .contact-bar {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

/* Бутон с текст */
.contact-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  outline: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-bar__btn:hover  { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.contact-bar__btn:active { opacity: 1;    transform: translateY(0); }
.contact-bar__btn:focus  { outline: 2px solid rgba(255,255,255,0.35); outline-offset: 2px; }

.contact-bar__btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
}

/* Цветове */
.contact-bar__btn--call  { background: #27ae60; color: #fff; }
.contact-bar__btn--sms   { background: #8e44ad; color: #fff; }
.contact-bar__btn--menu  { background: #2c3e50; color: #fff; }


/* ================================================================
   OVERLAY — общ тъмен фон за всички модали и sheet-а
   ================================================================ */
.fab-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9001;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.fab-overlay.is-open { display: block; }


/* ================================================================
   BOTTOM SHEET (мобилно, <992px)
   На десктоп JS отваря fab-modal вместо него.
   ================================================================ */
.fab-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9002;
  background: #1f1f1f;
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 450px;
  margin: 0 auto;
}
.fab-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
}

.fab-sheet__handle {
  width: 40px;
  height: 4px;
  background: #363636;
  border-radius: 2px;
  margin: 14px auto 10px;
}
.fab-sheet__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px 16px;
  border-bottom: 1px solid #393939;
}
.fab-sheet__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fab-sheet__name {
  display: block;
  color: #e8e8f0;
  font-size: 17px;
  font-weight: 600;
}
.fab-sheet__number {
  display: block;
  color: #c9c9c9;
  font-size: 16px;
  font-family: monospace;
  margin-top: 2px;
  font-family: "Exo 2";
}
.fab-sheet__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.fab-sheet__avatar img {
  width: 65px;            /* контролира размера на логото */
  height: 65px;
  object-fit: contain;
  padding-right: 5%;
}



.fab-sheet__item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 22px;
  background: none;
  border: none;
  border-bottom: 1px solid #393939;
  color: #dde2f0;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.fab-sheet__list li:last-child .fab-sheet__item { border-bottom: none; }
.fab-sheet__item:active { background: #00aaee; }

.fab-sheet__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-sheet__item-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  pointer-events: none;
}
.fab-sheet__item--call  .fab-sheet__item-icon { background: #27ae60; }
.fab-sheet__item--sms   .fab-sheet__item-icon { background: #8e44ad; }
.fab-sheet__item--share .fab-sheet__item-icon { background: #2980b9; }
.fab-sheet__item--copy  .fab-sheet__item-icon { background: #e67e22; }
.fab-sheet__item--info  .fab-sheet__item-icon { background: #16a085; }

.fab-sheet__close {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px 16px;
  padding: 14px;
  background: #393939;
  border: none;
  border-radius: 12px;
  color: #d6d6d6;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fab-sheet__close:active { background: #393939; }


/* ================================================================
   ДЕСКТОП MODAL — QR + Опции (≥992px)
   ================================================================ */
.fab-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9002;
  transform: translate(-50%, -44%);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: #1f1f1f;
  border-radius: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.fab-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.fab-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #393939;
}
.fab-modal__title {
  color: #e8e8f0;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.fab-modal__close-x {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.fab-modal__close-x:hover { color: #a50000; }

/* QR секция */
.fab-modal__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #393939;
}
.fab-modal__qr-label {
  color: #dbdbdb;
  font-size: 14px;
  margin: 0 0 12px;
  text-align: center;
}
#fabQrCanvas {
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: block;
}
.fab-modal__qr-hint {
  color: #393939;
  font-size: 11px;
  margin: 10px 0 0;
  text-align: center;
}

/* Опции в modal */
.fab-modal__actions { padding: 4px 0; }
.fab-modal__action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid #393939;
  color: #dde2f0;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.fab-modal__actions > *:last-child { border-bottom: none; }
.fab-modal__action:hover  { background: #393939; }
.fab-modal__action:active { background: #393939; }

.fab-modal__action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-modal__action-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  pointer-events: none;
}
.fab-modal__action--share .fab-modal__action-icon { background: #2980b9; }
.fab-modal__action--copy  .fab-modal__action-icon { background: #e67e22; }
.fab-modal__action--info  .fab-modal__action-icon { background: #16a085; }


/* ================================================================
   INFO MODAL — Адрес, карта, часове
   Десктоп: centered modal | Мобилно: bottom sheet
   ================================================================ */
.info-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9003;
  transform: translate(-50%, -44%);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: #1f1f1f;
  border-radius: 16px;
  width: 400px;
  max-width: calc(100vw - 24px);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  -webkit-overflow-scrolling: touch;
}
.info-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* На мобилно — bottom sheet стил */
@media (max-width: 991px) {
  .info-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(40px);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .info-modal.is-open { transform: translateY(0); }
}

/* Мобилна дръжка */
.info-modal__handle {
  display: none;
  width: 40px;
  height: 4px;
  background: #2c2c2c;
  border-radius: 2px;
  margin: 14px auto 0;
}
@media (max-width: 991px) {
  .info-modal__handle { display: block; }
}

/* Хедър */
.info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #393939;
  position: sticky;
  top: 0;
  background: #1f1f1f;
  z-index: 1;
}
.info-modal__title {
  color: #e8e8f0;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.info-modal__close-x {
  background: none;
  border: none;
  color: #6b7a99;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.info-modal__close-x:hover { color: #e8e8f0; }

/* Карта */
.info-modal__map {
  width: 100%;
  height: 185px;
  border: none;
  display: block;
}

/* Секции */
.info-modal__section {
  padding: 13px 20px;
  border-bottom: 1px solid #393939;
}
.info-modal__section:last-of-type { border-bottom: none; }

.info-modal__section-label {
  display: block;
  color: #6b7a99;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.info-modal__section-value {
  color: #e8e8f0;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* Screenshot подкана */
.info-modal__screenshot {
  margin: 4px 16px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #16213e, #0f3460);
  border-radius: 12px;
  border: 1px solid #1e4080;
  text-align: center;
}
.info-modal__screenshot-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}
.info-modal__screenshot-text {
  color: #a8c4e8;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.info-modal__screenshot-text strong {
  color: #e8f0ff;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}


/* ================================================================
   TOAST
   ================================================================ */
.fab-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20,20,40,0.95);
  color: #e8e8f0;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.fab-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 360px) {
  .fab-btn     { width: 50px; height: 50px; }
  .fab-btn svg { width: 30px; height: 30px; }
  .fab-group   { bottom: 16px; right: 14px; gap: 10px; }
  .fab-trigger { bottom: 16px; right: 14px; }
}
