@font-face {
    font-family: 'Opet Tr';
    src: url('../assets/fonts/OpetTRA.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Global Vars & Reset */
:root {
    /* Brand Colors */
    --togg-turquoise: #00B1B0;
    --togg-dark-blue: #004da1;
    /* Adjusted for screenshot look */
    --togg-purple: #B12B8A;
    --togg-darker-blue: #0f263b;
    --togg-black: #000000;
    --togg-white: #FFFFFF;

    /* UI Colors */
    --bg-light: #F4F5F9;
    --text-main: #333333;
    --text-muted: #666666;
    --border-soft: #E0E0E0;
    --card-shadow: none;
    /* Screenshot shows clean flat/subtle look */
    --hover-shadow: none;

    /* Spacing */
    --header-height: 80px;

    /* Toast Colors */
    --toast-success: #2ecc71;
    --toast-info: #3498db;
    --toast-error: #e74c3c;
    --toast-bg: #333333;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height);
    -webkit-tap-highlight-color: transparent;
}

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

/* Global Header */
.main-header {
    background: var(--togg-white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 2000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 38px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    font-weight: 600;
    color: var(--togg-dark-blue);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.nav-item.multiline {
    white-space: normal;
    max-width: 90px;
    line-height: 1.2;
}

.auth-menu {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.nav-item:hover {
    opacity: 0.8;
}

.nav-item.btn-post-ad {
    background-color: #4da6ff;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.nav-item.btn-post-ad:hover {
    background-color: #3399ff;
    opacity: 1;
}

@media (max-width: 900px) {
    .main-header {
        height: auto;
        padding: 8px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 5px;
        padding: 0 12px;
        /* Standard unit */
    }

    .header-row {
        width: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

    .row-logo {
        padding-bottom: 8px;
        padding-top: 4px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: center;
    }

    .row-nav {
        justify-content: space-between;
        padding: 4px 5px;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
    }

    .logo img {
        height: 36px;
        /* Optimized size for mobile */
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 5px;
        font-size: 1.4rem;
        z-index: 3001;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-actions .nav-item {
        font-size: 0.72rem;
        padding: 2px 4px;
        font-weight: 500;
        color: var(--togg-dark-blue);
    }

    .header-actions .btn-post-ad {
        padding: 6px 10px;
        font-size: 0.75rem;
        background-color: #4da6ff;
        color: white !important;
        border-radius: 4px;
    }

    .nav-links {
        position: fixed;
        top: 95px;
        left: -100%;
        width: auto;
        min-width: 140px;
        height: auto;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        box-shadow: none;
        transition: left 0.3s ease;
        z-index: 3000;
        display: flex !important;
        align-items: flex-start !important;
    }

    .nav-links.active {
        left: 13px;
        /* 13px offset + 12px item padding = 25px sync */
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85rem;
        text-align: left;
        border-bottom: none;
        color: var(--togg-dark-blue) !important;
        font-weight: 600 !important;
    }

    .nav-item.multiline {
        max-width: none !important;
        text-align: left;
        white-space: normal;
        line-height: 1.3;
    }

    body {
        padding-top: 100px;
    }

    .container {
        padding: 0 12px !important;
    }

    .card-info {
        padding: 12px !important;
    }
}

/* Models Section Mobile Alignment */
@media (max-width: 900px) {
    .models-section h3 {
        padding-left: 12px !important;
        /* Synced: 12px(container) + 12px(here) = 24px */
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

/* Listings Header & Controls - Mobile Sync */
@media (max-width: 900px) {
    .listings-header h3 {
        padding-left: 12px !important;
        /* Synced: 12px(container) + 12px(here) = 24px */
    }
}

.hero {
    background: url('../assets/banner.jpg') no-repeat center center/cover;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-position: center;
    /* Desktop centered */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Reduced overlay for pop */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.hero h1 {
    font-family: 'Opet Tr', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 400 !important;
    font-style: normal !important;
    text-transform: lowercase !important;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -1px;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.search-box {
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ccc;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    color: #333;
}

.search-box button {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 15px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 180px;
        background-position: center bottom;
        /* Better alignment for SUV image */
    }

    .hero h1 {
        font-family: 'Opet Tr', sans-serif !important;
        font-size: 1.8rem;
        text-transform: lowercase !important;
        font-weight: 400 !important;
        text-rendering: optimizeLegibility;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 160px;
        background-position: center center;
        /* Fully centered for small mobile */
        background-size: cover;
    }

    .hero h1 {
        font-family: 'Opet Tr', sans-serif !important;
        font-size: 1.6rem;
        text-transform: lowercase !important;
        font-weight: 400 !important;
        text-rendering: optimizeLegibility;
    }
}

/* Models Section */
.models-section {
    padding: 40px 0;
    margin-top: 20px;
}

.models-section h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--togg-dark-blue);
    border-left: none;
    padding-left: 20px;
    font-weight: 600;
    /* Align with .card-info padding on desktop */
}

/* Listings Controls & View Modes */
.btn-view {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-view:hover {
    background: var(--bg-light);
    color: var(--togg-turquoise);
}

.btn-view.active {
    background: var(--togg-turquoise);
    color: white;
}

/* List View Layout - Table Style */
.listings-grid.view-list {
    display: block;
    /* Stack items vertically */
    gap: 0;
}

.list-view-header {
    display: grid;
    grid-template-columns: 120px 110px minmax(200px, 2fr) 60px 90px 80px 140px 100px 110px;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-soft);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.listings-grid.view-list .listing-card {
    display: grid;
    grid-template-columns: 120px 110px minmax(200px, 2fr) 60px 90px 80px 140px 100px 110px;
    gap: 15px;
    height: auto;
    min-height: 90px;
    align-items: center;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 10px 15px;
    text-decoration: none;
}

.listings-grid.view-list .listing-card:hover {
    background-color: #fcfcfc;
    box-shadow: none;
    background: #ffffed;
    /* Highlight color similar to sahibinden */
}

/* Hide grid elements in list view if not needed, or restyle them */
.listings-grid.view-list .listing-img {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.listings-grid.view-list .listing-details {
    padding: 0;
    display: contents;
    /* Allow children to participate in parent grid */
}

/* Specific Columns for List View */
.listings-grid.view-list .listing-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--togg-dark-blue);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    line-height: 1.4;
}

.listings-grid.view-list .listing-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--togg-turquoise);
    margin: 0;
    text-align: right;
}

/* New Attr Classes for List View Columns */
.listing-attr {
    display: none;
    /* Hidden by default in grid view */
    font-size: 0.95rem;
    color: #333;
}

.listings-grid.view-list .listing-attr {
    display: block;
}

.listings-grid.view-list .listing-meta {
    display: none;
    /* Hide old meta container in list view */
}

/* Mobile Responsiveness for List View */
@media (max-width: 900px) {
    .list-view-header {
        display: none !important;
        /* Hide header on mobile */
    }

    .listings-grid.view-list .listing-card {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
        height: auto;
        padding: 15px;
        border-bottom: 1px solid var(--border-soft);
    }

    .listings-grid.view-list .listing-img {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }

    .listings-grid.view-list .listing-details {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Show only essential info on mobile list view */
    .listings-grid.view-list .listing-attr {
        display: none;
    }

    .listings-grid.view-list .listing-attr.attr-loc,
    .listings-grid.view-list .listing-attr.attr-date {
        display: inline-block;
        font-size: 0.8rem;
        color: #999;
    }

    .listings-grid.view-list .listing-price {
        text-align: left;
        margin-top: 5px;
    }
}



.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.model-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.model-card:hover {
    transform: translateY(-2px);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

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

.card-info {
    padding: 20px;
}

.card-info h4 {
    color: var(--togg-dark-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-decoration: underline;
    font-weight: 600;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
}

.nav-item.highlight {
    color: var(--togg-purple);
}

/* Advertisement Banner */
.ad-banner-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.ad-banner-container {
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.ad-placeholder p {
    margin: 5px 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.ad-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Mobile Ad Banner */
@media (max-width: 768px) {
    .ad-banner-section {
        padding: 30px 0;
    }

    .ad-banner-container {
        max-width: 320px;
        min-height: 50px;
    }

    .ad-placeholder i {
        font-size: 1.5rem;
    }
}

/* Footer */
.main-footer {
    background: var(--togg-dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

/* Profile Page Styles */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
    min-height: 700px;
}

/* Sidebar & User Card */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--togg-turquoise);
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 177, 176, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.user-avatar-large:hover {
    transform: scale(1.05);
}

.user-avatar-large:hover i {
    opacity: 0.8;
}

.user-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--togg-dark-blue);
}

.user-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--bg-light);
    color: var(--togg-turquoise);
}

.menu-item.active {
    background: rgba(0, 177, 176, 0.1);
    color: var(--togg-turquoise);
}

.menu-icon {
    width: 20px;
    text-align: center;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
    margin-bottom: 5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms */
.profile-form {
    max-width: 100%;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--togg-dark-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper .form-control {
    padding-left: 45px;
    /* Space for icon */
    height: 48px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1rem;
}

.input-wrapper .form-control:focus {
    border-color: var(--togg-turquoise);
    box-shadow: 0 0 0 3px rgba(0, 177, 176, 0.1);
}

.input-wrapper.disabled .form-control {
    background: #f9f9f9;
    color: #777;
    cursor: not-allowed;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}

/* Listings Grid in Profile */
.my-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mini-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
}

.mini-card:hover {
    box-shadow: var(--hover-shadow);
}

.mini-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mini-card-body {
    padding: 20px;
}

.mini-card-actions {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

/* Messages */
.msg-list-item {
    padding: 25px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--togg-turquoise);
    background: white;
    transition: transform 0.2s;
}

.msg-list-item:hover {
    transform: translateX(5px);
}

.msg-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg-meta strong {
    color: var(--togg-dark-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .main-header {
        height: auto;
        padding: 10px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 15px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

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

/* Splash screen styles removed - using native PWA splash only */

/* Share & Favorite Buttons - Listing Cards (REMOVED) */
/* These buttons are no longer shown on listing cards */

/* Detail Page - Image Actions */
.detail-image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.detail-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--togg-dark-blue);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detail-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-action-btn.favorite.active {
    color: #e74c3c;
}

.detail-action-btn.favorite.active i {
    font-weight: 900;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: var(--togg-turquoise);
    color: var(--togg-turquoise);
}

.btn-action.favorite.active {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-action.favorite.active i {
    font-weight: 900;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--togg-dark-blue), #004da1);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-install-banner.active {
    bottom: 20px;
}

.pwa-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-info img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.pwa-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.pwa-text p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pwa-btns {
    display: flex;
    gap: 8px;
}

.btn-pwa-install {
    background: var(--togg-turquoise);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 210, 217, 0.3);
}

.btn-pwa-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detail Page Gallery Optimization */
.gallery-main {
    height: 350px !important;
    /* Slightly smaller for better screen compatibility */
    background: #000 !important;
    cursor: zoom-in;
    position: relative;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .gallery-main {
        height: 280px !important;
        /* Even smaller on mobile to see content below */
    }
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* Show whole image without cutting */
}

/* Lightbox Modal (Zoom Feature) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-modal.active {
    display: flex;
}

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

.lightbox-content-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--togg-turquoise);
}

#lightbox-caption {
    margin-top: 20px;
    color: #ccc;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notification Prompt Banner */
.notify-prompt-banner {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: var(--togg-dark-blue);
    color: white;
    padding: 15px 20px;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notify-prompt-banner.active {
    top: 0;
}

.notify-prompt-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notify-prompt-content i {
    font-size: 1.5rem;
    color: var(--togg-turquoise);
}

.notify-prompt-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.notify-prompt-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.notify-prompt-btns {
    display: flex;
    gap: 10px;
}

.btn-notify-allow {
    background: var(--togg-turquoise);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-notify-allow:hover {
    background: #008b8a;
}

.btn-notify-close {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .notify-prompt-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .notify-prompt-content {
        flex-direction: column;
        gap: 8px;
    }
}

/* Install Help Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.install-help-content {
    background: #1a202c;
    border: 1px solid var(--togg-turquoise);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-overlay.active .install-help-content {
    transform: translateY(0);
}

.modal-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.install-help-content h3 {
    color: white !important;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.install-help-content p {
    color: #cbd5e0 !important;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.install-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: var(--togg-turquoise);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    font-size: 0.95rem;
    color: white !important;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
}

/* Listings Header & Controls */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.listings-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
}

.listings-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggles {
    display: flex;
    gap: 5px;
    background: white;
    padding: 4px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
}

/* Mobile Adjustments for Listings Header */
@media (max-width: 900px) {
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .listings-header h3 {
        padding-left: 24px;
        font-size: 1.4rem;
        width: 100%;
    }

    .listings-controls {
        width: 100%;
        justify-content: space-between;
        padding: 0 5px;
        gap: 10px;
    }

    .sort-dropdown select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}