:root {
    --color-primary: #0a6864;
    --color-primary-active: #074b48;
    --color-primary-disabled: #a2d2d0;
    --color-ink: #0f172a;
    --color-body: #334155;
    --color-muted: #64748b;
    --color-muted-soft: #94a3b8;
    --color-hairline: #e2e8f0;
    --color-hairline-soft: #f1f5f9;
    --color-border-strong: #cbd5e1;
    --color-canvas: #f8fafc;
    --color-surface-soft: #f1f5f9;
    --color-surface-strong: #e2e8f0;
    --color-on-primary: #ffffff;
    --color-error: #ef4444;
    
    --rounded-none: 0px;
    --rounded-xs: 4px;
    --rounded-sm: 8px;
    --rounded-md: 16px;
    --rounded-lg: 24px;
    --rounded-xl: 32px;
    --rounded-full: 9999px;
    
    --spacing-xxs: 2px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 64px;
    
    --font-family: 'Inter', Circular, -apple-system, system-ui, Roboto, sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--color-ink);
    background-color: var(--color-canvas);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Prevent horizontal layout overflows on mobile devices */
p, td, th {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Ensure navbar items, logos, badges, and action buttons never wrap awkwardly or break words */
.navbar-brand, 
.nav-link, 
.btn, 
.badge, 
.form-select, 
.form-control,
.pricing-price,
.plans-toggle-btn {
    white-space: nowrap;
    word-break: normal !important;
    word-wrap: normal !important;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-all;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-ink);
    font-weight: 600;
}

/* Button Component Styles */
.btn-rausch {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    border-radius: var(--rounded-sm);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-rausch:hover, .btn-rausch:active {
    background-color: var(--color-primary-active);
    color: var(--color-on-primary);
}

.btn-rausch:disabled {
    background-color: var(--color-primary-disabled);
    cursor: not-allowed;
}

.btn-rausch-secondary {
    background-color: var(--color-canvas);
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: var(--rounded-sm);
    padding: 13px 23px;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-rausch-secondary:hover {
    background-color: var(--color-surface-soft);
}

.btn-rausch-pill {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    border-radius: var(--rounded-full);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-rausch-pill:hover {
    background-color: var(--color-primary-active);
    color: var(--color-on-primary);
}

/* Card Component Styles */
.card-secondsell {
    background-color: var(--color-canvas);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card-secondsell:hover {
    box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0;
}

/* Input Fields Styles */
.form-control-secondsell {
    background-color: var(--color-canvas);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--rounded-sm);
    padding: 14px 12px;
    height: 56px;
    font-size: 16px;
    color: var(--color-ink);
    width: 100%;
    transition: border-width 0.1s ease, border-color 0.1s ease;
}

.form-control-secondsell:focus {
    outline: none;
    border: 2px solid var(--color-ink);
    padding: 13px 11px; /* adjust for thicker border */
    box-shadow: none;
}

/* Common Layout Elements */
.header-public {
    background-color: var(--color-canvas);
    border-bottom: 1px solid var(--color-hairline);
    height: 80px;
}

.footer-public {
    background-color: var(--color-canvas);
    border-top: 1px solid var(--color-hairline);
    padding: var(--spacing-xxl) var(--spacing-xl);
}

/* Navigation tabs */
.nav-link-secondsell {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
    padding: 8px 16px;
}

.nav-link-secondsell.active {
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
}

/* Shadows and elevation */
.shadow-tier1 {
    box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0;
}

/* Custom Color Utilities */
.bg-teal {
    background-color: #0a6864 !important;
    color: #ffffff !important;
}
.btn-teal {
    background-color: #0a6864 !important;
    color: #ffffff !important;
    border: none;
}
.btn-teal:hover {
    background-color: #074b48 !important;
    color: #ffffff !important;
}

/* Premium UI Styles */
.btn-gold {
    background-color: #ffb800 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    border: none !important;
}
.btn-gold:hover {
    background-color: #e5a500 !important;
    color: #0f172a !important;
}

.bg-dark-teal {
    background-color: #051d1c !important;
}

/* Header Styles */
.header-top-bar {
    background-color: #075955;
    padding: 12px 0;
}
.header-sub-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-hairline);
    padding: 8px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero-premium-bg {
    background: linear-gradient(135deg, #022c2a 0%, #075955 50%, #004d40 100%);
    position: relative;
    color: #ffffff;
    padding: 80px 24px 100px;
    border-bottom-left-radius: 50% 25px;
    border-bottom-right-radius: 50% 25px;
    margin-bottom: 50px;
    overflow: hidden;
}
.hero-premium-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,184,0,0.1) 0%, rgba(255,255,255,0) 70%);
}
.hero-premium-bg::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,104,100,0.25) 0%, rgba(255,255,255,0) 75%);
}

.search-box-premium {
    background-color: #ffffff;
    border-radius: var(--rounded-full);
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.search-input-premium {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 500;
}

.search-select-premium {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 600;
    color: var(--color-primary);
    border-right: 1px solid var(--color-hairline) !important;
    border-radius: 0 !important;
}

/* Category cards */
.cat-card {
    border-radius: var(--rounded-md);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none !important;
    color: var(--color-ink) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}
.cat-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* City Cards */
.city-card {
    position: relative;
    border-radius: var(--rounded-md);
    overflow: hidden;
    height: 160px;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.city-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.city-card:hover .city-card-img {
    transform: scale(1.1);
}
.city-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(5,29,28,0.9) 0%, rgba(5,29,28,0.2) 60%, rgba(255,255,255,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #ffffff;
    text-decoration: none !important;
}

/* Pricing Card Premium */
.pricing-card {
    border-radius: var(--rounded-md);
    border: 1px solid var(--color-hairline);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.pricing-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #075955 0%, #004d40 100%);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}
.pricing-card:not(.featured):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Micro animations */
.pulse-hover:hover {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Global Listing Cards Sizing & Layout */
.listing-card {
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--color-canvas);
    text-decoration: none;
    color: var(--color-ink);
    height: 100%;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.08) 0 6px 20px;
    color: var(--color-ink);
}
.listing-img-box {
    height: 200px;
    background-color: var(--color-surface-soft);
    position: relative;
    overflow: hidden;
}
.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.condition-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--rounded-sm);
    text-transform: uppercase;
}
.featured-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ffb800;
    color: #0f172a;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--rounded-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Scroll to Top Button */
.btn-scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary, #0a6864);
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(10, 104, 100, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
.btn-scroll-to-top:hover {
    background-color: var(--color-primary-active, #074b48);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(10, 104, 100, 0.45);
}
.btn-scroll-to-top:focus-visible {
    box-shadow: 0 0 0 3px rgba(10, 104, 100, 0.4), 0 4px 12px rgba(10, 104, 100, 0.3);
    outline: none;
}
.btn-scroll-to-top:active {
    transform: translateY(-1px);
}
.btn-scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .btn-scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Horizontal slider for pricing plans in mobile view */
@media (max-width: 768px) {
    .pricing-slider-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 20px !important;
        padding-top: 15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-slider-row::-webkit-scrollbar {
        height: 6px;
    }
    .pricing-slider-row::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }
    .pricing-slider-row::-webkit-scrollbar-thumb {
        background: var(--color-primary-disabled, #a2d2d0);
        border-radius: 10px;
    }
    .pricing-slider-row .col-md-4 {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        scroll-snap-align: start !important;
        margin-right: 15px !important;
    }
}


