* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    height: 80px;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f0f0, #e9e9e9);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0891b2;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    color: #333;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #2dd4bf, #0891b2);
    color: white;
}

.btn-logged-in {
    background: linear-gradient(135deg, #c5c5c5, #929292);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.3);
}

/* .mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
} */

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001; /* Make sure it's above other elements */
    position: relative; /* Add this to ensure proper stacking */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease-in-out;
}

/* Add animation for the menu button */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hide mobile menu button by default */
.mobile-menu-btn {
    display: none;
    /* Other existing styles */
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 120px 0 40px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.2em;
}

.hero-text p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

.search-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.search-box {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    background: #0891b2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #0e7490;
}

#search-results-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

#search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.guard-card {
    width:100%;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guard-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.guard-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.guard-card p {
    margin: 0.1rem 0;
    color: #555;
    font-size: 14px;
    line-height: 1em;
}

.guard-card .btn {
    display: inline-block;
    margin-top: 1rem;
}


.guard-card a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#togglePassword {
    user-select: none;
    transition: all 0.2s ease;
}

#togglePassword:hover {
    color: #0891b2;
    transform: translateY(-50%) scale(1.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.guard-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* How it Works Section */
.how-it-works {
    padding: 120px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #1e293b;
}
.mapping{
    margin-top:-20px!important;
}

.map-title{
    margin-top:20px;
    background: #1e293b;
    position:relative;
    padding:15px 25px;
    z-index:999;
}
.map-section-title {    
    text-align: center;
    font-size: 18px;
    font-weight: bold;   
    color:#f0f0f0;
    line-height: 1.2em;    
}
.map-section-subtitle{
    font-size: 12px;
    font-weight:400;
    color:#f0f0f0;
    line-height: 1.2em;
    text-align: center;
}
.loading-control {
    padding: 5px 10px;
    background: white;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 13px;
    color: #333;
}
/* Cluster markers */
.marker-cluster {
    background-color: rgba(13, 148, 136, 0.6);
    border-radius: 50%;
    text-align: center;
    color: #444;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin: 5px;
    background-color: rgba(15, 118, 110, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Different sizes for different cluster counts */
.marker-cluster-small {
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(15, 118, 110, 0.8);
    color:#fff;
}

.marker-cluster-medium {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(15, 118, 110, 0.8);
    color:#fff;
}

.marker-cluster-large {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(15, 118, 110, 0.8);
    color:#fff;
}

.marker-cluster div span {
    font-size: 12px;
}

/* Adjust text size based on cluster size */
.marker-cluster-medium div {
    width: 36px;
    height: 36px;
}

.marker-cluster-large div {
    width: 44px;
    height: 44px;
}

.marker-cluster-medium div span,
.marker-cluster-large div span {
    font-size: 14px;
}
.section-subtitle {
    text-align: justify;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}


.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2dd4bf, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: #f8fafc;
}

.why-choose-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.why-choose-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* Search Results page  */
/* Add to your style.css */
.guard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s;
}

.pagination .btn:hover {
    background-color: #f3f4f6;
}

.pagination .btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Make the View All button stand out */
.btn-secondary {
    background-color: #e2e8f0;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p{
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

table {
    width: 100%;
    margin-bottom: 2rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
}

#total_cost {
    font-weight: bold;
    color: #0891b2;
}

select,
input[type="date"] {
    width: 100%;
    max-width: 200px;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
}

.about-section {
    height: 90vh;
}

.tab-container {
    margin-bottom: 2rem;
}
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 0.5rem;
    border-radius: 5px 5px 0 0;
    background: #f8fafc;
}
.tab.active {
    background: white;
    border-color: #e2e8f0;
    border-bottom-color: white;
    margin-bottom: -1px;
    font-weight: 600;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.dataTables_wrapper {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filters {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-right: 15px;
    display: inline-block;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* map styles */
#map {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

.leaflet-popup-content a {
    color: #007bff;
    text-decoration: none;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {

    .nav-links, .auth-buttons {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 280px;
        height: 100vh;
        background: white;
        position: absolute;            
        right: 0; /* Start on-screen but hidden */
        transform: translateX(100%); /* Move off-screen to the right */
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .nav-links.active, .auth-buttons.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide in */
    }

    .nav-links {
        top: 80px;
    }

    .auth-buttons {
        top: 300px;
        position: absolute; /* Remove fixed positioning to stack below nav-links */
        border-top: 1px solid #eee;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block; /* Show overlay when menu is open */
    }

    .nav-links li {
        width: 100%;
        padding: 2px 0;
        text-align: left;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links a {
        display: block;
        padding: 2px 0;
    }

    .menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
    }

    .mobile-menu-btn {
        display: flex; /* Ensure the toggle button is visible */
    }

    /* Hide desktop nav-links and auth-buttons when mobile menu is active */
    header nav .nav-links:not(.active),
    header nav .auth-buttons:not(.active) {
        display: none;
    }
    .map-title{
        width:85%;
        margin:0 auto;
        top:715px;
        padding:15px 25px;
        transform:translate(-10%,-10%);
    }
    .map-section-title{
        font-size: 14px;
    }
    .map-section-subtitle{
        font-size: 10px;
    }
    

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    #search-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }
}

@media (max-width: 450px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    #search-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .map-title{
        width:85%;
        margin:0 auto;
        top:715px;
        padding:15px 25px;
        transform:translate(-10%,-10%);
    }
    .map-section-title{
        font-size: 14px;
    }
    .map-section-subtitle{
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    /* Reset container and viewport settings */
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    /* Ensure all elements stay within viewport */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Adjust hero section */
    .hero {
        padding: 100px 5px 30px;
        width: 100%;
    }
    
    /* Ensure images and media are responsive */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Adjust text elements */
    .hero-text h1 {
        font-size: 18px;
        word-wrap: break-word;
    }
    
    .hero-text p {
        font-size: 15px;
        line-height: 1.4;
    }
    .hero-image img{
        width: 300px!important;
        height: auto;
        overflow: hidden;
    }
    .hero-image #img-holder{
        width: 300px!important;
        height: 300px!important;
        overflow: hidden;
    }

    .search-container{
        width: 100%;
        max-width: 100%;
    }

    .search-box{
        font-size: 12px;
    }
    #search-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Fix any specific elements causing overflow */
    .steps-grid, 
    .featured-guards .guards-grid,
    .testimonials .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    /* Ensure buttons and form elements fit */
    .btn, 
    input, 
    select, 
    textarea {
        width: 100%;
        max-width: 100%;
    }
    .map-title{
        width:85%;
        margin:0 auto;
        top:715px;
        padding:15px 25px;
        transform:translate(-10%,-10%);
    }
    .map-section-title{
        font-size: 14px;
    }
    .map-section-subtitle{
        font-size: 10px;
    }
}

/* @media (max-width: 360px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p{
        font-size: 15px;
    }

    .section-title {
        font-size: 15px;
    }
} */