:root {
    --left-bg-color: #4a5d4e; /* Earthy green for Vila */
    --right-bg-color: #d4a373; /* Warm honey for Medova */
    --transition-speed: 0.6s;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.split {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width var(--transition-speed) ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

/* Background Images - Replace URLs with your actual photos */
.left {
    background: url('images/cottage.png') center/cover;
}

.right {
    background: url('images/medovasapa.jpg') center/cover;
}

/* Dark Overlays for Text Readability */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.split:hover .overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Dynamic Hover Effect */
.container:has(.left:hover) .left { width: 60%; }
.container:has(.left:hover) .right { width: 40%; }
.container:has(.right:hover) .right { width: 60%; }
.container:has(.right:hover) .left { width: 40%; }

/* Typography & Buttons */
.content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background: white;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .split { width: 100% !important; height: 50%; }
    h1 { font-size: 2.5rem; }
}