/* Search Container */
.search-container {
      max-width: 1390px;
    margin: 0 auto;
    /* position: relative; */
    position: sticky;
    left: 26%;
    width: 50%;
    top: 0;
    margin-top: 0;
}

/* .result-card img{
	    width: 100%;
    height: 220px !important;
    object-fit: cover;
    margin-bottom: 20px;
} */



.search-bar {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.search-icon {
    color: #666;
    flex-shrink: 0;
}

input.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    color: #333;
}

input.search-input::placeholder {
    color: #999;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-btn,
.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.location-btn:hover,
.filter-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.search-btn {
    background: #ff5722;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e64a19;
}

/* Filter Panel */
.filter-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.filter-padding{
     padding: 2rem;
}

.filter-panel.active {
    max-height: 600px;
    margin-bottom: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-label {
  display: block;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #162a62;
    font-size: 1.1rem;
    text-align: left;
    font-size: .775rem;
    line-height: 1.25rem;
}

.location-input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    font-size: 17px !important;
    outline: none ;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
}

.location-input:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

.location-input::placeholder {
    color: #999;
}

/* Distance Slider */
.distance-slider {
    position: relative;
}

.slider {
  width: 100% !important;
    height: 8px;
    border-radius: 3px;
    background: linear-gradient(to right, rgb(182, 239, 255) 0%, rgb(182, 239, 255) 100%);
/* 	background: linear-gradient(to right, rgb(57, 73, 171) 0%, rgb(57, 73, 171) 5.9%, rgb(182, 239, 255) 5.9%, rgb(182, 239, 255) 100%) !important; */
/*     outline: none;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none; */
}

/* .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a237e;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
} */

/* .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a237e;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
} */

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: #F9FAFB;
    border: 1px solid #F9FAFB;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tag:hover {
    background: #e3f2fd;
    border-color: #3949ab;
    color: #1a237e;
}

.filter-tag.active {
    background: #02164D;
    border-color: #02164D;
    color: white;
}
button.location-btn {
    padding: 1px;
}
/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}
.filter-btn{
width: 45px;
    height: 45px;
}
.filter-btn img{
width: 45px;
    height: 45px;
    position: relative;
    top: -9px;
    left: -10px;
}

.location-btn{
    width: 28px;
    height: 28px;
}
.location-btn img{
    width: 35px;
    height: 30px;
    position: relative;
    top: -9px;
    left: -12px;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.clear-all-btn {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Content Section */
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.left-content,
.right-content {
    flex: 1;
}

.left-content h2,
.right-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.right-content {
    text-align: right;
}

/* Results Section */
.results-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.result-card img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px !important;
	margin-bottom: 20px;
}

.result-info {
    color: #333;
    position: relative;
    z-index: 2;
}

.result-info h3 {
      margin-bottom: 12px;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    color: #02164d;
}

.water-quality {
   display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-direction: column;
}
.quality-info span{
    font-size: 14px;
    color: #222222;
}

.water-quality > span {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    flex-shrink: 0;
}

.quality-info {
       display: flex
;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.quality-bar {
        width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 5px;
}

.quality-segment {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.quality-segment.disabled {
    background-color: #e2e8f0 !important;
}

.quality-indicator {
    display: none;
}

.quality-score {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    min-width: 12px;
    text-align: center;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: white;
    border: none;
    padding: 1rem 3rem;
/*     border-radius: 50px; */
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-text {
    transition: opacity 0.3s ease;
}

.load-more-spinner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Placeholder for loading cards */
.result-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.result-card.loading img,
.result-card.loading .result-info {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

/*     .search-container {
        max-width: 90%;
    } */

    .content-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .left-content h2,
    .right-content h2 {
        font-size: 2rem;
    }

    .filter-actions {
        flex-direction: column;
    }

    .apply-filters-btn {
        max-width: none;
    }
    .search-btn{
        display: none;
    }
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .result-card img {
        height: 180px;
    }

    .result-info h3 {
        margin-bottom: 12px;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    color: #02164d;
    }
    
    .quality-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-input-wrapper {
/*         flex-direction: column; */
        gap: 0.5rem;
        align-items: stretch;
		align-items: center !important;
    }

    .search-actions {
        justify-content: center;
    }

    .filter-tags {
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-card img {
        height: 160px;
    }
    
    .water-quality {
        gap: 8px;
    }
    
    .quality-bar {
        width: 100%;
    }
}
.result-card a {
	text-decoration: none !important;
}



/* Single post css */
.details-section{
    display: flex;
    width: 100%;
    gap: 20px;
}

.about-reviess{
    width: 70%;
}
.facilities{
    width: 30%;
}


.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

/* post-header Styles */
.post-header {
     display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    flex-direction: column;
}
.tile-share{
    display: flex
;
    align-items: center;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.back-btn:hover {
   background-color: #045cb400 !important;
  color: #666;
}

.arrow-left {
    font-size: 18px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    flex: 1;
	margin-bottom: 0 !important;
}

.share-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #ff6b35;
    cursor: pointer;
    padding: 8px;
    display: block !important;
}
.share-btn img{
width: 27px;
    height: 27px;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px;
        flex-direction: column;
}

/* Image Gallery */
.image-gallery {
    display: flex
;
gap: 20px;
}

.main-image-container {
    margin-bottom: 20px;
        width: 70%;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-grid {
    display: flex;
    gap: 15px;
        width: 30%;
        flex-direction: column;
        height: 500px;
}

.thumbnail-item {
    position: relative;
    flex: 1;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.view-more {
    position: relative;
}

.view-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* Details Section */
.details-section {
    flex: 1;
    padding-left: 20px;
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.about-section p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.facilities-section {
    margin-bottom: 30px;
}

.facilities-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.facility-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag.easy {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.water-quality {
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.quality-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quality-info span:first-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quality-score {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.quality-bar {
    display: flex;
    gap: 2px;
    height: 8px;
}

.quality-segment {
    flex: 1;
    height: 100%;
    border-radius: 1px;
}

.quality-segment.disabled {
    background-color: #e0e0e0;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.reviews-section {
    margin-bottom: 30px;
}

.reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-count {
    background-color: #00bcd4;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.nearby-section {
    margin-bottom: 30px;
}

.nearby-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.nearby-section p {
    color: #666;
    font-size: 14px;
}

.location-section {
    margin-bottom: 30px;
}

.location-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.direction-link {
    font-size: 14px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.direction-link:hover {
    text-decoration: underline;
}

.map-container {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #d32f2f;
}

.map-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-control {
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-control:hover {
    background: #f5f5f5;
}

.google-logo {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

#popupImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.popup-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-nav.prev {
    left: -70px;
}

.popup-nav.next {
    right: -70px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.main-image-container{
		width: 100%;
	}
	
	.image-gallery{
		flex-direction: column;
	}
    .about-reviess{
    width: 100%;
}
.facilities{
    width: 100%;
}

    .content-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .details-section {
        padding-left: 0;
        flex-direction: column;

    }
    
    .post-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 16px;
    }
	.share-btn img {
    width: 20px;
    height: 20px;
}
    
    .thumbnail-grid {
        flex-direction: column;
        gap: 10px;
		width: 100%;
    }
    
    .thumbnail-item {
        height: 80px;
    }
    
    .popup-nav.prev {
        left: -50px;
    }
    
    .popup-nav.next {
        right: -50px;
    }
	.search-container {
    max-width: 1390px;
    margin: 0 auto;
    /* position: relative; */
    position: sticky;
    left: 0%;
    width: 50%;
    top: 0;
    margin-top: 0;
    width: 90%;
    justify-content: center;
}
}

@media (max-width: 480px) {
    .popup-nav {
        display: none;
    }
    
    .popup-close {
        top: -30px;
        font-size: 24px;
    }
}
