@font-face {
    font-family: 'Saint Regus';
    src: url('Saint Regus/Sonar Hubermann - SaintRegus-SemiBold.otf') format('opentype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saint Regus Condensed';
    src: url('Saint Regus/Sonar Hubermann - SaintRegus-SemiBoldCondensed.otf') format('opentype');
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background: #F5F0E8;
}

#root {
    width: 100vw;
    height: 100vh;
}

/* Main Layout */
.app-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Floating Card */
.floating-card {
    position: absolute;
    top: calc(50% + 47px);
    left: 64px;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 1px 2px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Main Title */
.main-title {
    font-family: 'Saint Regus Condensed', 'Inter', sans-serif;
    font-size: 3em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 12px;
    text-align: center;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6B6B6B;
    line-height: 1.4;
    margin-bottom: 24px;
    text-align: center;
}

/* Filter Icons */
.filters {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #E0D5C7;
    transition: all 0.2s ease;
}

.filter-icon svg {
    width: 24px;
    height: 24px;
    stroke: #8B7355;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.filter-item.active .filter-icon {
    background: #8B7355;
    border-color: #8B7355;
}

.filter-item.active .filter-icon svg {
    stroke: white;
}

.filter-item:hover:not(.active) .filter-icon {
    border-color: #8B7355;
    background: rgba(139, 115, 85, 0.1);
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B6B6B;
}

.filter-item.active .filter-label {
    color: #8B7355;
}

/* Contact Section */
.contact-section {
    padding-top: 24px;
    border-top: 1px solid rgba(232, 224, 213, 0.6);
}

.contact-title {
    font-family: 'Saint Regus Condensed', 'Inter', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
    text-align: center;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6B6B6B;
    line-height: 1.4;
    margin-bottom: 24px;
    text-align: center;
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    outline: none;
    user-select: none;
    text-decoration: none;
}

.cta-button-bottom {
    position: relative;
    z-index: 10;
    border: 1px solid #8B7355;
    background: white;
    padding: 14px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button-text-bottom {
    font-size: 1.25rem;
    color: black;
    font-family: 'Saint Regus Condensed', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

.cta-button-top {
    position: absolute;
    inset: 0;
    z-index: 20;
    transform: translate(-8px, -8px);
    background: #8B7355;
    border: 1px solid #8B7355;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button-wrapper:hover .cta-button-top {
    transform: translate(0, 0);
}

.cta-button-text-top {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: white;
    font-family: 'Saint Regus Condensed', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

.cta-button-arrow {
    margin-left: 8px;
    transition: transform 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button-wrapper:hover .cta-button-arrow {
    transform: rotate(45deg);
}

.cta-button-arrow-invisible {
    visibility: hidden;
    margin-left: 8px;
}

/* Map Container */
.map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom Marker */
.custom-marker {
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-inner {
    width: 32px;
    height: 32px;
    background: #8B7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.5);
    animation: markerPop 400ms ease-out forwards;
    position: relative;
}

/* Halo effect */
.marker-inner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(139, 115, 85, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

@keyframes markerPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-marker:hover .marker-inner {
    transform: scale(1.15);
    background: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.custom-marker:hover .marker-inner::after {
    opacity: 1;
    transform: scale(1.4);
    border-color: rgba(139, 115, 85, 0.6);
}

.marker-inner svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* Popup Styles */
.maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-family: 'Inter', sans-serif;
    background: white !important;
}

.maplibregl-popup-tip {
    border-top-color: white !important;
}

.maplibregl-popup-close-button {
    font-size: 18px;
    padding: 4px 8px;
    color: #999;
}

.popup-content {
    min-width: 200px;
    padding: 24px;
}

.popup-name {
    font-family: 'Saint Regus Condensed', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.1;
}

.popup-type {
    font-size: 0.75rem;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.popup-address {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 240, 232, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E0D5C7;
    border-top-color: #8B7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error State */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 16px 24px;
    color: #DC2626;
    font-weight: 500;
    z-index: 100;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .floating-card {
        left: 12px;
        width: calc(100% - 24px);
        padding: 24px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    .filters {
        gap: 16px;
    }

    .filter-item {
        flex: 1;
    }
}
