body { font-family: 'Open Sans', sans-serif; margin: 0; color: #333; background: #f5f5f5; line-height: 1.6; }
html { scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: #5C3D2E; }
h2 { font-size: 2.4em; margin-top: 0; }
section > h2:first-child { scroll-margin-top: 20px; }
h3 { margin-top: 0; }

header {
    background: url('images/heart-light.webp') center center / cover no-repeat;
    padding: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(92, 61, 46, 0.25);
}
header > .container { position: relative; z-index: 1; }

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo svg { width: 48px; height: 48px; flex-shrink: 0; }
.logo h1 { margin: 0; font-size: 2.2em; color: #fff; }

.lang-toggle {
    display: flex;
    gap: 8px;
}
.lang-toggle button {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.lang-toggle button:hover { background: rgba(255,255,255,0.4); }
.lang-toggle button.active { background: #fff; color: #5C3D2E; }

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
nav a:hover { background: rgba(255,255,255,0.25); }

#hero { position: relative; text-align: center; margin-bottom: 40px; }
.hero-img { width: 100%; max-height: 85vh; object-fit: cover; }
.hero-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    padding: 20px 30px;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.hero-text h2 { font-size: 3em; margin: 0 0 10px; color: #fff; text-shadow: 3px 3px 8px rgba(0,0,0,0.9); white-space: pre-line; }
.hero-text p { font-size: 1.6em; margin: 0 0 25px; color: #fff; text-shadow: 2px 2px 6px rgba(0,0,0,0.9); }
.btn {
    background: #2E5C3D;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

.apartment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 30px; }
.apartment {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.apartment-images-ost {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
}

.apartment-ost-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.apartment-ost-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.apartment-ost-placeholder {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    font-style: italic;
    color: #777;
    padding: 20px;
}

.pricing-info {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 40px 0 20px;
}
.pricing-info h3 { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}
.price-table th, .price-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.price-table th {
    background: #f8f8f8;
    color: #5C3D2E;
    font-weight: 700;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2E5C3D;
}
.pricing-info ul { margin: 15px 0; padding-left: 20px; }
.pricing-info ul ul { margin: 8px 0 8px 20px; }
.pricing-info .note { font-size: 0.95em; color: #555; font-style: italic; margin-top: 20px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { 
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f5f5f5;
}
.gallery-grid img { 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; 
}
.gallery-item img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.full-width {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}
.gallery-img { transition: transform 0.3s ease; cursor: pointer; transform-origin: center center; }
.gallery-img:hover { transform: scale(1.1); }

.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.map-caption {
    position: absolute;
    bottom: 8px;
    left: 12px;
    background: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.map-caption a { color: #2E5C3D; text-decoration: none; font-weight: 600; }
.map-caption a:hover { text-decoration: underline; }

#contact { padding-top: 20px; }

#contact form {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
#contact input, #contact textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}
#contact button { background: #2E5C3D; color: #fff; border: none; cursor: pointer; font-size: 1.1em; }

.checkbox-wrapper {
    margin: 15px 0;
    text-align: left;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.privacy-notice {
    margin: 15px 0 0 0;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #2E5C3D;
    border-radius: 4px;
    text-align: left;
    font-size: 0.9em;
    color: #555;
}
.privacy-notice a {
    color: #2E5C3D;
    text-decoration: underline;
}
.privacy-notice a:hover {
    color: #1e4028;
}

.contact-fallback { font-size: 0.95em; color: #555; margin-top: 30px; text-align: center; }
.email-protected a { color: #2E5C3D; text-decoration: none; }
.email-protected a:hover { text-decoration: underline; }

footer {
    background: #5C3D2E;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .hero-text { top: 85%; padding: 12px 18px; }
    .hero-text h2 { font-size: 1.8em; }
    .hero-text p { font-size: 1.2em; margin: 0 0 15px; }
    .hero-text .btn { padding: 8px 14px; font-size: 0.9em; }
    #about { padding-top: 60px; }
    .logo-wrapper { flex-direction: column; align-items: flex-start; }
    .lang-toggle { align-self: flex-end; }
    .logo svg { width: 40px; height: 40px; }
    .logo h1 { font-size: 1.9em; }
    .logo { gap: 10px; }
    nav ul { flex-direction: column; gap: 15px; }
    .map-wrapper { height: 350px; }
    .map-caption { bottom: 6px; left: 8px; padding: 5px 8px; font-size: 0.8em; }
    .price-table thead { display: none; }
    .price-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
    }
    .price-table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
    }
    .price-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #5C3D2E;
    }
}

#heart-emoji.success {
  display: inline-block;  /* Ensures the animation applies smoothly to the inline emoji */
  animation: pulse 1s ease-in-out;
  animation-iteration-count: 3;  /* Repeats the pulse 3 times */
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
