:root {
    --primary: #002147;
    --accent: #D4AF37;
    --bg: #f8fafc;
    --dark: #1e293b;
    --green: #166534;
    --white: #ffffff;
    --gray-light: #f1f5f9;
    --gray-text: #64748b;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 44px;
    width: 44px;
    display: block;
}

.logo-text {
    line-height: 1;
}

.lang-toggle {
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-text);
    border: 1px solid #eee;
    padding: 6px 18px;
    border-radius: 20px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gray-light);
    border-color: var(--primary);
    color: var(--primary);
}

#map {
    height: 450px;
    width: 100%;
    z-index: 10;
    border-bottom: 5px solid var(--primary);
    background: #e2e8f0;
}

.map-container {
    position: relative;
    width: 100%;
}

.map-disclaimer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--primary);
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .map-disclaimer {
        font-size: 0.75rem;
        padding: 8px 15px;
        bottom: 15px;
        width: 90%;
        white-space: normal;
        text-align: center;
    }
}

/* Service Center */
.service-center {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.service-item div {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.service-item strong {
    font-size: 1.2rem;
    color: var(--primary);
    display: block;
}

/* Filters & Sorting */
.filter-bar {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-text);
    margin-bottom: 5px;
    margin-left: 5px;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.05);
}

.sort-group {
    min-width: 150px;
}

/* Post Bar */
.post-bar {
    background: var(--green);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    margin: 30px 0;
}

.post-btn {
    background: var(--accent);
    color: var(--green);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-left: 15px;
    display: inline-block;
    transition: var(--transition);
}

.post-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Grid & Cards */
.grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.gold-frame {
    border: 4px solid var(--accent) !important;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3) !important;
}

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0; /* Placeholder color */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,33,71,0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.card-body {
    padding: 22px;
}

.price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: var(--gray-text);
    font-size: 0.9rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,33,71,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 850px;
    padding: 0;
    border-radius: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img {
    flex: 0 0 100%;
    object-fit: contain;
    height: 100%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.4);
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }

.step {
    display: none;
    padding: 45px;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-action:hover {
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.2);
}

input, textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 12px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

footer {
    text-align: center;
    padding: 60px 10%;
    color: var(--gray-text);
    font-size: 0.9rem;
    background: var(--white);
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 18px;
    }
    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    .logo-img {
        height: 40px;
        width: 40px;
    }
    .lang-toggle {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .service-center {
        grid-template-columns: 1fr;
    }
    .gallery-wrapper {
        height: 300px;
    }
}
