/* Explore Pages Styling - Dark theme glass-card design */

/* Content Container (matches properties-list-container styling) */
.explore-content-container {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  max-width: 1400px;
  margin: 15px auto 0;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Section */
.explore-hero {
    text-align: center;
    padding: 1.5rem 0 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

/* Category Cards on Landing */
.explore-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Section Styling */
.explore-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.view-all-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--accent-2);
}

/* Explore Grid - 3 columns for landing page previews */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
}

/* Explore Card - Compact for landing page */
.explore-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.explore-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.explore-card-content {
    padding: 1.5rem;
}

.explore-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.explore-card-content .location {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.explore-card-content .description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.explore-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.explore-card-meta .category {
    background: rgba(79, 159, 248, 0.2);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.explore-card-meta .price {
    background: rgba(126, 231, 181, 0.2);
    color: var(--accent-2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Full Grid - 2 columns for category pages */
.explore-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(500px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
}

/* Large Card - Detailed for category pages */
.explore-card-large {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.explore-card-large:hover {
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.explore-card-image-large {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.explore-card-content-large {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.explore-card-content-large h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.explore-card-content-large .location {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.explore-card-content-large .description {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.explore-card-content-large .address {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.explore-card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-btn {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.page-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-2);
}

/* Filter Bar */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.filter-label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(79, 159, 248, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.no-results p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.no-results .btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-results .btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.location-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.location-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Related Links */
.related-links {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.related-links h2 {
    text-align: center;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.related-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.related-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Error Message */
.error-message {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #ff9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Hero Section */
    .explore-hero {
        padding: 1rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Grid Layouts - Single Column on Mobile */
    .explore-grid-full,
    .explore-grid,
    .location-grid,
    .explore-categories,
    .category-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    /* Category Cards */
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    /* Location Cards */
    .location-card,
    .location-card-large {
        padding: 1.5rem;
    }
    
    .location-card-large h3 {
        font-size: 1.4rem;
    }
    
    /* Explore Cards */
    .explore-card-content {
        padding: 1rem;
    }
    
    .explore-card h3 {
        font-size: 1.1rem;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn {
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    /* Action Buttons - Stack Vertically */
    .explore-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn,
    .btn {
        text-align: center;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    /* Page Spacing */
    .explore-section {
        margin-bottom: 2.5rem;
    }
    
    /* Location Stats */
    .location-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .location-stat {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Category Link Cards */
    .category-link-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .category-link-icon {
        font-size: 2rem;
    }
    
    /* Explore Nearby */
    .explore-nearby-card {
        padding: 1.5rem;
    }
    
    .explore-nearby-card h3 {
        font-size: 1.2rem;
    }
    
    .explore-nearby-link {
        padding: 0.75rem;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }
    
    .explore-nearby-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .explore-nearby-text {
        flex: 1;
        min-width: 0;
    }
    
    .explore-nearby-arrow {
        flex-shrink: 0;
    }
    
    /* Price Badge */
    .price-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Back Button */
    .back-btn-container {
        margin-top: 2rem;
        text-align: center;
    }
    
    .back-btn-container .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile Typography Consistency */
    body {
        font-size: clamp(14px, 2.5vw, 16px) !important;
        line-height: 1.5;
    }
    
    h1 {
        font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
    }
    
    h2 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    }
    
    h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem) !important;
    }
    
    p, li, span, div {
        font-size: clamp(14px, 2.5vw, 16px) !important;
    }
    
    .explore-card-content-large .description,
    .explore-card-content-large .address,
    .explore-card-content p,
    .location-card p,
    .category-card p {
        font-size: clamp(14px, 2.5vw, 16px) !important;
    }
    
    /* Mobile container width matches header/footer - remove side padding for better content display */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Keep the content container margin consistent with events/properties */
    .explore-content-container {
        margin: 15px auto 0;
    }
    
    /* Adjust card images for better mobile display */
    .explore-card-image {
        height: 180px;
        width: 100%;
        max-width: 100%;
    }
    
    .explore-card-image-large {
        height: 220px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure all cards stay within viewport */
    .explore-card,
    .explore-card-large,
    .location-card,
    .location-card-large,
    .category-card,
    .category-link-card {
        max-width: 100%;
        width: 100%;
    }
    
    /* Prevent text overflow in cards */
    .explore-card-content,
    .explore-card-content-large,
    .location-card,
    .category-card {
        max-width: 100%;
    }
    
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Prevent long URLs or addresses from breaking layout */
    .address, .description, .meta-item {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* Location Card Large (for main explore page) */
.location-card-large {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.location-card-large h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.location-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

.location-stat {
    background: rgba(79, 159, 248, 0.2);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.location-cta {
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Category Link Cards (for location overview page) */
.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 10px;
    width: 100%;
}

.category-link-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-link-card:hover {
    transform: translateX(5px);
    box-shadow: var(--surface-glow);
    border-color: var(--accent);
}

.category-link-icon {
    font-size: 2.5rem;
}

.category-link-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.category-link-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Explore Nearby Section (for property details page) */
.explore-nearby-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.explore-nearby-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.explore-nearby-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explore-nearby-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.explore-nearby-link:hover {
    background: rgba(79, 159, 248, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

.explore-nearby-icon {
    font-size: 1.5rem;
}

.explore-nearby-text {
    flex: 1;
}

.explore-nearby-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.explore-nearby-text span {
    font-size: 0.9rem;
    color: var(--muted);
}

.explore-nearby-arrow {
    color: var(--accent);
    font-size: 1.2rem;
}
