/* CSS thuần cho website Huế Xanh */
/* Màu chính: #f06421 (cam), #140000 (đen), #ffffff (trắng) */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #140000;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: #140000;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f06421;
    margin-bottom: 0.2rem;
}

.logo span {
    font-size: 0.9rem;
    color: #140000;
    opacity: 0.8;
}

.main-nav {
    flex: 1;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #140000;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f06421;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-toggle {
    background: none;
    border: 1px solid #f06421;
    color: #f06421;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.user-toggle:hover {
    background-color: #f06421;
    color: #ffffff;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #f06421;
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(20, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #140000;
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: #f06421;
    color: #ffffff;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #f06421;
    margin: 0.5rem 0;
}

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

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

.btn-primary {
    background-color: #f06421;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d55419;
}

.btn-outline {
    background-color: transparent;
    color: #f06421;
    border: 1px solid #f06421;
}

.btn-outline:hover {
    background-color: #f06421;
    color: #ffffff;
}

.btn-secondary {
    background-color: #140000;
    color: #ffffff;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #f06421;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #f06421;
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #140000;
    border-bottom: 1px solid rgba(240, 100, 33, 0.1);
}

.mobile-nav-link:hover {
    background-color: #f06421;
    color: #ffffff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f06421, #d55419);
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #140000;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f06421;
}

/* Location Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    /* Optimize for CLS */
    min-height: 400px;
}

.location-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(20, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(20, 0, 0, 0.15);
}

.location-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
    /* Optimize for loading */
    transition: opacity 0.3s ease;
}

.location-image.lazy {
    opacity: 0;
}

.location-image.lazy.loaded {
    opacity: 1;
}

.location-image.loading {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f5f5"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="%23999">Loading...</text></svg>');
    background-size: cover;
    background-position: center;
}

.location-content {
    padding: 1.5rem;
}

.location-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #140000;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.location-title:hover {
    color: #f06421;
}

.location-address {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.location-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #f06421;
    font-size: 1.1rem;
}

.star.empty {
    color: #ddd;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #140000;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

.pagination .current {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

/* Footer - Hue Xanh Brand */
.footer {
    background: linear-gradient(135deg, #140000 0%, #1a0a0a 50%, #2d1b1b 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
}

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

.footer-section h3,
.footer-section h4 {
    color: #f06421;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(240, 100, 33, 0.1) 0%, rgba(229, 90, 26, 0.1) 100%);
    border: 1px solid rgba(240, 100, 33, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
}

.social-link i {
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 12px;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(240, 100, 33, 0.3);
    border-color: #f06421;
}

.social-link:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Specific colors for each social platform */
.social-link.facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 100%);
    border-color: #e4405f;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: #ff0000;
}

.social-link.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: #1da1f2;
}

.social-link.tiktok:hover {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
}

.social-icon {
    font-size: 1.2rem;
}

.social-text {
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #f06421;
}

/* Footer Stats - Specific styling to avoid conflicts */
footer .stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem;
    width: 100%;
    background: none !important;
    border: none !important;
    position: static !important;
    transform: none !important;
    overflow: visible !important;
}

/* Override any progress bar styles that might affect footer stats */
footer .stats * {
    background: none !important;
    border: none !important;
    position: static !important;
    transform: none !important;
    overflow: visible !important;
}

footer .stat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none !important;
    border: none !important;
    position: static !important;
    transform: none !important;
    overflow: visible !important;
}

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

footer .stat-number {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #f06421 !important;
    line-height: 1;
    margin: 0 !important;
    order: 2;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    position: static !important;
    transform: none !important;
}

footer .stat-label {
    font-size: 0.9rem !important;
    opacity: 0.8;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0 !important;
    order: 1;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    position: static !important;
    transform: none !important;
}

.footer-bottom {
    border-top: 1px solid rgba(240, 100, 33, 0.3);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    border-radius: 2px;
}

.footer-bottom-content {
    text-align: center;
    opacity: 0.9;
}

.footer-bottom-content p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-bottom-content p:last-child {
    color: #f06421;
    font-weight: 600;
}

/* Top List Styles */
.toplist-form {
    max-width: 1000px;
    margin: 0 auto;
}

.location-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.available-locations,
.selected-locations {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 400px;
}

.available-locations h4,
.selected-locations h4 {
    color: #f06421;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-locations {
    margin-bottom: 1rem;
}

.location-list {
    max-height: 350px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: #f06421;
    box-shadow: 0 2px 8px rgba(240, 100, 33, 0.1);
}

.location-name {
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.2rem;
}

.location-address {
    font-size: 0.9rem;
    color: #666;
}

.btn-add {
    background: #f06421;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #e55a1f;
    transform: scale(1.1);
}

.ranking-list {
    min-height: 300px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.ranking-item.top-three {
    border-color: #f06421;
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
}

.ranking-item.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.ranking-item.silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.2);
}

.ranking-item.bronze {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #faf6f0 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.2);
}

.ranking-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    position: relative;
}

.position-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: #f0f0f0;
    color: #666;
    position: relative;
    overflow: hidden;
}

.position-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.position-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #696969;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.position-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #8b4513;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.position-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: glow 2s linear infinite;
}

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

.position-medal {
    font-size: 1.8rem;
    z-index: 2;
    position: relative;
}

.position-number {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.ranking-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ranking-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.btn-move,
.btn-remove {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-move {
    background: #f0f0f0;
    color: #666;
}

.btn-move:hover:not(:disabled) {
    background: #f06421;
    color: white;
}

.btn-move:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-remove {
    background: #ff4757;
    color: white;
}

.btn-remove:hover {
    background: #ff3742;
}

.ranking-decoration {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

/* Top List Detail Page */
.toplist-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.toplist-header {
    text-align: center;
    margin-bottom: 3rem;
}

.toplist-featured-image {
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.toplist-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toplist-badge {
    background: linear-gradient(135deg, #f06421, #ff7849);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.toplist-date {
    color: #666;
    font-size: 0.9rem;
}

.toplist-title {
    font-size: 2.5rem;
    color: #140000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.toplist-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.toplist-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #f06421;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: #140000;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
}

.toplist-stats {
    display: flex;
    gap: 1.5rem;
}

/* Removed to avoid conflict with footer stats */

.stat-icon {
    font-size: 1.1rem;
}

/* Ranking Section */
.ranking-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #140000;
    margin-bottom: 2rem;
    text-align: center;
}

.ranking-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.ranking-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.location-image {
    position: relative;
    margin-right: 1.5rem;
}

.location-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.location-thumbnail-placeholder {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
}

.location-category {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f06421;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.location-details {
    flex: 1;
}

.location-title a {
    color: #140000;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.location-title a:hover {
    color: #f06421;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
}

.location-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.star {
    color: #ddd;
    font-size: 1rem;
}

.star.filled {
    color: #ffd700;
}

.star.half {
    background: linear-gradient(90deg, #ffd700 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-text {
    font-weight: 600;
    color: #140000;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.location-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.location-actions {
    display: flex;
    gap: 0.8rem;
}

/* Content Section */
.toplist-content {
    margin-bottom: 3rem;
}

.content-body {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

/* Share Section */
.toplist-share {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 15px;
}

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

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.share-btn.copy {
    background: #f06421;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related Top Lists */
.related-toplists {
    margin-bottom: 3rem;
}

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

.toplist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.toplist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.toplist-card-image img, .toplist-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.toplist-image-container {
    position: relative;
    overflow: hidden;
}

.toplist-image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.toplist-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f06421, #ff7849);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.toplist-card-content, .toplist-content {
    padding: 1.5rem;
}

.toplist-content .toplist-title {
    margin-bottom: 1rem;
}

.toplist-content .toplist-title a {
    color: #140000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.toplist-content .toplist-title a:hover {
    color: #f06421;
}

.toplist-content .toplist-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.toplist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.toplist-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.toplist-category {
    margin-bottom: 1rem;
}

.toplist-btn {
    width: 100%;
    text-align: center;
}

.toplist-card-title a {
    color: #140000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.toplist-card-title a:hover {
    color: #f06421;
}

.toplist-card-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.toplist-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

/* Admin Top List Styles */
.toplist-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toplist-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.toplist-info h4 {
    margin-bottom: 0.3rem;
    color: #140000;
}

.toplist-info p {
    color: #666;
    font-size: 0.9rem;
}

.toplist-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.toplist-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
    margin-right: 1rem;
}

.toplist-details h4 {
    margin: 0 0 0.5rem 0;
    color: #140000;
    font-size: 1rem;
}

.toplist-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toplist-title {
    color: #140000;
    font-weight: 600;
    text-decoration: none;
}

.toplist-title:hover {
    color: #f06421;
}

.toplist-description {
    color: #666;
    font-size: 0.9rem;
}

.location-count {
    color: #666;
    font-size: 0.9rem;
}

.view-count {
    color: #666;
    font-size: 0.9rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

/* User Stats in Admin */
.user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.user-stats span {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    color: #666;
}

.current-user-badge {
    background: #f06421;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #fff3cd;
    color: #856404;
}

.status-banned {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .main-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .toplist-grid, .toplists-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.show {
        display: block;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    /* Filter responsive styles */
    .filter-section {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .filter-group {
        margin-bottom: 1.5rem;
    }
    
    .filter-select {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-options {
        gap: 0.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer .stats {
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100%;
    }
    
    footer .stat-item {
        flex-direction: row !important;
        justify-content: space-between;
        width: 100%;
        padding: 0.4rem 0;
    }
    
    footer .stat-number {
        font-size: 1.2rem !important;
    }
    
    footer .stat-label {
        font-size: 0.7rem !important;
    }
    
    /* Location cards responsive */
    .location-card {
        margin-bottom: 1rem;
    }
    
    .location-content {
        padding: 1rem;
    }
    
    .location-title {
        font-size: 1.1rem;
    }
    
    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    /* Toplist responsive */
    .toplist-grid, .toplists-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ranking-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Admin responsive */
    .admin-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .location-content {
        padding: 1rem;
    }
    
    /* Filter mobile styles */
    .filter-select {
        padding: 0.5rem;
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .filter-group-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-actions {
        margin-top: 1rem;
    }
    
    .filter-actions .btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(20, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    color: #140000;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.alert-warning {
    background-color: rgba(240, 100, 33, 0.1);
    color: #f06421;
    border: 1px solid #f06421;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(240, 100, 33, 0.3);
    border-radius: 50%;
    border-top-color: #f06421;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #f06421;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #d55419;
}

.breadcrumb-item span {
    color: #666;
}

.breadcrumb-separator {
    color: #999;
    font-size: 0.8rem;
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Responsive Images */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.responsive-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.responsive-image-container:hover img {
    transform: scale(1.05);
}

/* Image aspect ratios */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

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

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

.aspect-ratio-3-2 {
    aspect-ratio: 3 / 2;
}

/* Image loading states */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.image-error {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.image-error::before {
    content: "⚠️";
    margin-right: 0.5rem;
}

/* Image Placeholder */
.image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.no-images {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Gallery responsive */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay-icon {
    color: white;
    font-size: 1.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: lightboxFadeIn 0.3s ease forwards;
}

@keyframes lightboxFadeIn {
    to {
        opacity: 1;
    }
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .lightbox-prev {
        left: -40px;
    }
    
    .lightbox-next {
        right: -40px;
    }
    
    .lightbox-counter {
        bottom: -30px;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-counter {
        bottom: 80px;
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* Core Web Vitals Optimizations */
.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}

.will-change-transform {
    will-change: transform;
}

/* Reduce layout shifts */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f06421 0%, #d55419 100%);
    overflow: hidden;
}

.hero-background {
    position: relative;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    color: #140000;
}

.search-btn {
    background: #f06421;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.search-icon {
    font-size: 1.1rem;
}

/* Category Icons */
.category-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.category-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.category-icon:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.category-icon:hover .icon-circle {
    background: rgba(255, 255, 255, 0.3);
}

.icon-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #f06421 0%, #d55419 100%);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.category-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.category-search {
    max-width: 500px;
    margin: 0 auto;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.main-layout.no-sidebar {
    grid-template-columns: 1fr;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    padding: 1.5rem;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #140000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

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

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-title::before {
    content: '▼';
    font-size: 0.8rem;
    color: #f06421;
    transition: transform 0.3s ease;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.filter-option:hover {
    background-color: rgba(240, 100, 33, 0.1);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.filter-option input:checked + .checkmark {
    background-color: #f06421;
    border-color: #f06421;
}

.filter-option input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #f06421;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.filter-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Content Area */
.content {
    min-height: 600px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f06421;
}

.results-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #140000;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

/* Location Cards */
.location-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.location-image-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 2rem;
    color: #999;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f06421;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.phot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-tag {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.date {
    color: #999;
    font-size: 0.8rem;
}

.location-btn {
    width: 100%;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.no-rating {
    color: #999;
    font-style: italic;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #140000;
}

.no-results p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #140000;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-link:hover {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

.pagination-link.current {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #140000;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

.pagination-btn.active {
    background-color: #f06421;
    color: #ffffff;
    border-color: #f06421;
}

/* Location Detail Page */
.location-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.location-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(20, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .location-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.location-image-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #f06421;
    opacity: 1;
}

/* Image Gallery Section */
.image-gallery-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.image-gallery-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-gallery-section h2::before {
    content: '🖼️';
    font-size: 1.2rem;
}

/* Location Gallery Carousel */
.location-gallery-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.location-gallery-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-gallery-section h2::before {
    content: '🖼️';
    font-size: 1.2rem;
}

.location-gallery-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 200px;
}

.location-gallery-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    min-height: 180px;
    position: relative;
}

.location-gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    padding: 0.75rem;
    width: max-content;
    min-width: 100%;
    position: relative;
    z-index: 1;
}

.location-gallery-slide {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-gallery-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.location-gallery-slide:hover .location-gallery-thumbnail {
    transform: scale(1.05);
}

.location-gallery-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-gallery-slide:hover::after {
    opacity: 1;
}

/* Location Carousel Controls */
.location-carousel-btn {
    background: white;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.location-carousel-btn:hover {
    background: #f06421;
    border-color: #f06421;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(240, 100, 33, 0.3);
}

.location-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.location-carousel-btn i {
    font-size: 1rem;
}

/* Location Gallery Indicators */
.location-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.location-gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-gallery-indicator:hover {
    background: #f06421;
    transform: scale(1.2);
}

.location-gallery-indicator.active {
    background: #f06421;
    transform: scale(1.3);
}

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

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .main-image {
        height: 250px;
    }
    
    .image-gallery-section {
        padding: 1.5rem;
    }
    
    /* Location Gallery Carousel Mobile */
    .location-gallery-carousel-container {
        gap: 0.5rem;
    }

    .location-gallery-slide {
        width: 120px;
        height: 120px;
    }

    .location-carousel-btn {
        width: 35px;
        height: 35px;
    }

    .location-carousel-btn i {
        font-size: 0.9rem;
    }

    .location-gallery-track {
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 200px;
    }
    
    .image-gallery-section {
        padding: 1rem;
    }

    /* Location Gallery Carousel Small Mobile */
    .location-gallery-slide {
        width: 100px;
        height: 100px;
    }

    .location-carousel-btn {
        width: 30px;
        height: 30px;
    }

    .location-carousel-btn i {
        font-size: 0.8rem;
    }

    .location-gallery-indicators {
        gap: 0.25rem;
    }

    .location-gallery-indicator {
        width: 8px;
        height: 8px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .image-gallery-section h2 {
        font-size: 1.3rem;
    }
}

.placeholder-image {
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

@media (max-width: 768px) {
    .placeholder-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .placeholder-image {
        height: 200px;
    }
}

.placeholder-image .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-info {
    padding: 2rem;
}

@media (max-width: 768px) {
    .location-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .location-info {
        padding: 1rem;
    }
}

.location-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .location-badges {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.featured {
    background: #f06421;
    color: #ffffff;
}

.badge.phot {
    background: #dc3545;
    color: #ffffff;
}

.badge.category {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
}

.location-title {
    font-size: 2rem;
    font-weight: bold;
    color: #140000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .location-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .location-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
}

.location-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(240, 100, 33, 0.05);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .location-rating-summary {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .location-rating-summary {
        margin-bottom: 1rem;
        padding: 0.5rem;
        gap: 0.25rem;
    }
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f06421;
}

.rating-count {
    color: #666;
}

.location-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info p {
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.5;
}

.location-info a {
    color: #f06421;
    text-decoration: none;
}

.location-info a:hover {
    text-decoration: underline;
}

.location-social .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.location-social .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #140000;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #f06421;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.location-social .social-link:hover {
    background-color: #f06421;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.3);
    text-decoration: none;
}

.location-social .social-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.location-social .social-icon i {
    font-size: 1.1rem;
}

.location-social .social-text {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .location-social .social-links {
        gap: 0.5rem;
    }
    
    .location-social .social-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .location-social .social-icon i {
        font-size: 1rem;
    }
    
    .location-social .social-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .location-social .social-links {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .location-social .social-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        min-width: 60px;
    }
    
    .location-social .social-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

.location-description {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.location-description h2 {
    font-size: 1.5rem;
    color: #140000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

.description-content {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

.location-map {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.location-map h2 {
    font-size: 1.5rem;
    color: #140000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Reviews Section */
.reviews-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.reviews-section h2 {
    font-size: 1.5rem;
    color: #140000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

.review-form-container {
    background: rgba(240, 100, 33, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.review-form-container h3 {
    color: #140000;
    margin-bottom: 1rem;
}

.rating-input {
    margin-bottom: 1rem;
}

.rating-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #140000;
}

.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.star-input {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-input.active {
    color: #f06421;
}

.star-input:hover {
    color: #f06421;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: rgba(240, 100, 33, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.login-prompt a {
    color: #f06421;
    font-weight: 500;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-info strong {
    color: #140000;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-title {
    font-size: 1.1rem;
    color: #140000;
    margin-bottom: 0.5rem;
}

.review-content {
    color: #333;
    line-height: 1.5;
}

.no-reviews {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Comments Section */
.comments-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
}

.comments-section h2 {
    font-size: 1.5rem;
    color: #140000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

.comment-form-container {
    background: rgba(240, 100, 33, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    font-weight: 500;
    color: #140000;
    margin-bottom: 0.5rem;
    display: block;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-header strong {
    color: #140000;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.comment-actions {
    margin-bottom: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #f06421;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0;
}

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

.reply-form {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 1rem;
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
}

.replies {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 3px solid #f06421;
}

.reply-item {
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background-color: #f06421;
    border-color: #f06421;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

/* Responsive Design for Location Detail */
@media (max-width: 768px) {
    .location-header {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .location-info {
        padding: 1.5rem;
    }
    
    .location-title {
        font-size: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .placeholder-image {
        height: 250px;
    }
    
    .location-description,
    .location-map,
    .reviews-section,
    .comments-section {
        padding: 1.5rem;
    }
    
    .review-form-container,
    .comment-form-container {
        padding: 1rem;
    }
    
    .replies {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .location-detail {
        margin: 0 -20px;
    }
    
    .location-header,
    .location-description,
    .location-map,
    .reviews-section,
    .comments-section {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .review-header,
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Add Location & My Locations Pages */
.add-location-container,
.my-locations-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f06421 0%, #d55419 100%);
    color: #ffffff;
    border-radius: 15px;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.add-location-form {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(20, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.3rem;
    color: #140000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.form-actions {
    padding: 2rem;
    background: rgba(240, 100, 33, 0.05);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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


/* Data Table */
.locations-table {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(20, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem 2rem;
    background: rgba(240, 100, 33, 0.05);
    border-bottom: 1px solid #eee;
}

.table-header h2 {
    font-size: 1.3rem;
    color: #140000;
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

.data-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #140000;
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}


.no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

.location-info h4 {
    font-size: 1rem;
    color: #140000;
    margin-bottom: 0.25rem;
}

.location-info .location-address {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.category-badge {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator {
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.status-indicator.featured {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.phot {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rating-score {
    font-weight: bold;
    color: #f06421;
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-count {
    font-size: 0.8rem;
    color: #666;
}

.date-info {
    text-align: center;
}

.date-info small {
    color: #666;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #140000;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.modal-content {
    background: #ffffff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content.simple {
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    color: #140000;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content .warning {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #140000;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #140000;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.5;
}

.modal-body .text-danger {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .add-location-container,
    .my-locations-container {
        margin: 0 -20px;
    }
    
    .page-header {
        border-radius: 0;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-actions {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .my-locations-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .locations-table {
        border-radius: 0;
        margin: 0 -20px;
    }
    
    .table-header {
        padding: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .my-locations-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
    }
}

/* Responsive Table */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th:nth-child(n+5),
    .data-table td:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .data-table th:nth-child(n+3),
    .data-table td:nth-child(n+3) {
        display: none;
    }
    
    .location-info h4 {
        font-size: 0.9rem;
    }
    
    .location-info .location-address {
        font-size: 0.7rem;
    }
}

/* Admin Panel */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #140000 0%, #2a0000 100%);
    color: #ffffff;
    border-radius: 15px;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.admin-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 0, 0, 0.1);
    overflow-x: auto;
}

.admin-nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #140000;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav-link:hover {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
}

.admin-nav-link.active {
    background: #f06421;
    color: #ffffff;
}

.admin-content {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(20, 0, 0, 0.1);
    padding: 2rem;
}

.admin-content h2 {
    color: #140000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f06421;
}

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

.admin-section h3 {
    color: #140000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(240, 100, 33, 0.05);
    border-radius: 8px;
    border-left: 4px solid #f06421;
}

.activity-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
}

.activity-title {
    color: #f06421;
    font-weight: 500;
}

.activity-content small {
    color: #666;
    font-size: 0.9rem;
}

.no-activities {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.admin-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #140000;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(240, 100, 33, 0.1);
    border-color: #f06421;
    color: #f06421;
}

.filter-btn.active {
    background: #f06421;
    border-color: #f06421;
    color: #ffffff;
}

.admin-table {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-admin {
    background: #dc3545;
    color: #ffffff;
}

.role-manager {
    background: #ffc107;
    color: #212529;
}

.role-member {
    background: #28a745;
    color: #ffffff;
}

.role-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #ffffff;
}

.current-user {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.user-info strong {
    color: #140000;
}

.user-info small {
    color: #666;
}

.btn-success {
    background: #28a745;
    color: #ffffff;
    border: 1px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-container {
        margin: 0 -20px;
    }
    
    .admin-header {
        border-radius: 0;
        margin-bottom: 1rem;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .admin-nav {
        border-radius: 0;
        margin: 0 -20px 1rem;
        padding: 1rem 20px;
    }
    
    .admin-content {
        border-radius: 0;
        margin: 0 -20px;
        padding: 1.5rem 20px;
    }
    
    .admin-filters {
        gap: 0.25rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .activity-item {
        padding: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-nav-link {
        justify-content: center;
    }
    
    .my-locations-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .data-table th:nth-child(n+4),
    .data-table td:nth-child(n+4) {
        display: none;
    }
}

/* Location Detail Page Styles */
.location-price, .location-season, .location-category-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.location-price h3, .location-season h3, .location-category-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.best-season {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--success-color);
    margin: 0;
}

.location-category-info p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--info-color);
    margin: 0;
}

/* Badge Styles for Location Detail */
.badge.subcategory {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.category {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
}

.badge.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

.badge.phot {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
}

/* Responsive adjustments for location detail */
@media (max-width: 768px) {
    .location-price, .location-season, .location-category-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .price-range {
        font-size: 1.1rem;
    }
    
    .badge.subcategory {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .mobile-menu, .filter-section {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .location-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .location-price, .location-season, .location-category-info {
        background: white;
        border: 1px solid #ddd;
    }
}

/* Add Location Form Styles */
.add-location-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-help {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Drag and Drop Gallery */
.gallery-upload-container {
    margin-top: 1rem;
}

.drag-drop-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.drag-drop-area p {
    margin: 0.5rem 0;
    color: #6b7280;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.drag-drop-help {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Gallery Preview */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-preview-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-gallery-item {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #dc3545;
    transition: background-color 0.2s ease;
}

.remove-gallery-item:hover {
    background: white;
}

.gallery-file-name {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Address Search */
.address-search-group {
    position: relative;
}

.search-input-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background-color: #f8f9fa;
}

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

.dropdown-item.no-result {
    color: #6c757d;
    font-style: italic;
    cursor: default;
}

.dropdown-item.no-result:hover {
    background-color: transparent;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .add-location-container {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .drag-drop-area {
        padding: 2rem 1rem;
    }
    
    .drag-drop-icon {
        font-size: 2rem;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* Custom Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    background-color: #fff;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #f06421;
    border-color: #f06421;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #f06421;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.2);
}

/* My Locations Page Styles */
.my-locations-container {
    padding: 2rem 0;
}

.page-header {
    background: linear-gradient(135deg, #f06421, #e55a1a);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(240, 100, 33, 0.3);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.header-actions {
    flex-shrink: 0;
}

.btn-add {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-size: 1rem;
}

/* ========================================
   HUEXANH UI IMPROVEMENTS - LOCATION PAGES
   ======================================== */

/* Modern Location Detail Page Styles */
.hx-location-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.hx-location-hero {
    background: linear-gradient(135deg, #f06421 0%, #d55419 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(240, 100, 33, 0.3);
}

.hx-location-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hx-location-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.hx-location-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.hx-location-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hx-location-main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hx-location-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.7);
}

.hx-location-info {
    color: white;
}

.hx-location-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hx-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hx-badge.featured {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
}

.hx-badge.phot {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
}

.hx-badge.category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hx-badge.subcategory {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.hx-location-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hx-location-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hx-stars {
    display: flex;
    gap: 0.25rem;
}

.hx-star {
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hx-star.empty {
    color: rgba(255, 255, 255, 0.3);
}

.hx-rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.hx-rating-count {
    font-size: 1rem;
    opacity: 0.9;
}

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

.hx-detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hx-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f06421, #d55419);
}

.hx-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.hx-detail-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.hx-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.hx-detail-content {
    color: #666;
    line-height: 1.6;
}

.hx-detail-content a {
    color: #f06421;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hx-detail-content a:hover {
    color: #d55419;
}

/* Gallery Section */
.hx-gallery-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hx-gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.hx-gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hx-gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.hx-gallery-slide {
    flex: 0 0 200px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hx-gallery-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hx-gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.hx-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hx-carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hx-carousel-prev {
    left: 1rem;
}

.hx-carousel-next {
    right: 1rem;
}

.hx-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hx-gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hx-gallery-indicator.active {
    background: #f06421;
    transform: scale(1.2);
}

/* Reviews Section */
.hx-reviews-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hx-reviews-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hx-reviews-count {
    background: #f06421;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hx-review-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.hx-review-form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.hx-rating-input {
    margin-bottom: 1.5rem;
}

.hx-rating-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.hx-star-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hx-star-input {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hx-star-input:hover,
.hx-star-input.active {
    color: #ffd700;
    transform: scale(1.1);
}

.hx-form-group {
    margin-bottom: 1.5rem;
}




.hx-review-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f06421;
    transition: all 0.3s ease;
}

.hx-review-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hx-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hx-reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hx-reviewer-name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.hx-review-rating {
    display: flex;
    gap: 0.25rem;
}

.hx-review-date {
    color: #666;
    font-size: 0.9rem;
}

.hx-review-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.hx-review-content {
    color: #666;
    line-height: 1.6;
}

/* Comments Section */
.hx-comments-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hx-comments-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hx-comments-count {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hx-comment-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.hx-comment-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.hx-comment-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hx-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hx-commenter-name {
    font-weight: 700;
    color: #333;
}

.hx-comment-date {
    color: #666;
    font-size: 0.9rem;
}

.hx-comment-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hx-comment-actions {
    display: flex;
    gap: 1rem;
}

.hx-btn-link {
    background: none;
    border: none;
    color: #f06421;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hx-btn-link:hover {
    color: #d55419;
}

.hx-reply-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.hx-reply-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hx-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}


.hx-replies {
    margin-left: 2rem;
    margin-top: 1rem;
}

.hx-reply-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #28a745;
}

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

.hx-image-modal.active {
    opacity: 1;
    visibility: visible;
}

.hx-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

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

.hx-image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hx-image-modal-close:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hx-location-hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hx-location-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hx-location-image-container {
        transform: none;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hx-location-title {
        font-size: 2rem;
    }
    
    .hx-location-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hx-detail-card {
        padding: 1.5rem;
    }
    
    .hx-gallery-section,
    .hx-reviews-section,
    .hx-comments-section {
        padding: 1.5rem;
    }
    
    .hx-gallery-slide {
        flex: 0 0 150px;
    }
    
    .hx-gallery-thumbnail {
        height: 120px;
    }
    
    .hx-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hx-replies {
        margin-left: 1rem;
    }
}

/* ========================================
   ADD LOCATION PAGE STYLES
   ======================================== */

.hx-add-location-container,
.hx-edit-location-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(20, 0, 0, 0.08);
    overflow: hidden;
    min-height: 100vh;
}

.hx-page-header {
    background: linear-gradient(135deg, #f06421 0%, #ff7a3d 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.hx-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hx-page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hx-page-title-section {
    flex: 1;
}

.hx-page-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hx-page-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hx-page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.hx-page-actions {
    display: flex;
    gap: 1rem;
}

.hx-form-container {
    padding: 2.5rem;
    background: #ffffff;
}

/* Alert Styles */
.hx-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.hx-alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

.hx-alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #16a34a;
}

.hx-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.hx-alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.hx-alert-content p {
    margin: 0;
    font-size: 0.95rem;
}

.hx-alert-content ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.hx-alert-content li {
    margin-bottom: 0.25rem;
}

/* Form Section Styles */
.hx-form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.hx-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #140000;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f06421;
}

.hx-section-icon {
    font-size: 1.25rem;
    color: #f06421;
}

.hx-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hx-form-label {
    font-weight: 600;
    color: #140000;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hx-form-label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

.hx-form-input,
.hx-form-select,
.hx-form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #140000;
}

.hx-form-input:focus,
.hx-form-select:focus,
.hx-form-textarea:focus {
    outline: none;
    border-color: #f06421;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.hx-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.hx-form-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Social Links Styles */
.hx-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hx-social-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.hx-social-input-group:focus-within {
    border-color: #f06421;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.hx-social-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #6b7280;
}

.hx-social-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    background: transparent;
    color: #140000;
}

.hx-social-input::placeholder {
    color: #9ca3af;
}

/* Image Upload Styles */
.hx-image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.hx-image-upload:hover {
    border-color: #f06421;
    background: #fef7f0;
}

.hx-image-upload.dragover {
    border-color: #f06421;
    background: #fef7f0;
    transform: scale(1.02);
}

.hx-upload-icon {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: block;
}

.hx-upload-text {
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.5rem;
}

.hx-upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

.hx-image-preview,
.hx-gallery-preview {
    margin-top: 1rem;
}

.hx-preview-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hx-current-image {
    margin-bottom: 1rem;
    text-align: center;
}

.hx-current-image-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hx-current-image-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.hx-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hx-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hx-gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.hx-gallery-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Actions */
.hx-form-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.hx-form-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hx-form-actions-secondary {
    display: flex;
    gap: 1rem;
}

.hx-form-help {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.hx-form-help p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Button Styles */
.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.hx-btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hx-btn-primary {
    background: linear-gradient(135deg, #f06421 0%, #ff7a3d 100%);
    color: #ffffff;
    border-color: #f06421;
}

.hx-btn-primary:hover {
    background: linear-gradient(135deg, #d55419 0%, #e66a2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.3);
}

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

.hx-btn-outline {
    background: transparent;
    color: #f06421;
    border-color: #f06421;
}

.hx-btn-outline:hover {
    background: #f06421;
    color: #ffffff;
}

.hx-btn-ghost {
    background: transparent;
    color: #6b7280;
    border-color: #e5e7eb;
}

.hx-btn-ghost:hover {
    background: #f3f4f6;
    color: #140000;
}

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

.hx-btn-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



.hx-gallery-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.hx-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hx-social-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.hx-social-input-group:focus-within {
    border-color: #f06421;
    background: white;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.hx-social-icon {
    font-size: 1.25rem;
    color: #f06421;
    width: 24px;
    text-align: center;
}

.hx-social-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}





/* Loading States */

/* ========================================
   ADD/EDIT LOCATION PAGE STYLES - COMPLETE
   ======================================== */

/* Container Styles */
.hx-add-location-container,
.hx-edit-location-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(20, 0, 0, 0.08);
    overflow: hidden;
    min-height: calc(100vh - 4rem);
}

/* Page Header */
.hx-page-header {
    background: linear-gradient(135deg, #f06421 0%, #ff7a3d 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hx-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hx-page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hx-page-title-section {
    flex: 1;
}

.hx-page-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hx-page-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hx-page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.hx-page-actions {
    display: flex;
    gap: 1rem;
}

/* Form Container */
.hx-form-container {
    padding: 2.5rem;
    background: #ffffff;
}

/* Alert Styles */
.hx-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.hx-alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

.hx-alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #16a34a;
}

.hx-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.hx-alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.hx-alert-content p {
    margin: 0;
    font-size: 0.95rem;
}

.hx-alert-content ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.hx-alert-content li {
    margin-bottom: 0.25rem;
}

/* Form Section Styles */
.hx-form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.hx-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #140000;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f06421;
}

.hx-section-icon {
    font-size: 1.25rem;
    color: #f06421;
}

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

.hx-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hx-form-label {
    font-weight: 600;
    color: #140000;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hx-form-label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

.hx-form-input,
.hx-form-select,
.hx-form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #140000;
}

.hx-form-input:focus,
.hx-form-select:focus,
.hx-form-textarea:focus {
    outline: none;
    border-color: #f06421;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.hx-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.hx-form-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Social Links Styles */
.hx-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hx-social-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.hx-social-input-group:focus-within {
    border-color: #f06421;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.hx-social-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #6b7280;
}

.hx-social-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    background: transparent;
    color: #140000;
}

.hx-social-input::placeholder {
    color: #9ca3af;
}

/* Image Upload Styles */
.hx-image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.hx-image-upload:hover {
    border-color: #f06421;
    background: #fef7f0;
}

.hx-image-upload.dragover {
    border-color: #f06421;
    background: #fef7f0;
    transform: scale(1.02);
}

.hx-upload-icon {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: block;
}

.hx-upload-text {
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.5rem;
}

.hx-upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

.hx-image-preview,
.hx-gallery-preview {
    margin-top: 1rem;
}

.hx-preview-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hx-current-image {
    margin-bottom: 1rem;
    text-align: center;
}

.hx-current-image-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hx-current-image-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.hx-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hx-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hx-gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.hx-gallery-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Actions */
.hx-form-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.hx-form-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hx-form-actions-secondary {
    display: flex;
    gap: 1rem;
}

.hx-form-help {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.hx-form-help p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Button Styles */
.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.hx-btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hx-btn-primary {
    background: linear-gradient(135deg, #f06421 0%, #ff7a3d 100%);
    color: #ffffff;
    border-color: #f06421;
}

.hx-btn-primary:hover {
    background: linear-gradient(135deg, #d55419 0%, #e66a2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.3);
}

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

.hx-btn-outline {
    background: transparent;
    color: #f06421;
    border-color: #f06421;
}

.hx-btn-outline:hover {
    background: #f06421;
    color: #ffffff;
}

.hx-btn-ghost {
    background: transparent;
    color: #6b7280;
    border-color: #e5e7eb;
}

.hx-btn-ghost:hover {
    background: #f3f4f6;
    color: #140000;
}

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

.hx-btn-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hx-add-location-container,
    .hx-edit-location-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .hx-page-header {
        padding: 2rem 1rem;
        margin-bottom: 0;
    }
    
    .hx-page-header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hx-page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hx-page-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hx-form-container {
        padding: 1.5rem 1rem;
    }
    
    .hx-form-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hx-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hx-social-links {
        grid-template-columns: 1fr;
    }
    
    .hx-form-actions-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hx-form-actions-secondary {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hx-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hx-btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Additional missing classes */
.hx-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hx-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 2rem;
}

.my-locations-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f06421;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    width: 6px;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

/* Admin specific stats - to avoid conflict with footer */
.admin .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.admin .stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.approved::before {
    background: #28a745;
}

.stat-card.approved .stat-number {
    color: #28a745;
}

.stat-card.pending::before {
    background: #ffc107;
}

.stat-card.pending .stat-number {
    color: #ffc107;
}

.stat-card.rejected::before {
    background: #dc3545;
}

.stat-card.rejected .stat-number {
    color: #dc3545;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: #f06421;
    background: white;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
}

.filter-dropdowns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #f06421;
    background: white;
    box-shadow: 0 0 0 3px rgba(240, 100, 33, 0.1);
}

/* Locations Table */
.locations-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.table-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #e9ecef;
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: #666;
}

.view-btn:hover {
    background: rgba(240, 100, 33, 0.1);
    color: #f06421;
}

.view-btn.active {
    background: #f06421;
    color: white;
    box-shadow: 0 2px 4px rgba(240, 100, 33, 0.3);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    table-layout: fixed;
}

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.data-table th:first-child {
    width: 100px;
}

.data-table th:nth-child(2) {
    width: 25%;
}

.data-table th:nth-child(3) {
    width: 12%;
}

.data-table th:nth-child(4) {
    width: 12%;
}

.data-table th:nth-child(5) {
    width: 15%;
}

.data-table th:nth-child(6) {
    width: 12%;
}

.data-table th:last-child {
    width: 15%;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
}

.data-table td:first-child {
    text-align: center;
    padding: 0.5rem;
}

.data-table td:nth-child(2) {
    padding-left: 0.75rem;
}

.data-table td:last-child {
    text-align: center;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Table Image */
.table-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.table-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.table-image:hover img {
    transform: scale(1.05);
}

/* Ensure table cells don't grow */
.data-table td:first-child {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
}

/* Responsive table image sizing */
@media (min-width: 1200px) {
    .table-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
    
    .table-image img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        width: 120px;
        max-width: 120px;
        min-width: 120px;
    }
}

@media (max-width: 1199px) and (min-width: 993px) {
    .table-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .table-image img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        width: 100px;
        max-width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .table-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        max-width: 70px;
        max-height: 70px;
    }
    
    .table-image img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        width: 90px;
        max-width: 90px;
        min-width: 90px;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .data-table th:nth-child(2) {
        width: 30%;
    }
    
    .data-table th:nth-child(5) {
        width: 18%;
    }
}

@media (max-width: 768px) {
    .table-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
    }
    
    .table-image img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        width: 80px;
        max-width: 80px;
        min-width: 80px;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th:nth-child(2) {
        width: 35%;
    }
    
    .data-table th:nth-child(5) {
        width: 20%;
    }
    
    .data-table th:last-child {
        width: 18%;
    }
}

.no-image {
    font-size: 2rem;
    color: #ccc;
}

/* Location Info */
.location-info {
    max-width: 100%;
    overflow: hidden;
}

.location-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.location-address {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Badges */
.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Rating */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-score {
    font-weight: bold;
    color: #f06421;
    font-size: 1rem;
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #ffc107;
    font-size: 0.9rem;
}

.star.empty {
    color: #e0e0e0;
}

.rating-count {
    color: #666;
    font-size: 0.8rem;
}

.no-rating {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
}

/* Date Info */
.date-info {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

.date-info small {
    color: #666;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive rating and date */
@media (max-width: 992px) {
    .rating-summary {
        gap: 0.25rem;
    }
    
    .rating-score {
        font-size: 0.9rem;
    }
    
    .star {
        font-size: 0.8rem;
    }
    
    .rating-count {
        font-size: 0.75rem;
    }
    
    .date-info {
        font-size: 0.8rem;
    }
    
    .date-info small {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .rating-summary {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .rating-score {
        font-size: 0.85rem;
    }
    
    .star {
        font-size: 0.75rem;
    }
    
    .rating-count {
        font-size: 0.7rem;
    }
    
    .date-info {
        font-size: 0.75rem;
    }
    
    .date-info small {
        font-size: 0.7rem;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.5rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
}

/* Responsive action buttons */
@media (max-width: 992px) {
    .action-buttons {
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        min-width: 32px;
        height: 32px;
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        gap: 0.2rem;
    }
    
    .action-buttons .btn {
        min-width: 30px;
        height: 30px;
        padding: 0.3rem;
        font-size: 0.75rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: #fafafa;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #f06421;
    color: white;
    border-color: #f06421;
}

.pagination-link.current {
    background: #f06421;
    color: white;
    border-color: #f06421;
}

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #666;
}

.warning {
    color: #dc3545;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Tablet Layout */
@media (max-width: 992px) and (min-width: 769px) {
    .my-locations-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

/* Mobile Card Layout */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
    
    .my-locations-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-dropdowns {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
        min-width: auto;
    }
    
    .locations-table {
        border-radius: 8px;
    }
    
    .table-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .table-header h2 {
        font-size: 1.1rem;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
    
    /* Hide table on mobile, show cards instead */
    .data-table {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .location-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .location-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .card-header {
        display: flex;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .card-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .card-image img {
        width: 80px !important;
        height: 80px !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .card-info {
        flex: 1;
        min-width: 0;
    }
    
    .card-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }
    
    .card-address {
        color: #666;
        font-size: 0.9rem;
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }
    
    .card-badges {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-stat {
        text-align: center;
    }
    
    .card-stat-label {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 0.25rem;
    }
    
    .card-stat-value {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }
    
    .card-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .card-actions .btn {
        flex: 1;
        min-width: 80px;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .my-locations-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-image {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
    
    .card-image img {
        width: 100% !important;
        height: 120px !important;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        flex: none;
    }
}

/* Hide mobile cards on desktop by default */
.mobile-cards {
    display: none;
}

/* Show mobile cards on mobile */
@media (max-width: 768px) {
    .mobile-cards {
        display: block;
    }
}

/* Image Hover Effects */
.table-image img,
.card-image img {
    transition: transform 0.3s ease;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Enhanced Hover Effects */
.location-card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Button Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Enhanced Focus States */
.btn:focus,
.pagination-link:focus {
    outline: 2px solid #f06421;
    outline-offset: 2px;
}

/* Improved Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .status-badge,
    .category-badge {
        border: 2px solid currentColor;
    }
    
    .table-image,
    .card-image {
        border: 2px solid #000;
    }
}
