@media (max-width: 600px) {
      .header-mobile-title img {
       margin-right: -100px !important;
    }
    .all-photos-hero {
        margin-bottom: 16px;
    }
    .all-photos-hero-img {
        height: 110px !important;
        max-width: 100vw !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 6px #0001 !important;
        margin: 0 0 8px 0 !important;
    }
    .all-photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 6px !important;
        max-width: 100vw !important;
        margin: 0 0 18px 0 !important;
        padding: 0 2vw !important;
    }
    .all-photos-grid img {
        height: 60px !important;
        border-radius: 2.5px !important;
        box-shadow: 0 1px 4px #00000008 !important;
        background: #fff !important;
    }
    .gallery-title {
        font-size: 1.25rem !important;
        margin-top: 16px !important;
        margin-bottom: 12px !important;
        padding: 0 8px !important;
    }
}
/* Afficher le bouton hamburger et le titre uniquement sur mobile */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .header-mobile-title {
        display: none !important;
    }
}
.nav, .nav-item, .nav-link, .nav-custom {
	font-family: 'Montserrat', Arial, sans-serif !important;
}
.nav-link.nav-custom {
		border-bottom: none !important;
		text-decoration: none !important;
		font-family: 'Montserrat', Arial, sans-serif;
}
.nav-link.nav-custom:hover,
.nav-link.nav-custom:focus {
	border-bottom: none !important;
	text-decoration: none !important;
}
/* Soulignement orange uniquement sous le lien actif */
.nav-link.nav-custom.active {
	position: relative;
}
.nav-link.nav-custom.active::after {
	margin-top: -10px;
	content: "";
	display: block;
	position: absolute;
		left: 50%;
			bottom: -5px;
		width: 150%;
		height: 2px;
		transform: translateX(-50%);
	background: #ff9800;
	border-radius: 2px;
	box-shadow: none;
}
/* Navbar styles for navbar.html selectors */
header {
	margin-top: -30px;
	border: none;
	box-shadow: none;
}

.nav {
	display: flex;
	font-family: 'Montserrat', Arial, sans-serif;
	flex-direction: row;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin-top: 0px;
		padding: 0 0 0 8px;
}
.nav-custom {
    color: #ff9800 !important;
    font-weight: 300;
	font-size: 13px;
		border-bottom: none !important;
    padding-bottom: 0.25rem;
    transition: color 0.2s;
}
.nav-custom.active {
    color: #222 !important;
		border-bottom: none !important;
}
.nav-custom:hover {
    color: #e67e22 !important;
}
nav {
	width: 100%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	box-shadow: none;
}
.user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-top: 1px;
    margin-right: 0px;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

header {
    position: relative;
}

@media (max-width: 600px) {
    .gallery-title {
        margin-left: 50px !important;
    }
    .gallery-card {
            width: 50% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box !important;
        }
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        margin-left: -15px !important;
        font-size: 1.7rem !important;
        line-height: 1 !important;
    }
}
@media (max-width: 600px) {
    .user-avatar {
        display: none !important;
    }
     .gallery-filter-container {
            margin-left: 0;
            width: 100vw;
            max-width: 100vw;
            min-width: 0;
            display: flex;
            justify-content: center;
        }
html, body {
    overflow-x: hidden;
}
}
/* Styles sidebar mobile importés de home.css */

@media (max-width: 768px) {
    .d-flex.d-lg-none.w-100.align-items-center.justify-content-between {
        min-height: 48px !important;
        height: 48px !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
    }
   
    .header-mobile-title {
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        margin-top: 10px !important;
            margin-left: 350px !important;
            margin-right: -100px !important;
        width: auto !important;
        position: static !important;
        display: inline-block !important;
        order: 2 !important;
        font-size: 1.15rem !important;
        font-weight: 500 !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        width: 40px !important;
        height: 100% !important;
        margin-top: -10px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 1 !important;
        font-size: 3.1rem !important;
    }
    /* Cacher l'ancienne version absolute */
    .header-mobile-title[style*="position: absolute"] {
        display: none !important;
    }
}
@media (max-width: 600px) {
    /* Sidebar mobile overlay et drawer (importé de home.css) */
        .gallery-filter-container {
            margin-left: 0;
            width: 100vw;
            max-width: 150vw;
            min-width: 0;
            display: flex;
            justify-content: center;
        }
        .gallery-filter {
            min-width: 0 !important;
            width: 90vw !important;
            max-width: 260px !important;
            padding: 12px 8px !important;
        }
    .gallery-card {
        height: 100%;
        min-height: 220px;
        box-sizing: border-box;
    }
    .gallery-grid {
        align-items: stretch;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 20px !important;
    }
    .gallery-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
        padding: 10px 6px;
        font-size: 0.95rem;
    }
        .gallery-img {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            height: 110px;
            aspect-ratio: 1.3/1;
            object-fit: cover;
            display: block;
            margin: 0 auto;
        }
    .gallery-card-content h2 {
        font-size: 1.1rem;
    }
    .gallery-card-content p {
        font-size: 0.85rem;
    }
    /* Agrandir les cartes de la colonne gauche (impaires) sur mobile */
    .gallery-card:nth-child(odd) {
    width: 100% !important;
    margin-left: 8px !important;
    }
    .gallery-card:nth-child(even) {
        width: 90% !important;
        margin-left: 0 !important;
        margin-right: 0px !important;
    }
}
/* Espacement global entre les blocs du footer sur toutes les pages */
/* Correction footer horizontal pour all-photos.html */
.footer-list a,
.footer-policy-link,
.footer-social-link {
    color: #111 !important;
    transition: color 0.2s;
}
.footer-list a:hover,
.footer-policy-link:hover {
    color: #5f5757 !important;
}
#footer-placeholder .footer-container .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 48px 32px;
}
#footer-placeholder .footer-container .col-md-3 {
        flex: 1 1 0;
        min-width: 220px;
        max-width: 25%;
        box-sizing: border-box;
}
@media (max-width: 900px) {
    #footer-placeholder .footer-container .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 8px !important;
    }
    #footer-placeholder .footer-container .col-md-3 {
        max-width: 100%;
    }
}
/* All Photos Page Custom Layout */
.all-photos-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}
.all-photos-hero-img {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 16px #00000018;
}
.all-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 18px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}
.all-photos-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 8px #00000010;
    background: #fff;
}
@media (max-width: 900px) {
    .all-photos-hero-img {
        height: 200px;
    }
    .all-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-photos-grid img {
        height: 100px;
    }
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: white;
    margin: 0;
    padding: 0;
}

.gallery-title {
    text-align: center;
    font-size: 2.7rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 32px;
    color: #181818;
}

.gallery-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px #00000010;
    padding: 24px 32px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-filter span {
    font-weight: 600;
    color: #181818;
}

.clear-filters {
    align-self: flex-end;
    color: #1e90ff;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 8px;
    cursor: pointer;
}

.gallery-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffb23f;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-left: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.gallery-card {
    background: #fff5ea;
    border-radius: 14px;
    box-shadow: 0 2px 10px #00000010;
    display: flex;
    gap: 24px;
    padding: 24px 24px 24px 24px;
    align-items: center;
    min-height: 260px;
}

.gallery-img {
    width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px #00000010;
}

.gallery-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #181818;
}

.gallery-card-content p {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 4px 0;
}

.rating {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 8px;
}

.show-photos {
    background: #a04c43;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.show-photos:hover {
    background: #7d3a32;
}

.gallery-share-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px 0;
}

.share-photos {
    background: #a04c43;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.share-photos:hover {
    background: #7d3a32;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.gallery-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    max-width: 1100px;
    width: 95vw;
    box-shadow: 0 8px 32px #00000030;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.2rem;
    color: #a04c43;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: #7d3a32;
}

.gallery-modal-main {
    width: 100%;
    max-width: 1000px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px #00000018;
}

.gallery-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 0;
}

.gallery-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.gallery-thumb:hover {
    border: 2px solid #a04c43;
}

@media (max-width: 900px) {
    .gallery-modal-main {
        height: 180px;
    }
    .gallery-modal-content {
        padding: 12px 4px 16px 4px;
    }
    .gallery-modal-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    .gallery-thumb {
        height: 60px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
    }
    .gallery-img {
        width: 100%;
        height: 180px;
    }
}

/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, rgba(160, 76, 67, 0.9), rgba(139, 69, 19, 0.8)), 
                url('../image/paul-macallan-CFKksjYRSQ8-unsplash.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 40px;
}

.gallery-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.gallery-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.gallery-quick-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Enhanced Filter Section */
.gallery-filter {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px 32px;
    min-width: 500px;
    max-width: 700px;
}

.gallery-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gallery-filter-header span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181818;
}

.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.rating-filter {
    display: flex;
    gap: 10px;
}

.rating-filter .stars {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.rating-filter .stars:hover,
.rating-filter .stars.active {
    background: #a04c43;
    color: white;
}

#regionFilter {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 150px;
}

/* Enhanced Gallery Cards */
.gallery-card {
    background: #fff5ea;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-card-content {
    padding: 20px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.show-photos,
.book-tour {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
}

.show-photos {
    background: #f8f9fa;
    color: #555;
    border: 1px solid #e0e0e0;
}

.show-photos:hover {
    background: #e9ecef;
    color: #333;
}

.book-tour {
    background: #a04c43;
    color: white;
}

.book-tour:hover {
    background: #7d3a32;
    transform: translateY(-1px);
}

/* Call to Action Section */
.gallery-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 20px;
    text-align: center;
    margin: 60px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #181818;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 160px;
    justify-content: center;
}

.cta-btn.primary {
    background: #a04c43;
    color: white;
}

.cta-btn.primary:hover {
    background: #7d3a32;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: white;
    color: #a04c43;
    border: 2px solid #a04c43;
}

.cta-btn.secondary:hover {
    background: #a04c43;
    color: white;
}

.cta-btn.tertiary {
    background: #28a745;
    color: white;
}

.cta-btn.tertiary:hover {
    background: #218838;
}

/* Related Links Section */
.related-links {
    margin: 60px 0;
    padding: 0 20px;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-container h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #181818;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #181818;
}

.related-content p {
    color: #666;
    font-size: 0.95rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Modal Enhancements */
.gallery-modal {
    backdrop-filter: blur(4px);
}

.gallery-modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-filter {
        min-width: auto;
        padding: 20px 16px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Customer Experience Gallery Styles */
.gallery-hero {
    background: linear-gradient(135deg, rgba(160, 76, 67, 0.9), rgba(139, 69, 19, 0.8)), 
                url('../image/johannes-plenio-qkfxBc2NQ18-unsplash.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
}

.gallery-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.hero-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #a04c43;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Featured Stories */
.featured-stories {
    padding: 80px 20px;
    max-width: 90vw;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #181818;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.stories-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 600px) {
    /* Make featured stories tidy and equal height on mobile */
    .stories-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .story-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        height: 320px !important; /* fixed card height for uniformity */
        overflow: hidden !important;
        padding: 0 !important;
        border-radius: 12px !important;
    }

    .story-image {
        height: 140px !important; /* fixed image height */
        flex: 0 0 140px !important;
    }

    .story-content {
        padding: 12px !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .story-content .story-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

.story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card.featured {
    position: relative;
}

.story-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.story-card:hover .story-overlay {
    opacity: 1;
}

.play-story {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.story-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.story-content {
    /* Global story content padding (mobile override present earlier in file) */
    padding: 25px;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.traveler-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.traveler-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.traveler-details h4 {
    margin: 0;
    font-weight: 600;
    color: #181818;
}

.location {
    font-size: 0.9rem;
    color: #666;
}

.story-rating .stars {
    color: #ffb23f;
    font-size: 1.1rem;
}

.story-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.story-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Photo Categories */
.photo-categories {
    padding: 80px 20px;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 90vw;
    margin: 0 auto;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile responsive for categories grid */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
    }
    
    .category-card {
        height: 150px !important;
    }
    
    .category-overlay h3 {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }
    
    .photo-count {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .view-category {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 10px !important;
        padding: 0 5px !important;
    }
    
    .category-card {
        height: 120px !important;
    }
    
    .category-overlay h3 {
        font-size: 1rem !important;
    }
    
    .photo-count {
        font-size: 0.75rem !important;
    }
    
    .view-category {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* Page-specific: normalize hamburger & logo sizes on Gallery (mobile only) */
@media (max-width: 768px) {
    /* Ensure header/container tall enough for larger hit area */
    header,
    .d-flex.d-lg-none.w-100.align-items-center.justify-content-between {
        height: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Hamburger: larger, centered hit area */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 64px !important;
        height: 64px !important;
        padding: 8px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        font-size: 28px !important; /* fallback for button content */
        order: 1 !important;
        border-radius: 8px !important;
    }

    /* Icon inside the hamburger */
    .mobile-menu-icon,
    .mobile-menu-btn .mobile-menu-icon,
    .about-mobile-menu-icon {
        font-size: 28px !important;
        line-height: 1 !important;
        color: #222 !important;
    }

    /* SympaTour logo: slightly larger on gallery mobile and add right spacing */
    .navbar-logo,
    .header-mobile-title img,
    .about-mobile-navbar img {
        /* corrected height (was 2px) — slightly larger for visibility */
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
        /* ensure space to the right of the logo */
        margin-right: 16px !important;
        /* keep any left offset used for centering but allow right spacing */
        margin-left: 20vw !important;
    }

    /* Header title: keep centered and responsive */
    .header-mobile-title {
        order: 2 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 20vw !important; /* center title */
        padding: 0 8px !important;
        margin: 0 !important;
    }
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(160,76,67,0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.category-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.photo-count {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.view-category {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-category:hover {
    background: white;
    color: #a04c43;
}

/* Photo Gallery Styles */
.photo-filtering {
    padding: 40px 20px;
    max-width: 90vw;
    margin: 0 auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    background: #a04c43;
    color: white;
    border-color: #a04c43;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-option {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.view-option.active,
.view-option:hover {
    border-color: #a04c43;
    color: #a04c43;
}

/* Photo Cards */
.photo-gallery {
    padding: 0 20px 80px;
    max-width: 90vw;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    gap: 30px;
}

.gallery-grid.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-grid.masonry-view {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 10px;
}

.photo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.photo-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.masonry-view .photo-image {
    height: auto;
    aspect-ratio: 1;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover .photo-image img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-stats {
    display: flex;
    gap: 15px;
    color: white;
    font-size: 0.9rem;
}

.featured-badge {
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
}

.photo-content {
    padding: 20px;
}

.photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.traveler-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.mini-info {
    display: flex;
    flex-direction: column;
}

.traveler-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #181818;
}

.photo-location {
    font-size: 0.8rem;
    color: #666;
}

.photo-date {
    font-size: 0.8rem;
    color: #888;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #181818;
}

.photo-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.photo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Load More */
.gallery-loader {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #a04c43;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: #7d3a32;
    transform: translateY(-2px);
}

/* Community Section */
.community-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.community-content {
    max-width: 90vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.community-benefits {
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-item i {
    width: 40px;
    height: 40px;
    background: rgba(160, 76, 67, 0.1);
    color: #a04c43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-btn {
    background: #a04c43;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.community-stats {
    text-align: center;
}

.stat-circle {
    margin-bottom: 30px;
}

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#a04c43 0deg, #e0e0e0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.circle-progress::before {
    content: '';
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a04c43;
    z-index: 1;
}

.recent-uploads h4 {
    margin-bottom: 20px;
    color: #181818;
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.upload-time {
    color: #888;
    font-size: 0.9rem;
}

/* Modals */
.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.photo-modal.show {
    display: flex;
}

.photo-upload-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #a04c43, #7d3a32);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Upload Area Styles */
.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #a04c43;
    background: rgba(160, 76, 67, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #a04c43;
    background: rgba(160, 76, 67, 0.1);
    box-shadow: 0 8px 25px rgba(160, 76, 67, 0.2);
}

.upload-placeholder i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s;
}

.upload-area:hover .upload-placeholder i {
    color: #a04c43;
    transform: scale(1.1);
}

.upload-placeholder p {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.upload-link {
    color: #a04c43;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: #7d3a32;
}

.upload-placeholder small {
    color: #9ca3af;
    font-size: 0.9rem;
    display: block;
    margin-top: 10px;
}

.files-selected {
    color: #059669;
}

.files-selected i {
    color: #10b981;
    font-size: 3rem;
}

.files-selected p {
    color: #059669;
    font-weight: 600;
}

/* Form Styles */
.upload-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a04c43;
    box-shadow: 0 0 0 3px rgba(160, 76, 67, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating Input Styles */
.rating-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.star {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star:hover ~ .star {
    color: #d1d5db;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #a04c43;
    border-color: #a04c43;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 30px;
    background: #f9fafb;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.btn-primary {
    background: linear-gradient(135deg, #a04c43, #7d3a32);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7d3a32, #5d2a22);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(160, 76, 67, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 400px;
    width: 90%;
}

.success-message.show {
    opacity: 1;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.success-content i {
    font-size: 3.5rem;
    color: #10b981;
}

.success-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #181818;
    margin: 0;
}

.success-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .photo-upload-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 20px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-placeholder i {
        font-size: 3rem;
    }
    
    .upload-placeholder p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-placeholder i {
        font-size: 2.5rem;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Additional styling for better visual hierarchy */
.form-group label {
    position: relative;
}

.form-group label::after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
    font-size: 0.9rem;
}

.form-group:has(input:not([required])) label::after,
.form-group:has(textarea:not([required])) label::after,
.form-group:has(select:not([required])) label::after {
    display: none;
}

/* Enhanced file input styling */
#photoInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-area:hover {
    background: linear-gradient(135deg, rgba(160, 76, 67, 0.05), rgba(160, 76, 67, 0.1));
}

/* Loading states */
.modal-body.loading {
    position: relative;
}

.modal-body.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
}

