:root {
  --tagani-navy: #0B1F3A;
  --tagani-sky: #38BDF8;
  --tagani-orange: #F97316;
}

.home .elementor-element-4ab08553 {
  min-height: 460px;
  background-image: url('../images/tagani-home-hero-desktop.webp') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.home #content {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(56,189,248,.055) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 44%, rgba(249,115,22,.045) 0 3px, transparent 4px);
  background-size: 92px 92px, 128px 128px;
}

.theme-banner {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.theme-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.88) 0%, rgba(11,31,58,.55) 44%, rgba(11,31,58,.10) 100%);
  pointer-events: none;
}

.theme-banner .container {
  position: relative;
  z-index: 1;
}

.theme-banner .entry-title,
.theme-banner .breadcrumbs,
.theme-banner a {
  color: #fff !important;
}

body.page-id-329 .theme-banner {
  background-image: url('../images/tagani-contact-banner.webp') !important;
}

body.page:not(.home) .theme-banner {
  background-image: url('../images/tagani-information-page-banner.webp');
}

body.post-type-archive-rtcl_listing .theme-banner,
body.post-type-archive-store .theme-banner,
body.page-id-8 .theme-banner,
body.page-id-6 .theme-banner,
body.page-id-3261 .theme-banner {
  background-image: url('../images/tagani-marketplace-page-banner.webp') !important;
}

@media (max-width: 767px) {
  .home .elementor-element-4ab08553 {
    min-height: clamp(740px, 190vw, 820px);
    background-image: url('../images/tagani-home-hero-mobile.webp') !important;
    background-position: center bottom !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
    background-color: #e8f5ff !important;
  }

  .home .elementor-element-4ab08553 > .elementor-container {
    align-items: flex-start !important;
    padding-top: 24px;
  }

  .theme-banner {
    min-height: 180px;
    background-position: 68% center !important;
  }

  .theme-banner::before {
    background: linear-gradient(90deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.64) 62%, rgba(11,31,58,.28) 100%);
  }

  .theme-banner .entry-title {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.15 !important;
  }
}

/* Keep the seller-chat action usable in both Classima sidebar variants. */
.single-rtcl_listing .classified-seller-info .rtin-chat {
  min-height: 48px;
}

.single-rtcl_listing .classified-seller-info .rtcl-chat-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 48px;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 991px) {
  .classima-listing-single-mob .classified-seller-info .rtin-chat {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* The chat plugin uses a fixed 400px panel, which can overflow narrow phones. */
@media (max-width: 480px) {
  #rtcl-chat-modal-wrap,
  #rtcl-chat-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  #rtcl-chat-modal .rtcl-chat-container,
  #rtcl-chat-modal .rtcl-chat-model-body,
  #rtcl-chat-modal .rtcl-message-container,
  #rtcl-chat-modal .rtcl-chat-send-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  #rtcl-chat-modal .rtcl-chat-send-wrap,
  #rtcl-chat-modal textarea {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
