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

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #003973 0%, #1e3c72 100%);
            min-height: 100vh;
            color: white;
        }

        a {
            color: #A67C52;
            text-decoration: underline;
            text-underline-offset: 3px;
            transition: color 0.2s ease, text-decoration-color 0.2s ease;
        }

        a:hover {
            color: #8B6914;
            text-decoration-color: #8B6914;
        }

        a:visited {
            color: #7A5C3E;
        }

        .hero {
            text-align: center;
            padding: 80px 20px 60px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
            position: relative;
            overflow: hidden;
        }

        /* Full-width hero variant */
        .hero.hero-fullwidth {
            padding: 20px 0 30px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at center top, rgba(166, 124, 82, 0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: bold;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
            margin-bottom: 20px;
            background: linear-gradient(45deg, #A67C52, #8B6914, #A67C52);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 3s linear infinite;
        }

        @keyframes shimmer {
            to {
                background-position: 200% center;
            }
        }

        .hero p {
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .hero-fullwidth .tagline {
            font-size: 1.5rem;
            font-style: italic;
            font-weight: 500;
            color: #FCB426;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            max-width: 800px;
            padding: 15px 30px;
            margin: 10px auto 0;
            background: rgba(0, 0, 0, 0.3);
            border-left: 3px solid #A67C52;
            border-right: 3px solid #A67C52;
            border-radius: 4px;
        }

        .hero-logo {
            width: 100%;
            max-width: 320px;
            height: auto;
            margin-bottom: 15px;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
            transition: transform 0.3s ease;
        }

        /* Full-width logo */
        .hero-fullwidth .hero-logo {
            max-width: 100%;
            width: 100%;
            margin-bottom: 20px;
            filter: none;
        }

        .hero-logo:hover {
            transform: scale(1.05);
        }

        .hero-fullwidth .hero-logo:hover {
            transform: none;
        }

        .nav {
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 30px;
            flex-wrap: wrap;
            gap: 15px;
            background: rgba(0, 57, 115, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        /* Mobile logo - hidden on desktop, shown on mobile via media query */
        .nav-mobile-logo {
            display: none;
            height: 30px;
        }

        /* Mobile nav container and overlay - hidden on desktop */
        .mobile-nav-container,
        .mobile-nav-overlay {
            display: none;
        }

        .nav-left,
        .nav-right {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .nav-left button,
        .nav-left a.nav-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.25);
            color: white;
            padding: 12px 28px;
            min-height: 44px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-left button:hover,
        .nav-left a.nav-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

        .nav-left button.active,
        .nav-left a.nav-btn.active {
            background: linear-gradient(45deg, #A67C52, #8B6914);
            border-color: transparent;
            color: #003973;
            font-weight: bold;
            box-shadow: 0 5px 20px rgba(166, 124, 82, 0.3);
        }

        .nav-action-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.25);
            color: white;
            padding: 12px 28px;
            min-height: 44px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            text-decoration: none;
        }

        .nav-action-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            color: white;
        }

        .nav-action-btn.logout {
            background: rgba(231, 76, 60, 0.3);
            border-color: rgba(231, 76, 60, 0.5);
        }

        .nav-action-btn.logout:hover {
            background: rgba(231, 76, 60, 0.5);
            border-color: rgba(231, 76, 60, 0.8);
        }

        .nav-action-btn.certificates {
            background: rgba(184, 134, 11, 0.3);
            border-color: rgba(139, 105, 20, 0.5);
        }

        .nav-action-btn.certificates:hover {
            background: rgba(184, 134, 11, 0.5);
            border-color: rgba(139, 105, 20, 0.8);
        }

        .nav-action-btn.facebook-page {
            background: rgba(24, 119, 242, 0.3);
            border-color: rgba(24, 119, 242, 0.5);
        }

        .nav-action-btn.facebook-page:hover {
            background: rgba(24, 119, 242, 0.5);
            border-color: rgba(24, 119, 242, 0.8);
        }

        .nav-action-btn.submit-photo {
            background: rgba(39, 174, 96, 0.3);
            border-color: rgba(39, 174, 96, 0.5);
        }

        .nav-action-btn.submit-photo:hover {
            background: rgba(39, 174, 96, 0.5);
            border-color: rgba(39, 174, 96, 0.8);
        }

        .snark-response {
            position: fixed;
            top: 85px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.95);
            color: #A67C52;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-style: italic;
            text-align: center;
            z-index: 99;
            max-width: 90%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(166, 124, 82, 0.3);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        }

        @media (max-width: 1100px) {
            .snark-response {
                top: 120px;
            }
        }

        @media (max-width: 768px) {
            .snark-response {
                top: 140px;
                font-size: 1rem;
                padding: 12px 20px;
            }
        }

        @media (max-width: 480px) {
            .snark-response {
                top: 155px;
                font-size: 0.9rem;
                padding: 10px 15px;
            }
        }

        .snark-response.visible {
            opacity: 1;
            visibility: visible;
            animation: snarkSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes snarkSlideIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @media (max-width: 1100px) {
            .nav {
                justify-content: center;
                padding: 12px 15px;
            }

            .nav-left,
            .nav-right {
                justify-content: center;
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .nav {
                gap: 10px;
            }

            .nav-left,
            .nav-right {
                gap: 8px;
            }

            .nav-left button,
            .nav-left a.nav-btn,
            .nav-action-btn {
                flex: 1;
                padding: 12px 10px;
                font-size: 13px;
                text-align: center;
                min-width: 0;
            }
        }

        @media (max-width: 480px) {
            .nav-left button,
            .nav-left a.nav-btn,
            .nav-action-btn {
                padding: 10px 8px;
                font-size: 12px;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px 40px;
            padding-bottom: 120px;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        /* Desktop: enforce 3-4 columns */
        @media (min-width: 1200px) {
            .gallery {
                grid-template-columns: repeat(4, 1fr);
                gap: 30px;
            }
        }

        @media (min-width: 900px) and (max-width: 1199px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .gallery-item {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            aspect-ratio: 4/3;
            cursor: pointer;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .gallery-item:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            border-color: rgba(166, 124, 82, 0.3);
        }

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

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
            color: white;
            padding: 40px 15px 15px;
            font-size: 14px;
            font-style: italic;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .gallery-item:hover .gallery-caption {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .gallery-caption {
                opacity: 1;
                font-size: 12px;
                padding: 30px 10px 10px;
            }
        }

        .upload-section {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 40px;
            margin-top: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .upload-section.active {
            display: block;
        }

        .password-form,
        .upload-form {
            max-width: 500px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .form-group input {
            width: 100%;
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 16px;
            backdrop-filter: blur(10px);
        }

        .form-group input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .form-group input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.15);
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal.active {
            display: flex;
        }

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

        .modal img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            z-index: 1001;
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            font-size: 40px;
            padding: 20px 15px;
            cursor: pointer;
            z-index: 1003;
            transition: background 0.3s ease, opacity 0.3s ease;
            backdrop-filter: blur(5px);
            border-radius: 8px;
            opacity: 0.7;
        }

        .modal-nav:hover {
            background: rgba(0, 0, 0, 0.8);
            opacity: 1;
        }

        .modal-prev {
            left: 10px;
        }

        .modal-next {
            right: 10px;
        }

        .modal-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 1001;
            backdrop-filter: blur(5px);
        }

        .modal-hint {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: rgba(255, 255, 255, 0.7);
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 12px;
            z-index: 1001;
            opacity: 1;
            transition: opacity 0.5s ease;
        }

        .modal-caption {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #A67C52;
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 16px;
            font-style: italic;
            z-index: 1001;
            max-width: 80%;
            text-align: center;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(166, 124, 82, 0.3);
        }

        /* Share Buttons */
        .modal-share-buttons {
            position: absolute;
            top: 20px;
            left: 30px;
            display: flex;
            gap: 10px;
            z-index: 1001;
        }

        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .share-btn:hover {
            transform: scale(1.15);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .share-btn.facebook {
            background: #1877F2;
            color: white;
        }

        .share-btn.facebook:hover {
            background: #166fe5;
        }

        .share-btn.twitter {
            background: #000000;
            color: white;
        }

        .share-btn.twitter:hover {
            background: #333333;
        }

        .share-btn.copy-link {
            background: rgba(166, 124, 82, 0.9);
            color: #003973;
        }

        .share-btn.copy-link:hover {
            background: #A67C52;
        }

        .share-btn.copy-link.copied {
            background: #51cf66;
            color: white;
        }

        /* Share toast notification */
        .share-toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: rgba(0, 0, 0, 0.9);
            color: #A67C52;
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 14px;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(166, 124, 82, 0.3);
            max-width: 90%;
            text-align: center;
        }

        .share-toast.visible {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        @media (max-width: 768px) {
            .modal-share-buttons {
                left: 15px;
                top: 15px;
                gap: 8px;
            }

            .share-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }
        }

        @media (max-width: 480px) {
            .modal-share-buttons {
                left: 10px;
                top: 10px;
                gap: 6px;
            }

            .share-btn {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }
        }

        @media (max-width: 768px) {
            .modal-image-container {
                max-width: 95%;
            }

            .modal-nav {
                padding: 15px 12px;
                font-size: 30px;
            }

            .modal-prev {
                left: 5px;
            }

            .modal-next {
                right: 5px;
            }

            .modal-hint {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .modal-image-container {
                max-width: 100%;
            }

            .modal-nav {
                padding: 10px 8px;
                font-size: 24px;
                background: rgba(0, 0, 0, 0.6);
            }

            .modal-prev {
                left: 3px;
            }

            .modal-next {
                right: 3px;
            }
        }

        .error-message {
            color: #ff6b6b;
            text-align: center;
            margin-top: 10px;
            font-weight: bold;
        }

        .success-message {
            color: #51cf66;
            text-align: center;
            margin-top: 10px;
            font-weight: bold;
        }

        /* Comments Panel Styles */
        .modal-comments-panel {
            position: absolute;
            right: 15px;
            top: 70px;
            bottom: 140px;
            width: 350px;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            z-index: 1002;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .comments-header {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #A67C52;
            font-weight: bold;
            font-size: 1.1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .comments-toggle-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0 5px;
        }

        .comments-toggle-btn:hover {
            color: white;
        }

        .comments-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        .comment-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 3px solid #A67C52;
        }

        .comment-header {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
        }

        .comment-author {
            color: #A67C52;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .comment-date {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.75rem;
        }

        .comment-delete-btn {
            background: rgba(231, 76, 60, 0.3);
            border: none;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.7rem;
            margin-left: auto;
        }

        .comment-delete-btn:hover {
            background: rgba(231, 76, 60, 0.6);
        }

        .comment-text {
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.5;
            font-size: 0.9rem;
            word-wrap: break-word;
        }

        .comment-form {
            padding: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comment-form input,
        .comment-form textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 14px;
            font-family: inherit;
        }

        .comment-form input::placeholder,
        .comment-form textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .comment-form input:focus,
        .comment-form textarea:focus {
            outline: none;
            border-color: rgba(166, 124, 82, 0.5);
        }

        .comment-form textarea {
            min-height: 60px;
            resize: vertical;
            max-height: 120px;
        }

        .comment-form .h-captcha {
            margin-bottom: 10px;
        }

        .comment-submit-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(45deg, #A67C52, #8B6914);
            border: none;
            border-radius: 8px;
            color: #003973;
            font-weight: bold;
            cursor: pointer;
            font-size: 14px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .comment-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(166, 124, 82, 0.3);
        }

        .comment-message {
            margin-top: 10px;
            text-align: center;
            font-size: 0.85rem;
        }

        .no-comments {
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            padding: 30px 20px;
            font-style: italic;
        }

        /* Mobile comments button */
        .mobile-comments-btn {
            display: none;
            position: absolute;
            bottom: 140px;
            right: 15px;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(166, 124, 82, 0.5);
            color: #A67C52;
            padding: 10px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            z-index: 1001;
            backdrop-filter: blur(5px);
        }

        .mobile-comments-btn:hover {
            background: rgba(0, 0, 0, 0.95);
        }

        /* Responsive - hide panel on smaller screens */
        @media (max-width: 1100px) {
            .modal-comments-panel {
                display: none;
                position: fixed;
                left: 10px;
                right: 10px;
                top: auto;
                bottom: 10px;
                width: auto;
                max-height: 60vh;
            }

            .modal-comments-panel.mobile-active {
                display: flex;
            }

            .mobile-comments-btn {
                display: block;
            }

            .modal-comments-panel.mobile-active + .mobile-comments-btn {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .modal-comments-panel {
                max-height: 70vh;
            }
        }

        /* Featured House Styles */
        .featured-section {
            background: linear-gradient(135deg, rgba(166, 124, 82, 0.15) 0%, rgba(139, 105, 20, 0.08) 100%);
            border: 2px solid rgba(166, 124, 82, 0.4);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .featured-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(166, 124, 82, 0.1) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }

        .featured-section h2 {
            color: #A67C52;
            font-size: 1.5rem;
            margin-bottom: 5px;
            position: relative;
            z-index: 1;
        }

        .featured-subtitle {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .featured-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            position: relative;
            z-index: 1;
        }

        .featured-image-container {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            max-width: 400px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

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

        .featured-image-container img {
            width: 100%;
            height: auto;
            display: block;
        }

        .featured-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: linear-gradient(45deg, #FFD700, #FFA500);
            color: #000;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }

        .featured-votes {
            font-size: 1.1rem;
            color: #A67C52;
            font-weight: bold;
            text-align: center;
        }

        .vote-countdown-label {
            margin-left: 8px;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: normal;
        }

        #voteCountdown {
            color: #A67C52;
            font-weight: bold;
        }

        .featured-no-votes {
            color: rgba(255, 255, 255, 0.6);
            font-style: italic;
            padding: 40px;
            position: relative;
            z-index: 1;
            text-align: center;
        }

        @media (max-width: 768px) {
            .featured-content {
                flex-direction: column;
            }

            .featured-image-container {
                max-width: 100%;
            }
        }

        /* Vote Button Styles */
        .vote-btn {
            background: linear-gradient(45deg, rgba(166, 124, 82, 0.2), rgba(166, 124, 82, 0.1));
            border: 2px solid rgba(166, 124, 82, 0.5);
            color: #A67C52;
            padding: 8px 16px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .vote-btn:hover:not(.voted) {
            background: linear-gradient(45deg, rgba(166, 124, 82, 0.4), rgba(166, 124, 82, 0.2));
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(166, 124, 82, 0.3);
        }

        .vote-btn.voted {
            background: linear-gradient(45deg, #A67C52, #8B6914);
            color: #003973;
            border-color: transparent;
            cursor: pointer;
        }

        .vote-btn.voted:hover {
            background: linear-gradient(45deg, #e0a020, #e0c010);
            transform: translateY(-2px);
        }

        .vote-btn.can-change {
            opacity: 0.7;
            cursor: pointer;
        }

        .vote-btn.can-change:hover {
            opacity: 1;
            background: linear-gradient(45deg, rgba(166, 124, 82, 0.4), rgba(166, 124, 82, 0.2));
        }

        /* Vote change confirmation tooltip */
        .vote-change-tooltip {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10000;
            animation: tooltipFadeIn 0.2s ease-out;
        }

        @keyframes tooltipFadeIn {
            from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
            to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        .vote-change-content {
            background: linear-gradient(135deg, #1a365d 0%, #003973 100%);
            border: 2px solid rgba(166, 124, 82, 0.5);
            border-radius: 12px;
            padding: 20px 30px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .vote-change-content p {
            color: #fff;
            font-size: 16px;
            margin: 0 0 15px 0;
        }

        .vote-change-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .vote-change-ok,
        .vote-change-cancel {
            padding: 8px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .vote-change-ok {
            background: linear-gradient(45deg, #A67C52, #8B6914);
            color: #003973;
        }

        .vote-change-ok:hover {
            background: linear-gradient(45deg, #8B6914, #A67C52);
            transform: translateY(-2px);
        }

        .vote-change-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .vote-change-cancel:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .vote-btn .vote-icon {
            font-size: 1.1em;
        }

        .vote-btn .vote-count {
            background: rgba(0, 0, 0, 0.2);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.9em;
        }

        .voted .vote-count {
            background: rgba(0, 57, 115, 0.3);
        }

        /* Gallery item vote overlay */
        .gallery-vote {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 5;
        }

        .gallery-vote .vote-btn {
            padding: 6px 12px;
            font-size: 12px;
            backdrop-filter: blur(5px);
        }

        /* Map View Styles */
        .map-section {
            display: none;
            margin-top: 30px;
        }

        .map-section.active {
            display: block;
        }

        .map-container {
            height: 600px;
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .map-container .leaflet-popup-content-wrapper {
            background: rgba(0, 57, 115, 0.95);
            color: white;
            border-radius: 12px;
        }

        .map-container .leaflet-popup-tip {
            background: rgba(0, 57, 115, 0.95);
        }

        .map-popup {
            text-align: center;
            min-width: 200px;
        }

        .map-popup h4 {
            color: #A67C52;
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .map-popup-image {
            width: 180px;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .map-popup-link {
            display: inline-block;
            background: linear-gradient(45deg, #A67C52, #8B6914);
            color: #003973;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.85rem;
            margin-top: 8px;
        }

        .map-popup-link:hover {
            transform: scale(1.05);
        }

        .map-popup-votes {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            margin-top: 5px;
        }

        @media (max-width: 768px) {
            .map-container {
                height: 400px;
            }
        }

        /* Property Admin Styles */
        .property-admin {
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .property-admin h3 {
            color: #A67C52;
            margin-bottom: 20px;
        }

        .property-form {
            display: grid;
            gap: 15px;
            margin-bottom: 20px;
        }

        .property-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        @media (max-width: 600px) {
            .property-form-row {
                grid-template-columns: 1fr;
            }
        }

        .property-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 20px;
        }

        .property-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 3px solid #A67C52;
        }

        .property-item-info {
            flex: 1;
        }

        .property-item-address {
            font-weight: bold;
            color: white;
        }

        .property-item-meta {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .property-item-actions {
            display: flex;
            gap: 8px;
        }

        .property-item-actions button {
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }

        .property-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            min-width: 36px;
        }

        .property-btn:hover {
            transform: scale(1.1);
        }

        .property-edit-btn {
            background: rgba(102, 126, 234, 0.3);
        }

        .property-edit-btn:hover {
            background: rgba(102, 126, 234, 0.5);
        }

        .property-hide-btn {
            background: rgba(255, 193, 7, 0.3);
        }

        .property-hide-btn:hover {
            background: rgba(255, 193, 7, 0.5);
        }

        .property-delete-btn {
            background: rgba(231, 76, 60, 0.3);
        }

        .property-delete-btn:hover {
            background: rgba(231, 76, 60, 0.5);
        }

        .property-hidden {
            opacity: 0.6;
            border-left-color: #888;
        }

        .hidden-badge {
            background: rgba(255, 193, 7, 0.8);
            color: #000;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: bold;
            margin-right: 5px;
        }

        /* Property Edit Modal */
        .property-edit-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .property-edit-content {
            background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
            border: 1px solid rgba(166, 124, 82, 0.3);
            border-radius: 15px;
            padding: 25px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .property-edit-content h3 {
            color: #A67C52;
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .property-edit-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .property-edit-form label {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            margin-bottom: -8px;
        }

        .property-edit-form input,
        .property-edit-form textarea {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 10px 12px;
            color: white;
            font-size: 0.95rem;
        }

        .property-edit-form input:focus,
        .property-edit-form textarea:focus {
            outline: none;
            border-color: #A67C52;
        }

        .property-edit-form textarea {
            min-height: 80px;
            resize: vertical;
        }

        .property-edit-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            justify-content: flex-end;
        }

        .property-edit-actions button {
            padding: 10px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s ease;
        }

        .btn-save {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .btn-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Image Assignment in Modal */
        .modal-property-assign {
            position: absolute;
            bottom: 60px;
            right: 15px;
            background: rgba(0, 0, 0, 0.9);
            padding: 10px 15px;
            border-radius: 10px;
            z-index: 1002;
            display: none;
        }

        .modal-property-assign.visible {
            display: block;
        }

        .modal-property-assign label {
            color: #A67C52;
            font-size: 0.85rem;
            display: block;
            margin-bottom: 5px;
        }

        .modal-property-assign select {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.9rem;
            min-width: 200px;
        }

        .modal-property-assign select option {
            background: #003973;
            color: white;
        }

        /* Property Group Headers in Gallery */
        .property-group {
            margin-bottom: 40px;
        }

        .property-group-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(166, 124, 82, 0.15) 0%, rgba(139, 105, 20, 0.08) 100%);
            border: 1px solid rgba(166, 124, 82, 0.3);
            border-radius: 12px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .property-group-header:hover {
            background: linear-gradient(135deg, rgba(166, 124, 82, 0.25) 0%, rgba(139, 105, 20, 0.15) 100%);
        }

        .property-group-header h3 {
            color: #A67C52;
            font-size: 1.1rem;
            flex: 1;
        }

        .property-group-header .maps-link {
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            color: white;
            text-decoration: none;
        }

        .property-group-header .maps-link:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .property-group-header .image-count {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .property-group-header .expand-icon {
            color: rgba(255, 255, 255, 0.6);
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .property-group.expanded .expand-icon {
            transform: rotate(180deg);
        }

        .property-group-images {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        /* Collapsed state - show stacked preview */
        .property-group.collapsed .property-group-images {
            display: none;
        }

        .property-group-preview {
            display: none;
            position: relative;
            width: 200px;
            height: 150px;
            margin: 0 auto 15px;
            cursor: pointer;
        }

        .property-group.collapsed .property-group-preview {
            display: block;
        }

        .property-group.expanded .property-group-preview {
            display: none;
        }

        .preview-stack {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }

        .preview-stack img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .preview-stack:nth-child(1) {
            z-index: 3;
        }

        .preview-stack:nth-child(2) {
            z-index: 2;
            transform: translate(8px, 8px) scale(0.95);
            opacity: 0.7;
        }

        .preview-stack:nth-child(3) {
            z-index: 1;
            transform: translate(16px, 16px) scale(0.9);
            opacity: 0.4;
        }

        .preview-count {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.8);
            color: #A67C52;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: bold;
            z-index: 10;
        }

        .property-group-preview:hover .preview-stack:nth-child(1) {
            transform: translateY(-5px);
        }

        .unassigned-section {
            margin-top: 50px;
            padding-top: 30px;
            border-top: 2px dashed rgba(255, 255, 255, 0.2);
        }

        .unassigned-section h3 {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
            font-style: italic;
        }

        .content-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        @media (min-width: 1000px) {
            .content-section {
                grid-template-columns: 1fr 1fr;
            }
        }

        .content-card {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            padding: 30px 35px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            line-height: 1.8;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .content-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .content-card h3 {
            color: #A67C52;
            margin-bottom: 20px;
            font-size: 1.4rem;
        }

        .content-card p {
            margin-bottom: 18px;
            font-size: 1.05rem;
        }
        /* Content + Blog Two-Column Layout */
        .content-blog-wrapper {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        @media (min-width: 1000px) {
            .content-blog-wrapper {
                grid-template-columns: 1fr 1fr;
            }
        }

        .inline-blog {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            padding: 25px 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-height: 600px;
            overflow-y: auto;
        }

        .inline-blog .blog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(166, 124, 82, 0.3);
        }

        .inline-blog .blog-header h3 {
            color: #A67C52;
            margin: 0;
            font-size: 1.3rem;
        }

        .inline-blog .blog-posts {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .inline-blog .blog-post {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 20px;
            border-left: 3px solid #A67C52;
        }

        .inline-blog .blog-post-title {
            color: #A67C52;
            margin: 0 0 5px 0;
            font-size: 1.1rem;
        }

        .inline-blog .blog-post-date {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
            margin-bottom: 10px;
        }

        .inline-blog .blog-post-content {
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .inline-blog .blog-post-content p {
            margin: 0 0 10px 0;
        }

        .inline-blog .blog-post-content p:last-child {
            margin-bottom: 0;
        }

        .inline-blog .blog-post-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .inline-blog .blog-post-actions button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 4px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .inline-blog .blog-post-actions button:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .inline-blog .blog-post-actions .delete-btn:hover {
            background: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }

        .inline-blog .blog-empty,
        .inline-blog .blog-loading {
            text-align: center;
            padding: 30px;
            color: rgba(255, 255, 255, 0.6);
        }

        /* ===========================================
           NEWSPAPER LAYOUT STYLES
           =========================================== */

        .newspaper-layout {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
        }

        @media (min-width: 900px) {
            .newspaper-layout {
                grid-template-columns: 2fr 1fr;
            }
        }

        /* Section Headers - Newspaper Style */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px double #A67C52;
            padding-bottom: 10px;
            margin-bottom: 25px;
        }

        .section-header h2 {
            font-family: 'Georgia', 'Times New Roman', serif;
            font-size: 1.6rem;
            color: #A67C52;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 0;
        }

        /* Editorial Section */
        .editorial-section {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            padding: 30px;
            border: 1px solid rgba(166, 124, 82, 0.2);
        }

        .editorial-posts {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .editorial-post {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            padding: 25px;
            border-left: 4px solid #A67C52;
        }

        .editorial-post-title {
            font-family: 'Georgia', 'Times New Roman', serif;
            font-size: 1.5rem;
            color: #A67C52;
            margin: 0 0 8px 0;
            line-height: 1.3;
        }

        .editorial-post-meta {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            font-size: 0.85rem;
            margin-bottom: 15px;
        }

        .editorial-post-author {
            color: #A67C52;
            font-style: italic;
        }

        .editorial-post-date {
            color: rgba(255, 255, 255, 0.5);
        }

        .editorial-post-content {
            font-size: 1.05rem;
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.9);
        }

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

        .editorial-post-content p:first-of-type::first-letter {
            font-size: 3em;
            float: left;
            line-height: 0.8;
            padding-right: 10px;
            padding-top: 4px;
            color: #A67C52;
            font-family: 'Georgia', serif;
            font-weight: bold;
        }

        .editorial-post-image {
            max-width: 100%;
            border-radius: 8px;
            margin-top: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .editorial-post-image:hover {
            transform: scale(1.02);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        }

        .editorial-post-image.inline {
            float: right;
            max-width: 40%;
            margin: 0 0 15px 20px;
        }

        .editorial-post-actions {
            display: flex;
            gap: 8px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .editorial-post-actions button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }

        .editorial-post-actions button:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .editorial-post-actions .delete-btn:hover {
            background: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }

        /* Updates Section - Sidebar Style */
        .updates-section {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-height: 800px;
            overflow-y: auto;
        }

        .update-posts {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .update-post {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            border-left: 3px solid rgba(166, 124, 82, 0.5);
            transition: all 0.2s ease;
        }

        .update-post:hover {
            background: rgba(255, 255, 255, 0.08);
            border-left-color: #A67C52;
        }

        .update-post-title {
            font-size: 1rem;
            color: #A67C52;
            margin: 0 0 5px 0;
            font-weight: 600;
        }

        .update-post-meta {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 0.75rem;
            margin-bottom: 8px;
        }

        .update-post-author {
            color: #A67C52;
        }

        .update-post-date {
            color: rgba(255, 255, 255, 0.4);
        }

        .update-post-content {
            font-size: 0.9rem;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.8);
        }

        .update-post-content p {
            margin: 0 0 8px 0;
        }

        .update-post-content p:last-child {
            margin-bottom: 0;
        }

        .update-post-image {
            max-width: 100%;
            border-radius: 6px;
            margin-top: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .update-post-image:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .update-post-image.inline {
            float: right;
            max-width: 35%;
            margin: 0 0 10px 12px;
        }

        .update-post-actions {
            display: flex;
            gap: 6px;
            margin-top: 10px;
        }

        .update-post-actions button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: rgba(255, 255, 255, 0.6);
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.75rem;
        }

        .update-post-actions button:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .update-post-actions .delete-btn:hover {
            background: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }

        .editorial-empty,
        .editorial-loading,
        .update-empty,
        .update-loading {
            text-align: center;
            padding: 40px 20px;
            color: rgba(255, 255, 255, 0.5);
            font-style: italic;
        }

        /* Mobile: Stack sections */
        @media (max-width: 899px) {
            .newspaper-layout {
                display: flex;
                flex-direction: column;
                margin: 15px auto;
                padding: 0 8px;
                gap: 20px;
            }

            .editorial-section,
            .updates-section {
                max-height: none;
                border-radius: 8px;
            }

            .editorial-section {
                order: 1 !important; /* Editorials first on mobile */
                padding: 15px 12px;
                background: rgba(0, 0, 0, 0.15);
            }

            .updates-section {
                order: 2 !important; /* Grapevine second on mobile */
                padding: 15px 12px;
                background: rgba(0, 0, 0, 0.2);
            }

            .editorial-post {
                padding: 15px 10px;
                border-left-width: 3px;
            }

            .editorial-post-title {
                font-size: 1.2rem;
            }

            .editorial-post-content {
                font-size: 1rem;
                line-height: 1.7;
            }

            .editorial-post-content p:first-of-type::first-letter {
                font-size: 2.2em;
                padding-right: 6px;
            }

            .editorial-post-image.inline {
                float: none;
                max-width: 100%;
                margin: 15px 0;
            }

            .update-post {
                padding: 12px 10px;
                border-left-width: 2px;
            }

            .section-header {
                margin-bottom: 15px;
                padding-bottom: 8px;
            }

            .section-header h2 {
                font-size: 1.15rem;
                letter-spacing: 1px;
            }
        }

        /* Extra small screens - maximize content width */
        @media (max-width: 480px) {
            .newspaper-layout {
                padding: 0 5px;
                gap: 15px;
                margin: 10px auto;
            }

            .editorial-section,
            .updates-section {
                padding: 12px 10px;
                border-radius: 6px;
                border: none;
            }

            .editorial-post {
                padding: 12px 8px;
                background: transparent;
            }

            .editorial-post-title {
                font-size: 1.1rem;
            }

            .editorial-post-content {
                font-size: 0.95rem;
                line-height: 1.65;
            }

            .editorial-post-content p:first-of-type::first-letter {
                font-size: 2em;
                padding-right: 5px;
            }

            .section-header h2 {
                font-size: 1.05rem;
                letter-spacing: 0.5px;
            }

            .update-post {
                padding: 10px 8px;
            }

            .update-post-title {
                font-size: 0.95rem;
            }

            .update-post-content {
                font-size: 0.85rem;
                line-height: 1.5;
            }
        }

        /* Post Image Preview in Editor */
        .post-image-preview {
            margin-top: 10px;
        }

        .post-image-preview img {
            max-width: 200px;
            max-height: 150px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .post-image-preview .remove-image {
            display: block;
            margin-top: 8px;
            color: #e74c3c;
            font-size: 0.85rem;
            cursor: pointer;
            background: none;
            border: none;
        }

        /* About Page */
        .about-page {
            max-width: 800px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .about-page .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: #A67C52;
            text-decoration: none;
        }

        .about-page .back-link:hover {
            color: #FCB426;
        }

        .about-content {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            padding: 40px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .about-content h2 {
            font-family: 'Georgia', serif;
            color: #A67C52;
            font-size: 1.8rem;
            margin-bottom: 25px;
        }

        .about-content h3 {
            color: #A67C52;
            margin: 30px 0 15px;
            font-size: 1.3rem;
        }

        .about-content p {
            line-height: 1.8;
            margin-bottom: 18px;
            font-size: 1.05rem;
        }

        .about-content .legal-links {
            margin: 20px 0;
            padding-left: 25px;
        }

        .about-content .legal-links li {
            margin-bottom: 12px;
            line-height: 1.6;
        }

        .about-content .real-talk {
            background: rgba(166, 124, 82, 0.1);
            border-left: 4px solid #A67C52;
            padding: 20px;
            margin-top: 30px;
            border-radius: 0 8px 8px 0;
        }

        /* Post Comments Section */
        .post-comments-section {
            margin-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 10px;
        }

        .post-comments-section.compact {
            margin-top: 10px;
        }

        .post-comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 8px 0;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .post-comments-header:hover {
            color: #A67C52;
        }

        .post-comments-toggle {
            font-size: 1.2rem;
            font-weight: bold;
            width: 24px;
            text-align: center;
        }

        .post-comment-count {
            color: #A67C52;
        }

        .post-comments-body {
            padding: 15px 0;
        }

        .post-comments-list {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 15px;
        }

        .post-comment {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 2px solid rgba(166, 124, 82, 0.4);
        }

        .post-comment-author {
            color: #A67C52;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .post-comment-date {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.75rem;
            margin-bottom: 8px;
        }

        .post-comment-text {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .post-comment-form input,
        .post-comment-form textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            font-size: 0.9rem;
            box-sizing: border-box;
        }

        .post-comment-form textarea {
            min-height: 80px;
            resize: vertical;
            font-family: inherit;
        }

        .post-comment-form input:focus,
        .post-comment-form textarea:focus {
            outline: none;
            border-color: #A67C52;
        }

        .post-comment-form button {
            background: linear-gradient(45deg, #A67C52, #8B6914);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

        .post-comment-form button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(166, 124, 82, 0.3);
        }

        .post-comment-form .h-captcha {
            margin-bottom: 10px;
        }

        .post-comment-message {
            margin-top: 10px;
            font-size: 0.85rem;
        }

        .post-comment-message .error {
            color: #e74c3c;
        }

        .post-comment-message .success {
            color: #2ecc71;
        }

        .post-comment-message .posting {
            color: rgba(255, 255, 255, 0.6);
        }

        .no-comments,
        .loading-comments,
        .error-comments {
            text-align: center;
            padding: 20px;
            color: rgba(255, 255, 255, 0.5);
            font-style: italic;
        }

        /* Compact comments for update posts */
        .post-comments-section.compact .post-comments-list {
            max-height: 200px;
        }

        .post-comments-section.compact .post-comment-form textarea {
            min-height: 60px;
        }

        /* Post Image Lightbox Modal */
        .post-image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        .post-image-modal.active {
            display: flex;
        }

        .post-image-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            cursor: pointer;
        }

        .post-image-modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            z-index: 1;
        }

        .post-image-modal-content img {
            max-width: 100%;
            max-height: 85vh;
            border-radius: 8px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        }

        .post-image-modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: none;
            border: none;
            color: white;
            font-size: 36px;
            cursor: pointer;
            padding: 0 10px;
            line-height: 1;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .post-image-modal-close:hover {
            opacity: 1;
            color: #FCB426;
        }

        @media (max-width: 768px) {
            .post-image-modal-close {
                top: -35px;
                font-size: 30px;
            }
        }

        /* END NEWSPAPER LAYOUT STYLES */

        .edit-controls {
            display: none;
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            gap: 10px;
            z-index: 10;
        }

        .gallery-item:hover .edit-controls {
            display: flex;
        }

        .edit-btn {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            color: #333;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .edit-btn:hover {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.05);
        }

        .edit-btn {
            min-height: 44px;
            min-width: 44px;
        }

        .rotate-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .blur-btn {
            background: linear-gradient(45deg, #00b894, #00cec9);
            color: white;
        }

        .delete-btn {
            background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
            color: white;
        }

        .featured-btn {
            background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
            color: #666;
        }

        .featured-btn.is-featured {
            background: linear-gradient(45deg, #ffd700, #ffb700);
            color: #333;
        }

        .featured-btn:hover {
            background: linear-gradient(45deg, #ffd700, #ffb700);
        }

        .featured-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: linear-gradient(45deg, #ffd700, #ffb700);
            color: #333;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            z-index: 5;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .visitor-counter {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            border: 3px solid #ecf0f1;
            border-radius: 10px;
            padding: 15px 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            font-family: 'Courier New', monospace;
            z-index: 999;
        }

        .visitor-counter-label {
            color: #ecf0f1;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
            text-align: center;
        }

        /* Awards Section */
        .awards-section {
            margin-top: 0;
        }

        .awards-section h3 {
            color: #A67C52;
            margin-bottom: 20px;
            font-size: 1.3rem;
            text-align: center;
        }

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

        .award-card {
            background: linear-gradient(135deg, rgba(166, 124, 82, 0.12) 0%, rgba(139, 105, 20, 0.08) 100%);
            border: 1px solid rgba(166, 124, 82, 0.25);
            border-radius: 14px;
            padding: 18px 15px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .award-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 35px rgba(166, 124, 82, 0.25);
            border-color: rgba(166, 124, 82, 0.5);
            background: linear-gradient(135deg, rgba(166, 124, 82, 0.2) 0%, rgba(139, 105, 20, 0.12) 100%);
        }

        .award-icon {
            font-size: 2.2rem;
            margin-bottom: 8px;
            transition: transform 0.3s ease;
        }

        .award-card:hover .award-icon {
            transform: scale(1.15);
        }

        .award-title {
            color: #A67C52;
            font-weight: bold;
            font-size: 1rem;
            margin-bottom: 8px;
        }

        .award-description {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            font-style: italic;
        }

        .award-year {
            display: inline-block;
            background: rgba(166, 124, 82, 0.2);
            color: #A67C52;
            padding: 3px 10px;
            border-radius: 10px;
            font-size: 0.75rem;
            margin-top: 10px;
        }

        @media (max-width: 768px) {
            .awards-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .awards-grid {
                grid-template-columns: 1fr;
            }

            .award-card {
                padding: 15px;
            }

            .award-icon {
                font-size: 2rem;
            }
        }

        .visitor-counter-display {
            background: #000;
            color: #0f0;
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            font-family: 'Courier New', monospace;
            letter-spacing: 3px;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
            text-shadow: 0 0 5px #0f0;
        }

        /* Large tablets and small desktops */
        @media (max-width: 1024px) {
            .container {
                max-width: 900px;
            }

            .gallery {
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            }
        }

        /* Tablets */
        @media (max-width: 768px) {
            .hero {
                padding: 40px 15px 30px;
            }

            .hero.hero-fullwidth {
                padding: 10px 0 20px;
            }

            .hero-logo {
                max-width: 220px;
            }

            .hero-fullwidth .hero-logo {
                max-width: 100%;
            }

            .hero h1 {
                font-size: clamp(1.8rem, 6vw, 3rem);
            }

            .hero p {
                font-size: 1rem;
            }

            .hero-fullwidth .tagline {
                font-size: 1.2rem;
                padding: 12px 20px;
                margin: 8px 15px 0;
            }

            .container {
                padding: 15px;
                padding-bottom: 100px;
            }

            .gallery {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }

            .upload-section {
                padding: 25px 20px;
            }

            .nav {
                gap: 10px;
            }

            .nav button {
                padding: 12px 24px;
                font-size: 15px;
                min-height: 44px;
            }

            .visitor-counter {
                bottom: 10px;
                right: 10px;
                padding: 10px 15px;
            }

            .visitor-counter-display {
                font-size: 18px;
                padding: 6px 12px;
            }

            .edit-controls {
                display: flex;
                opacity: 1;
            }

            .content-card {
                padding: 20px;
            }
        }

        /* ========== MOBILE-FIRST IMPROVEMENTS ========== */

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 24px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            position: relative;
            z-index: 110;
        }

        .hamburger span {
            display: block;
            width: 30px;
            height: 4px;
            background: #A67C52;
            border-radius: 3px;
            transition: all 0.3s ease;
            box-shadow: 0 0 3px rgba(0,0,0,0.5);
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Mobile Navigation Drawer */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav {
                flex-wrap: nowrap;
                justify-content: space-between;
                padding: 12px 15px;
            }

            .nav-left,
            .nav-right {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background: rgba(0, 57, 115, 0.98);
                flex-direction: column;
                justify-content: flex-start;
                padding: 80px 20px 30px;
                gap: 12px;
                transition: right 0.3s ease;
                z-index: 105;
                overflow-y: auto;
            }

            .nav-left.mobile-open,
            .nav-right.mobile-open {
                right: 0;
            }

            .nav-right {
                top: auto;
                padding-top: 20px;
                border-top: 1px solid rgba(255, 255, 255, 0.2);
                position: relative;
                right: 0;
                width: 100%;
                max-width: none;
                height: auto;
            }

            .mobile-nav-container {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background: rgba(0, 57, 115, 0.98);
                backdrop-filter: blur(20px);
                z-index: 105;
                transition: right 0.3s ease;
                display: flex;
                flex-direction: column;
                padding: 80px 20px 30px;
                overflow-y: auto;
            }

            .mobile-nav-container.open {
                right: 0;
            }

            .mobile-nav-container .nav-left,
            .mobile-nav-container .nav-right {
                display: flex;
                flex-direction: column;
                position: relative;
                right: 0;
                width: 100%;
                height: auto;
                padding: 0;
                background: transparent;
                gap: 10px;
            }

            .mobile-nav-container .nav-left button,
            .mobile-nav-container .nav-left a.nav-btn,
            .mobile-nav-container .nav-action-btn {
                width: 100%;
                text-align: center;
                padding: 14px 20px;
                font-size: 15px;
            }

            .mobile-nav-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 104;
            }

            .mobile-nav-overlay.open {
                display: block;
            }

            /* Keep only hamburger visible in nav */
            .nav > .nav-left,
            .nav > .nav-right {
                display: none;
            }

            .nav > .hamburger {
                display: flex !important;
                position: relative;
                z-index: 999;
            }

            /* Mobile logo in nav */
            .nav-mobile-logo {
                height: 30px;
                display: block;
            }

            /* Mobile nav drawer button styling */
            .mobile-nav-item {
                width: 100%;
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid rgba(255, 255, 255, 0.2);
                color: white;
                padding: 16px 20px;
                border-radius: 12px;
                font-size: 16px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
                text-align: left;
            }

            .mobile-nav-item:hover,
            .mobile-nav-item:active {
                background: rgba(255, 255, 255, 0.2);
                border-color: rgba(166, 124, 82, 0.5);
            }

            .mobile-nav-item.active {
                background: linear-gradient(45deg, #A67C52, #8B6914);
                color: #003973;
                border-color: transparent;
                font-weight: bold;
            }

            .mobile-nav-container .nav-right {
                margin-top: 20px;
                padding-top: 20px;
                border-top: 1px solid rgba(255, 255, 255, 0.15);
                gap: 10px;
            }

            .mobile-nav-container .nav-action-btn {
                width: 100%;
                text-align: center;
                padding: 14px 20px;
                border-radius: 10px;
            }
        }

        /* Better gallery on mobile - always 2 columns */
        @media (max-width: 600px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .gallery-item {
                aspect-ratio: 1/1;
            }
        }

        /* Single column on very small screens */
        @media (max-width: 380px) {
            .gallery {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .gallery-item {
                aspect-ratio: 4/3;
            }
        }

        /* Improved modal for mobile */
        @media (max-width: 768px) {
            .modal-image-container {
                max-width: 100%;
                max-height: 100%;
                padding: 10px;
            }

            .modal img {
                max-height: 70vh;
                border-radius: 8px;
            }

            .modal-caption {
                bottom: auto;
                top: 10px;
                left: 10px;
                right: 60px;
                transform: none;
                font-size: 13px;
                padding: 10px 15px;
                border-radius: 15px;
                max-width: none;
            }

            .modal-counter {
                bottom: 15px;
                padding: 6px 14px;
                font-size: 13px;
            }

            .modal-hint {
                bottom: 50px;
                font-size: 11px;
            }

            .modal-close {
                top: 10px;
                right: 15px;
                font-size: 32px;
                width: 44px;
                height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(0, 0, 0, 0.5);
                border-radius: 50%;
            }

            .modal-nav {
                padding: 12px 10px;
                font-size: 24px;
                opacity: 0.9;
            }

            .modal-prev {
                left: 5px;
            }

            .modal-next {
                right: 5px;
            }
        }

        /* Touch-friendly swipe hint */
        .swipe-hint {
            display: none;
            position: absolute;
            bottom: 85px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            text-align: center;
            z-index: 1001;
        }

        @media (max-width: 768px) {
            .swipe-hint {
                display: block;
            }
        }

        /* Collapsible visitor counter on mobile */
        @media (max-width: 768px) {
            .visitor-counter {
                bottom: 10px;
                right: 10px;
                padding: 8px 12px;
                border-radius: 8px;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            .visitor-counter.collapsed {
                padding: 8px 10px;
            }

            .visitor-counter.collapsed .visitor-counter-label {
                display: none;
            }

            .visitor-counter.collapsed .visitor-counter-display {
                font-size: 14px;
                padding: 4px 8px;
            }
        }

        @media (max-width: 480px) {
            .visitor-counter {
                bottom: 8px;
                right: 8px;
                padding: 6px 10px;
            }

            .visitor-counter-display {
                font-size: 14px;
                padding: 4px 8px;
                letter-spacing: 1px;
            }

            .visitor-counter-label {
                font-size: 9px;
                margin-bottom: 3px;
            }
        }

        /* Small phones */
        @media (max-width: 480px) {
            .hero {
                padding: 25px 12px 20px;
            }

            .hero.hero-fullwidth {
                padding: 5px 0 15px;
            }

            .hero-logo {
                max-width: 150px;
            }

            .hero-fullwidth .hero-logo {
                max-width: 100%;
            }

            .hero h1 {
                font-size: clamp(1.4rem, 6vw, 1.8rem);
                line-height: 1.2;
            }

            .hero p {
                font-size: 0.85rem;
                padding: 0 5px;
                line-height: 1.5;
            }

            .hero-fullwidth .tagline {
                font-size: 1rem;
                padding: 12px 15px;
                margin: 5px 10px 0;
            }

            .container {
                padding: 10px;
                padding-bottom: 80px;
            }

            .upload-section {
                padding: 20px 15px;
                border-radius: 12px;
            }

            .form-group input {
                padding: 14px 12px;
                font-size: 16px; /* Prevents zoom on iOS */
            }

            .submit-btn {
                padding: 16px;
                min-height: 50px;
                font-size: 16px;
            }

            .modal-close {
                top: 8px;
                right: 8px;
                font-size: 28px;
                width: 40px;
                height: 40px;
            }

            .edit-btn {
                padding: 12px 16px;
                font-size: 13px;
                min-height: 44px;
            }

            .content-card {
                padding: 18px;
                margin-top: 15px;
                border-radius: 12px;
            }

            .content-card h3 {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }

            .content-card p {
                font-size: 0.95rem;
                line-height: 1.6;
            }

            /* Featured section mobile */
            .featured-section {
                padding: 20px 15px;
                margin-bottom: 20px;
            }

            .featured-section h2 {
                font-size: 1.2rem;
            }

            .featured-image-container {
                max-width: 280px;
            }
        }

        /* Extra small phones */
        @media (max-width: 360px) {
            .hero h1 {
                font-size: 1.3rem;
            }

            .hero p {
                font-size: 0.8rem;
            }

            .nav {
                padding: 10px 12px;
            }
        }

        /* Ensure touch targets are at least 44px */
        @media (max-width: 768px) {
            .nav-left button,
            .nav-left a.nav-btn,
            .nav-action-btn,
            .submit-btn,
            .edit-btn,
            .vote-btn,
            .share-btn,
            .modal-nav,
            .modal-close {
                min-height: 44px;
                min-width: 44px;
            }

            /* Improve tap target for gallery items */
            .gallery-item {
                -webkit-tap-highlight-color: transparent;
            }

            /* Better spacing for form elements */
            .form-group {
                margin-bottom: 16px;
            }

            /* Prevent horizontal scroll */
            body {
                overflow-x: hidden;
            }

            .hero,
            .nav,
            .container {
                overflow-x: hidden;
            }
        }

        /* iOS safe area support */
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            .visitor-counter {
                bottom: calc(10px + env(safe-area-inset-bottom));
            }

            .modal-counter {
                bottom: calc(20px + env(safe-area-inset-bottom));
            }

            .mobile-nav-container {
                padding-bottom: calc(30px + env(safe-area-inset-bottom));
            }
        }

/* ========== AWARD VOTING STYLES ========== */
.award-card {
    position: relative;
}

.emoji-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.award-icon .emoji-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.award-vote-select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(166, 124, 82, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FCB426' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.award-vote-select:focus {
    outline: none;
    border-color: #A67C52;
    box-shadow: 0 0 10px rgba(166, 124, 82, 0.3);
}

.award-vote-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

.award-vote-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.award-vote-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #A67C52 0%, #FFA500 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.award-vote-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.4);
}

.award-vote-btn:disabled {
    background: rgba(100, 100, 100, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

.award-vote-btn.voted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.award-winner-preview {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(166, 124, 82, 0.2);
}

.award-winner-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-winner-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.award-winner-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.award-winner-address {
    font-weight: 500;
    color: #A67C52;
}

.award-vote-count {
    display: inline-block;
    background: rgba(166, 124, 82, 0.2);
    color: #A67C52;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.award-leader-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.4);
}

.award-no-properties {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Mobile adjustments for awards */
@media (max-width: 768px) {
    .award-vote-select {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 12px;
    }

    .award-vote-btn {
        padding: 14px;
        font-size: 1rem;
    }

    .award-winner-image {
        height: 80px;
    }

    .award-winner-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Awards Header with Previous Winners Button */
.awards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.awards-header h3 {
    margin: 0;
}

.previous-winners-btn {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    border: 1px solid rgba(139, 105, 20, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.previous-winners-btn:hover {
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    box-shadow: 0 2px 10px rgba(139, 105, 20, 0.3);
    transform: translateY(-1px);
}

.previous-winners-btn .trophy-icon {
    font-size: 1rem;
}

/* Previous Winners Modal */
.previous-winners-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
    box-sizing: border-box;
}

.previous-winners-modal.active {
    display: flex;
}

.previous-winners-content {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    border: 1px solid rgba(166, 124, 82, 0.3);
    border-radius: 15px;
    padding: 25px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

.previous-winners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.previous-winners-header h3 {
    color: #A67C52;
    margin: 0;
    font-size: 1.4rem;
}

.previous-winners-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.2s;
}

.previous-winners-close:hover {
    color: white;
}

.previous-winners-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.previous-winners-selector label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.previous-winners-selector select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
}

.previous-winners-selector select:focus {
    outline: none;
    border-color: #A67C52;
}

.previous-winners-display {
    min-height: 200px;
}

.loading-message,
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-data-message .no-data-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-data-message p {
    margin: 5px 0;
}

.no-data-message .no-data-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* House of the Week Section */
.previous-hotw-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.previous-hotw-section h4,
.previous-awards-section h4 {
    color: #A67C52;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.previous-hotw-winner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.previous-winner-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.previous-winner-image:hover {
    transform: scale(1.05);
}

.previous-winner-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.winner-address {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.winner-votes {
    color: rgba(139, 105, 20, 0.8);
    font-size: 0.9rem;
}

.no-winner {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    padding: 10px 0;
}

/* Award Winners Grid */
.previous-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.previous-winner-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.previous-winner-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.previous-winner-title {
    color: #A67C52;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.previous-winner-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.previous-winner-thumb:hover {
    transform: scale(1.05);
}

.previous-winner-address {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.previous-winner-votes {
    color: rgba(139, 105, 20, 0.7);
    font-size: 0.8rem;
}

/* Shame Tabs */
.shame-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.shame-tab {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.shame-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.shame-tab.active {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    border-color: rgba(139, 105, 20, 0.3);
    color: white;
}

.shame-tab-content {
    display: none;
}

.shame-tab-content.active {
    display: block;
}

/* Leaderboard Styles */
.leaderboard-container h4 {
    color: #A67C52;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.leaderboard-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.leaderboard-entry:hover {
    transform: translateX(5px);
}

.leaderboard-entry.top-three {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2) 0%, rgba(139, 105, 20, 0.1) 100%);
    border: 1px solid rgba(139, 105, 20, 0.2);
}

.leaderboard-rank {
    font-size: 1.5rem;
    min-width: 50px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-address {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
}

.leaderboard-city {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.leaderboard-categories {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.leaderboard-stats {
    text-align: center;
    min-width: 60px;
}

.leaderboard-wins {
    font-size: 1.8rem;
    font-weight: bold;
    color: #A67C52;
    line-height: 1;
}

.leaderboard-wins-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Mobile adjustments for Previous Winners */
@media (max-width: 600px) {
    .awards-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .previous-winners-btn {
        align-self: flex-start;
    }

    .previous-winners-content {
        padding: 15px;
    }

    .previous-winners-header h3 {
        font-size: 1.2rem;
    }

    .previous-winners-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .previous-winners-selector select {
        width: 100%;
    }

    .previous-hotw-winner {
        flex-direction: column;
        text-align: center;
    }

    .previous-winner-image {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .previous-winners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .previous-winner-card {
        padding: 10px;
    }

    .previous-winner-icon {
        font-size: 1.5rem;
    }

    .previous-winner-title {
        font-size: 0.75rem;
    }

    .shame-tabs {
        flex-direction: column;
    }

    .shame-tab {
        text-align: center;
    }

    .leaderboard-entry {
        flex-wrap: wrap;
    }

    .leaderboard-rank {
        min-width: 40px;
        font-size: 1.2rem;
    }

    .leaderboard-info {
        flex: 1;
        min-width: 150px;
    }

    .leaderboard-stats {
        min-width: 50px;
    }

    .leaderboard-wins {
        font-size: 1.4rem;
    }
}

/* ===== Floating Comments Panel ===== */
.comments-fab {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A67C52 0%, #e5a320 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

.comments-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.comments-fab svg {
    width: 26px;
    height: 26px;
}

.comments-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.comments-badge.has-comments {
    display: flex;
}

.comments-panel {
    position: fixed;
    bottom: 180px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 60px);
    max-height: 500px;
    background: rgba(15, 35, 65, 0.98);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(166, 124, 82, 0.2);
}

.comments-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.comments-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(166, 124, 82, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #A67C52;
}

.comments-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.comments-panel-close:hover {
    color: white;
}

.comments-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.comments-loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 5px;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: #A67C52;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.comment-preview {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comment-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-comments svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.comments-panel-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 998;
    display: none;
}

.comments-panel-overlay.open {
    display: block;
}

/* Mobile adjustments for comments panel */
@media (max-width: 480px) {
    .comments-fab {
        bottom: 100px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .comments-panel {
        bottom: 165px;
        right: 15px;
        left: 15px;
        width: auto;
        max-height: 50vh;
    }
}

/* ===== Photo Submission Modal ===== */
.submit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.submit-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.submit-modal-content {
    background: linear-gradient(135deg, #1a365d 0%, #0f2444 100%);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    margin: 40px 0;
    border: 1px solid rgba(166, 124, 82, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.submit-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.submit-modal-close:hover {
    color: white;
}

.submit-modal-content h2 {
    color: #A67C52;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.submit-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.submit-form-group {
    margin-bottom: 18px;
}

.submit-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.submit-form-group input[type="text"],
.submit-form-group input[type="email"],
.submit-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.submit-form-group input:focus,
.submit-form-group textarea:focus {
    outline: none;
    border-color: #A67C52;
    background: rgba(255, 255, 255, 0.15);
}

.submit-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-file-input {
    position: relative;
}

.submit-file-input input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.submit-file-preview {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.submit-file-preview.has-image {
    border-style: solid;
    border-color: #A67C52;
}

.submit-file-preview.has-image span {
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

.submit-file-input:hover .submit-file-preview {
    border-color: #A67C52;
    background-color: rgba(166, 124, 82, 0.05);
}

.submit-captcha {
    display: flex;
    justify-content: center;
}

.submit-privacy-notice {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #A67C52 0%, #e5a320 100%);
    border: none;
    border-radius: 8px;
    color: #1a365d;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.submit-message.success {
    display: block;
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.5);
    color: #2ecc71;
}

.submit-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

/* Admin Pending Submissions */
.pending-submissions-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(166, 124, 82, 0.2);
}

.pending-submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pending-submissions-header h4 {
    color: #A67C52;
    margin: 0;
}

.pending-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.submission-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}

.submission-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.submission-info {
    flex: 1;
    min-width: 0;
}

.submission-address {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.submission-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.submission-actions {
    display: flex;
    gap: 8px;
}

.submission-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.submission-actions button:hover {
    opacity: 0.8;
}

.approve-btn {
    background: #27ae60;
    color: white;
}

.reject-btn {
    background: #e74c3c;
    color: white;
}

@media (max-width: 480px) {
    .submit-modal-content {
        padding: 20px;
        margin: 20px 0;
    }

    .submit-form-row {
        grid-template-columns: 1fr;
    }

    .submission-card {
        flex-direction: column;
    }

    .submission-card img {
        width: 100%;
        height: 150px;
    }
}

/* Document List Styles (Admin Panel) */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.document-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(166, 124, 82, 0.3);
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.document-name {
    color: #A67C52;
    font-weight: 500;
    font-size: 0.95rem;
}

.document-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.doc-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-btn.view-btn {
    background: rgba(166, 124, 82, 0.2);
    color: #A67C52;
    border: 1px solid rgba(166, 124, 82, 0.4);
}

.doc-btn.view-btn:hover {
    background: rgba(166, 124, 82, 0.3);
}

.doc-btn.delete-btn {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.doc-btn.delete-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* ============================================
   Single Post Page Styles
   ============================================ */

.single-post-page {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.single-post {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(166, 124, 82, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.single-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(166, 124, 82, 0.3);
}

.post-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-type-badge.editorial {
    background: rgba(166, 124, 82, 0.2);
    color: #A67C52;
    border: 1px solid rgba(166, 124, 82, 0.4);
}

.post-type-badge.update {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.single-post-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #FCB426;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-author {
    font-style: italic;
}

.post-date {
    color: rgba(255, 255, 255, 0.5);
}

.single-post-content {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.single-editorial .single-post-content::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 5px;
    color: #A67C52;
    font-family: 'Playfair Display', Georgia, serif;
}

.single-post-image {
    margin: 25px 0;
}

.single-post-image.inline {
    float: right;
    width: 45%;
    margin: 0 0 20px 25px;
}

.single-post-image img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(166, 124, 82, 0.3);
}

.single-post-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.single-post-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(166, 124, 82, 0.3);
}

.single-post-comments h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #FCB426;
    margin-bottom: 20px;
}

.single-post-comments .comments-list {
    margin-bottom: 30px;
}

.single-post-comments .comment-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #A67C52;
}

.single-post-comments .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.single-post-comments .comment-name {
    font-weight: 600;
    color: #A67C52;
}

.single-post-comments .comment-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.single-post-comments .comment-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.single-post-comments .comment-form {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.single-post-comments .comment-form h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #FCB426;
    margin-bottom: 15px;
}

.single-post-comments .form-group {
    margin-bottom: 15px;
}

.single-post-comments input[type="text"],
.single-post-comments textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(166, 124, 82, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.single-post-comments input[type="text"]:focus,
.single-post-comments textarea:focus {
    outline: none;
    border-color: #A67C52;
}

.single-post-comments textarea {
    resize: vertical;
    min-height: 100px;
}

.single-post-comments .captcha-group {
    display: flex;
    justify-content: center;
}

.single-post-comments .comment-message {
    margin-bottom: 10px;
    text-align: center;
}

.single-post-comments .comment-message .error {
    color: #e74c3c;
}

.single-post-comments .comment-message .success {
    color: #2ecc71;
}

.single-post-comments .comment-message .posting {
    color: #3498db;
}

.submit-comment-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #A67C52, #8B6914);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.4);
}

.single-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #FCB426;
}

.share-btn {
    padding: 10px 20px;
    background: rgba(166, 124, 82, 0.2);
    color: #A67C52;
    border: 1px solid rgba(166, 124, 82, 0.4);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(166, 124, 82, 0.3);
    transform: translateY(-2px);
}

.post-not-found {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    border-radius: 12px;
    border: 1px solid rgba(166, 124, 82, 0.3);
}

.post-not-found h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #FCB426;
    margin-bottom: 15px;
}

.post-not-found p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.loading-comments {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Mobile responsiveness for single post */
@media (max-width: 768px) {
    .single-post {
        padding: 25px 20px;
    }

    .single-post-image.inline {
        float: none;
        width: 100%;
        margin: 20px 0;
    }

    .single-post-footer {
        flex-direction: column;
        text-align: center;
    }

    .share-btn {
        width: 100%;
    }
}

/* ============================================
   Permalink Button Styles
   ============================================ */

.editorial-post-header,
.update-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.editorial-post-header .editorial-post-title,
.update-post-header .update-post-title {
    flex: 1;
    margin: 0;
}

.permalink-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(166, 124, 82, 0.15);
    border: 1px solid rgba(166, 124, 82, 0.3);
    border-radius: 6px;
    color: #A67C52;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.permalink-btn:hover {
    background: rgba(166, 124, 82, 0.25);
    color: #FCB426;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(166, 124, 82, 0.3);
}

.permalink-btn svg {
    display: block;
}

/* Scheduled Post Styles */
.scheduled-badge {
    display: block;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
}

.scheduled-badge.compact {
    padding: 5px 10px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.editorial-post.scheduled,
.update-post.scheduled {
    border: 2px dashed rgba(52, 152, 219, 0.5);
    opacity: 0.85;
}

.schedule-hint {
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

#postPublishAt {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

#postPublishAt::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
