@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Modern Color Palette */
    --primary-color: #0d9488;
    /* Vibrant Teal */
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.1);
    --secondary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #f59e0b;
    /* Amber */

    --bg-base: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-hero: #020617;
    /* Slate 950 */

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-light: rgba(255, 255, 255, 0.1);

    /* Modern Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: backdrop-filter: blur(16px);

    /* Transitions & Sizing */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;

    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.23);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Floating Navigation */
.nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
    z-index: 50;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
}

/* =========================================
   DESKTOP NAV ACTION DOCK
   ========================================= */
#nav-actions {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 0.35rem 0.35rem 0.35rem 0.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#nav-actions:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.dock-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    border-radius: 99px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
}

.dock-item i {
    font-size: 1rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.dock-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.dock-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.1rem;
}

.dock-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d9488;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.dock-btn-primary:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.dock-item.has-dropdown i.chevron {
    font-size: 0.75rem;
    margin-left: 0.1rem;
}

.dock-item:hover i.chevron {
    transform: translateY(2px);
}

.dock-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    margin-left: 0.25rem;
    border: 1px solid #7f1d1d;
}

.nav-bar .logo {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Ultra Modern Hero Section */
.hero-section {
    position: relative;
    background-color: var(--bg-hero);
    color: white;
    padding: 12rem 0 10rem 0;
    text-align: center;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2dd4bf;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    font-weight: 500;
}

/* Glassmorphism Search Container */
.search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    transform: translateY(2rem);
}

.quick-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.quick-search .search-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

#main-search {
    flex: 1;
    border: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
}

.search-submit-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit-btn:hover {
    background: var(--primary-color);
}

.detailsuche-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.detailsuche-toggle:hover {
    color: var(--primary-color);
}

.detailsuche-panel {
    padding-top: 1.5rem;
    display: none;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: var(--transition-fast);
    color: var(--secondary-color);
}

.input-group select:focus,
.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Premium Listings Grid */
.listings-section {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.count-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    /* Slightly larger cards for featured */
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* Featured card golden styling */
.listing-card--featured {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 8px 24px rgba(245, 158, 11, 0.2) !important;
}

.listing-card--featured:hover {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45), 0 12px 32px rgba(245, 158, 11, 0.3) !important;
}

/* Featured badge — golden star */
.listing-tag--featured {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
}


.listing-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
    border-color: rgba(13, 148, 136, 0.25);
}

.listing-image-container {
    /* Square 1:1 aspect ratio box */
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f4f6f8;
    position: relative;
    overflow: hidden;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover .listing-image {
    transform: scale(1.06);
}

.listing-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.listing-info {
    padding: 1.1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.listing-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
}

.listing-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.listing-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
}

/* =========================================
   FORM PAGE REFINEMENTS 
   ========================================= */

.form-page {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at top, rgba(13, 148, 136, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

.nav-minimal {
    padding: 2rem 0;
}

.back-link {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.narrow-container {
    max-width: 800px;
    padding-bottom: 4rem;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-card h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--bg-base);
    padding-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 3rem;
    background: var(--bg-base);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.form-section>label {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group>label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Photo Upload - Ultra Modern */
.photo-upload-grid {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.upload-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #94a3b8;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    background-color: white;
    transition: var(--transition-fast);
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.upload-box i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-box span {
    font-size: 0.9rem;
    font-weight: 700;
}

.preview-thumb {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Flight Numbers Grid */
.flight-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.flight-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 0;
}

.flight-input input {
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0.875rem 0.5rem;
    color: var(--primary-color);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.flight-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.flight-input span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Auth Page Specifics */
.auth-page .form-card {
    padding-top: 2rem;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Features Chips */
.features-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.chip-label input {
    display: none;
}

.chip-label span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip-label:hover span {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.chip-label input:checked+span {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px var(--primary-light);
}

/* Footer & Switch */
.form-footer {
    margin-top: 4rem;
}

.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-base);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.switch-info {
    display: flex;
    flex-direction: column;
}

.switch-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.switch-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Base switch styles from before, just cleaned up */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-wrapper span {
    position: absolute;
    left: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.price-input-wrapper input {
    padding-left: 2.75rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-block {
    width: 100%;
}

.btn-xl {
    padding: 1.25rem;
    font-size: 1.2rem;
    border-radius: var(--radius-md);
}

/* ── Badges Container ─────────────────────────────────────────────────────── */
.card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    z-index: 4;
}

.card-badges .listing-tag,
.card-badges .listing-tag--featured {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
}

/* ── Favourite Heart Button ───────────────────────────────────────────────── */
.fav-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s, color 0.18s, background 0.18s;
}

.fav-btn:hover {
    transform: scale(1.15);
    color: #ef4444;
    background: white;
}

.fav-btn.active {
    color: #ef4444;
    background: #fff5f5;
}

.fav-btn.active i::before {
    content: '\f004';
    font-weight: 900;
    /* solid heart */
}

.profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-menu.open .chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 999;
    animation: dropdownFadeIn 0.18s ease;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown a,
.profile-dropdown button.dd-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
    box-sizing: border-box;
}

.profile-dropdown a:hover,
.profile-dropdown button.dd-item:hover {
    background: var(--bg-base);
}

.profile-dropdown a i,
.profile-dropdown button.dd-item i {
    width: 16px;
    color: var(--text-muted);
}

.profile-dropdown .dd-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.3rem 0;
}

.profile-dropdown .dd-danger {
    color: #ef4444;
}

.profile-dropdown .dd-danger i {
    color: #ef4444;
}

/* =========================================
   LOAD MORE BUTTON
   ========================================= */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: white;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-section {
    padding: 2.5rem 0 3rem 0;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
}

.faq-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.faq-toggle-btn:hover {
    color: var(--secondary-color);
}

.faq-toggle-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: transparent;
}

.faq-answer p {
    margin: 0;
    padding: 0 0.25rem 1rem 0.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Reusable Language Toggles for FAQ */
.faq-lang-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-lang-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.faq-lang-btn.active,
.faq-lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

.faq-lang-content {
    display: none;
}

.faq-lang-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}


/* =========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================= */
.mobile-bottom-nav,
.mobile-action-sheet-overlay,
.mobile-action-sheet {
    display: none;
}

/* =========================================
   RESPONSIVENESS / MOBILE
   ========================================= */
@media (max-width: 768px) {
    .search-container {
        padding: 0.75rem 1rem;
    }

    .quick-search {
        padding: 0.35rem 0.35rem 0.35rem 1rem;
    }

    #main-search {
        font-size: 0.95rem;
        padding: 0.35rem 0.5rem;
        min-width: 0;
        width: 100%;
    }

    .search-submit-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Form Page Mobile Refinements */
    .form-card {
        padding: 1.5rem;
    }

    .form-card h1 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .form-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .flight-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-chips {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .switch-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .switch {
        align-self: flex-end;
    }

    /* 2-Column Mobile Layout */
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .listing-card {
        border-radius: 12px;
    }

    .listing-info {
        padding: 0.6rem 0.6rem;
        gap: 0.15rem;
        /* override default display:flex column behavior slightly if needed */
    }

    .listing-title {
        font-size: 0.85rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        /* needed for truncation */
    }

    .listing-meta {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .listing-price {
        font-size: 0.9rem;
    }

    .listing-location {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        margin-top: 0.2rem;
        display: inline-flex;
        width: fit-content;
    }

    .listing-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
        left: 0.4rem;
    }



    /* Mobile Bottom Nav Overrides */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        display: flex;
        /* Shown on mobile */
        justify-content: space-around;
        align-items: flex-end;
        padding: 0.75rem 0.5rem 1.75rem 0.5rem;
        /* extra padding for safe area */
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }

    /* Hide desktop nav actions on mobile for main pages only */
    body:not(.details-page):not(.form-page) .nav-actions {
        display: none !important;
    }

    /* To prevent content from being overlapped by the bottom bar */
    body:not(.details-page):not(.form-page) {
        padding-bottom: 90px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        flex: 1;
        font-size: 0.75rem;
        font-weight: 700;
        gap: 0.35rem;
        transition: color 0.2s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--primary-color);
    }

    .mobile-nav-item i {
        font-size: 1.35rem;
    }

    .mobile-nav-fab-wrapper {
        position: relative;
        top: -24px;
        margin: 0 0.5rem;
    }

    .mobile-nav-fab {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.6rem;
        box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
        border: 4px solid white;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-decoration: none;
    }

    .mobile-nav-fab:hover {
        transform: scale(1.05) translateY(-2px);
        color: white;
        box-shadow: 0 12px 28px rgba(13, 148, 136, 0.5);
    }

    .mobile-nav-badge-wrapper {
        position: relative;
        display: inline-block;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: #ef4444;
        color: white;
        font-size: 0.65rem;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        box-sizing: border-box;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }

    /* =========================================
       ACCOUNT ACTION SHEET (MOBILE NAV)
       ========================================= */
    .mobile-action-sheet-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-action-sheet {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 24px 24px 0 0;
        z-index: 1002;
        padding: 1rem 1.5rem 2.5rem 1.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    }

    /* Open states */
    .mobile-action-sheet-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-action-sheet.open {
        transform: translateY(0);
    }

    .action-sheet-handle {
        width: 40px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 3px;
        margin: 0 auto 1.5rem auto;
    }

    .action-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .action-sheet-header h3 {
        font-size: 1.25rem;
        color: var(--secondary-color);
        margin: 0;
    }

    .action-sheet-close {
        background: #f1f5f9;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .action-sheet-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-sheet-item {
        display: flex;
        align-items: center;
        padding: 0.8rem 0;
        text-decoration: none;
        color: var(--secondary-color);
        font-weight: 600;
        font-size: 1.05rem;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

    .action-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f1f5f9;
        color: var(--secondary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .action-text {
        flex: 1;
    }

    .action-arrow {
        color: #cbd5e1;
        font-size: 0.9rem;
    }

    .action-sheet-divider {
        height: 1px;
        background: #e2e8f0;
        margin: 0.5rem 0;
    }
}

/* ── Cropper Modal ────────────────────────────────────────────────────────── */
.cropper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: cropperFadeIn 0.3s forwards;
    backdrop-filter: blur(8px);
}

@keyframes cropperFadeIn {
    to {
        opacity: 1;
    }
}

.cropper-container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .cropper-container {
        height: 100vh;
        border-radius: 0;
    }
}

.cropper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cropper-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.cropper-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.cropper-close-btn:hover {
    color: #ef4444;
}

.cropper-body {
    flex: 1;
    background: #e2e8f0;
    position: relative;
    min-height: 300px;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 600px) {
    .cropper-body {
        max-height: none;
    }
}

.cropper-body img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.cropper-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}