/* styles.css */
body {
    background-color: #f0f2f5;
    font-family: Arial, sans-serif;
    padding-bottom: 0px;
}

/* Header Styling */
.site-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar {
    padding: 8px 16px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3478F6;
}

.navbar-brand i {
    margin-right: 8px;
}

.navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.search-form {
    width: 40%;
}

@media (max-width: 992px) {
    .search-form {
        width: 100%;
        margin: 10px 0;
    }
}

/* Left sidebar column */
.left-column {
    background-color: white;
    border-right: 1px solid #ddd;
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
    padding: 20px;
}

/* Make sure left column has a max-height on smaller screens */
@media (max-width: 991px) {
    .left-column {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .left-column {
        display: none;
    }
}

.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic, .mobile-profile-pic {
    border-radius: 50%;
    object-fit: cover;
}

.profile-pic {
    width: 100px;
    height: 100px;
}

.mobile-profile-pic {
    width: 50px;
    height: 50px;
}

.header-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.left-column .nav-link {
    color: #333;
    padding: 10px;
}

.left-column .nav-link:hover {
    background-color: #f0f0f0;
}

/* Main Column */
.main-column {
    padding: 20px;
}

/* Ensure main content is visible on all screen sizes */
@media (max-width: 768px) {
    .main-column {
        padding: 15px 10px;
    }
}

/* Posts styling */
.create-post {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.post {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 15px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-content {
    margin-bottom: 15px;
}

.post-content img, 
.post-content video {
    border-radius: 6px;
    width: 100%;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Action buttons */
.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 576px) {
    .action-group {
        justify-content: flex-start;
    }
    
    .btn-views, .btn-emoji, .rating {
        margin-top: 8px;
    }
}

.btn-emoji, .btn-comment, .btn-like, .btn-share, .btn-views {
    background: none;
    border: none;
    color: #666;
}

.btn-like.liked i {
    color: #1877F2;
}

.rating .star {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
}

.rating .star.active {
    color: gold;
}

/* Comments section */
.comments-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.comment {
    display: flex;
    margin-bottom: 10px;
}

.comment-user-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Multi-Image Gallery */
.multi-image-gallery .row {
    margin: 0;
}

.multi-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.multi-image-gallery .col-6 img,
.multi-image-gallery .col-4 img {
    aspect-ratio: 1/1;
}

.overlay-more-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Emoji container */
.emoji-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.emoji {
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

.emoji:hover {
    background-color: #f0f0f0;
}

/* Load more button */
#load-more {
    margin: 20px 0;
}

/* Mobile menu enhancements */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .navbar-collapse {
        padding: 10px 0;
    }
}

/* Utilities */
.nav-item .nav-link {
    position: relative;
}

.nav-item .nav-link .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Hero slider styles */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 40px;
}

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(60%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-indicator.active {
    background-color: white;
}

@media (max-width: 767px) {
    .hero-slider {
        height: 300px;
    }
}

/* Header container */
.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 15px 20px;
}

/* Search container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 20px;
    position: relative;
    z-index: 10;
    margin-top: -70px;
}

@media (max-width: 767px) {
    .search-container {
        margin-top: -40px;
    }
}

.search-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Category icons */
.category-icons {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 15px;
}

.category-icons .col {
    text-align: center;
    padding: 10px 5px;
}

.icon-box {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
}

.icon-blue {
    color: #3478F6;
}

.icon-dark {
    color: #666;
}

.category-text {
    font-size: 12px;
    display: block;
    line-height: 1.2;
    color: #333;
}

/* Section heading */
.section-heading {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0 20px;
    color: #222;
}

/* Services container */
.services-container, .directory-container, .why-us-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 15px;
}

.service-box {
    background-color: white;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

/* Directory section */
.directory-section {
    margin-top: 20px;
}

.directory-section .row {
    align-items: stretch;
}

.business-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.business-image {
    height: 150px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-image img {
    max-width: 50px;
    /*opacity: 0.3; */
}

.business-details {
    padding: 15px;
}

.business-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.business-tags {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.business-tag {
    display: inline-block;
    margin-right: 5px;
}

.dot-separator:not(:last-child)::after {
    content: "•";
    margin: 0 5px;
}

.rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 5px;
}

.rating .fa-star {
    margin-right: 2px;
}

.distance {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.directory-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 767px) {
    .directory-cards {
        grid-template-columns: 1fr;
    }
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-call {
    flex: 1;
    background-color: #3478F6;
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
}

.btn-directions {
    flex: 1;
    background-color: white;
    color: #3478F6;
    border: 1px solid #3478F6;
    padding: 8px 0;
    border-radius: 4px;
}

/* Map container */
.map-container {
    height: 100%;
    min-height: 300px;
    background-color: #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    color: #3478F6;
    font-size: 30px;
}

/* Why us section */
.why-us-item {
    text-align: center;
    margin-bottom: 20px;
}

.why-us-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #666;
}

.why-us-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.why-us-text {
    font-size: 14px;
    color: #666;
}

/* Register container */
.register-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.register-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #666;
    flex-shrink: 0;
}

.register-content {
    flex: 1;
}

.register-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.register-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.btn-register {
    background-color: #3478F6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    white-space: nowrap;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    display: block;
}

.footer h5 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .left-column {
        display: none;
    }
}

/* Increased icon and font size for categories */
.icon-box-large {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.icon-box-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-text-large {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #495057;
}

/* Directory section modifications for 3-column, 2-row layout */
.directory-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.directory-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.directory-cards {
    margin-top: 20px;
}

.business-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    height: 100%;
}

.business-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-details {
    padding: 15px;
    flex: 1;
}

.business-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #343a40;
}

.business-tags {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.business-tag {
    font-size: 0.8rem;
    color: #6c757d;
}

.dot-separator {
    width: 4px;
    height: 4px;
    background-color: #adb5bd;
    border-radius: 50%;
    margin: 0 6px;
    display: inline-block;
}

.rating {
    margin-bottom: 5px;
    color: #ffc107;
    font-size: 0.9rem;
}

.rating span {
    color: #495057;
}

.distance {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-call, .btn-directions {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-call {
    background-color: #007bff;
    color: #fff;
}

.btn-directions {
    background-color: #ababab;
    border: 1px solid #dee2e6;
    color: #5d5c5c;
}

.btn-call:hover {
    background-color: #0069d9;
}

.btn-directions:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .business-card {
        flex-direction: column;
    }
    
    .business-image {
        width: 100%;
        height: 120px;
    }
}

.vertical-image-container {
    height: 100%;
    min-height: 480px;
    background-color: #f1f3f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vertical-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep the original map-container styles for reference but commented out */
/*
.map-container {
    height: 100%;
    min-height: 300px;
    background-color: #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    color: #3478F6;
    font-size: 30px;
}
*/

/* Media query for responsiveness */
@media (max-width: 767px) {
    .vertical-image-container {
        min-height: 320px;
        margin-bottom: 20px;
    }
}