/* Apply fonts to body and all elements */
body {
    font-family: 'Poppins', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff !important;
}

/* Remove gradient background from coverage area section */
.coverage-area,
.coverage-area.ptb-100,
section.coverage-area,
.ptb-100 {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Remove any gradient background from body or html */
html,
body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Override dark-style.css gradient */
body.theme-dark,
.theme-dark body,
body.theme-dark .coverage-area,
body.theme-dark .ptb-100 {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Override style.css gradient for coverage-area */
.coverage-area.ptb-100 {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Hide old header from frontend-master layout */
.header-area {
    display: none !important;
}

/* Hide footer from frontend-master layout - hanya yang memiliki style="margin-top: 50px;" */
body > footer.bg-gradient-to-r.from-mnet-orange.to-amber-500[style*="margin-top"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
}

/* Ensure new header is visible */
header.shadow-md {
    display: block !important;
}

/* Logo styling */
header.shadow-md img {
    max-height: 40px;
    height: auto;
    width: auto;
    object-fit: contain;
}
.coverage-map-container {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Ensure map doesn't cover header when scrolling */
.coverage-map-container .leaflet-container,
.coverage-map-container .leaflet-pane,
.coverage-map-container .leaflet-map-pane {
    z-index: 1 !important;
}

/* Logo company di kiri bawah map */
.coverage-map-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 200px;
}

.coverage-map-logo img {
    max-height: 40px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.coverage-map-logo span {
    font-size: 16px;
    font-weight: bold;
    color: #f97316;
    margin-left: 10px;
}

.coverage-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Dropdown menu styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu,
.group .absolute.bg-white.rounded-lg.shadow-lg {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.group:hover .group-hover\:opacity-100,
.group:hover .group-hover\:visible,
.group:hover .absolute.bg-white.rounded-lg.shadow-lg.opacity-0.invisible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dropdown menu text color - ensure black */
.nav-dropdown-menu,
.nav-dropdown-menu ul,
.nav-dropdown-menu li,
.nav-dropdown-menu a,
.nav-dropdown-menu a:link,
.nav-dropdown-menu a:visited,
.group .absolute.bg-white a,
.group .absolute.bg-white ul,
.group .absolute.bg-white li {
    color: #000000 !important; /* black */
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus,
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:focus,
.group .absolute.bg-white a:hover {
    background-color: #fffbeb !important; /* amber-50 */
    color: #f97316 !important; /* mnet-orange / orange */
}

/* Override any Tailwind classes */
.nav-dropdown-menu a.hover\:text-mnet-orange:hover {
    color: #f97316 !important;
}

.single-coverage-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.single-coverage-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.single-coverage-item.active {
    border-left: 4px solid #007bff;
    background: #f8f9fa;
}

.single-coverage-item h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-coverage-item p {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.single-coverage-item p i {
    color: #007bff;
    margin-right: 5px;
}

.coverage-page-header {
    background: #ffffff;
    padding: 80px 0 50px;
    margin-bottom: 50px;
}

.coverage-page-header h1 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 15px;
}

.coverage-page-header p {
    color: #6b7280;
    font-size: 18px;
}

/* Light Mode */
body:not(.dark-mode) .single-coverage-item {
    background: #fff;
}

body:not(.dark-mode) .single-coverage-item h4 {
    color: #333 !important;
}

body:not(.dark-mode) .single-coverage-item p {
    color: #666 !important;
}

/* Dark Mode Styling */
body.dark-mode .single-coverage-item {
    background: #2d2d3a !important;
    color: #fff !important;
}

body.dark-mode .single-coverage-item h4 {
    color: #fff !important;
}

body.dark-mode .single-coverage-item p {
    color: #ccc !important;
}

body.dark-mode .single-coverage-item.active {
    background: #3d3d4a !important;
    border-left-color: #4da6ff !important;
}

body.dark-mode .single-coverage-item p i {
    color: #4da6ff !important;
}

body.dark-mode .coverage-list h3 {
    color: #fff !important;
}

/* Popup styling */
.coverage-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.coverage-popup .leaflet-popup-content {
    margin: 15px;
}

.coverage-popup .leaflet-popup-tip {
    background: #fff;
}

/* Ensure navbar text is white */
header.shadow-md nav a,
header.shadow-md nav li a,
header nav a,
header nav li a {
    color: #ffffff !important;
    transition: color 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
}

header.shadow-md nav a::after,
header.shadow-md nav li a::after,
header nav a::after,
header nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #fef3c7 !important; /* amber-100 */
    transition: width 0.3s ease !important;
}

header.shadow-md nav a:hover,
header.shadow-md nav li a:hover,
header nav a:hover,
header nav li a:hover {
    color: #fef3c7 !important; /* amber-100 */
}

header.shadow-md nav a:hover::after,
header.shadow-md nav li a:hover::after,
header nav a:hover::after,
header nav li a:hover::after {
    width: 100% !important;
}

/* Remove underline effect for Masuk button */
nav a[href*="loginClient"]::after,
nav li a[href*="loginClient"]::after,
#mobile-menu a[href*="loginClient"]::after {
    display: none !important;
    content: none !important;
}

/* Mobile menu hover */
#mobile-menu a {
    position: relative !important;
    text-decoration: none !important;
}

#mobile-menu a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 8px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #ffffff !important;
    transition: width 0.3s ease !important;
}

#mobile-menu a:hover {
    color: #fef3c7 !important;
}

#mobile-menu a:hover::after {
    width: 100% !important;
}

/* Tailwind CSS utilities */
@layer utilities {
  .text-gradient {
    @apply bg-clip-text text-transparent bg-gradient-to-r from-mnet-orange to-amber-400;
  }
  .animate-underline {
    @apply relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 after:bg-white after:transition-all after:duration-300 hover:after:w-full;
  }
  /* Remove underline effect for Masuk button */
  nav a[href*="loginClient"]::after,
  #mobile-menu a[href*="loginClient"]::after {
    display: none !important;
    content: none !important;
  }
  /* Leaflet map styles */
  #contact-map {
    z-index: 1;
  }
  .leaflet-container {
    height: 100%;
    width: 100%;
  }
}

