.btn-primary,
.btn-primary:focus,
.btn-outline-primary,
.btn-outline-primary:focus {
    background-color: #314b20 !important;
    border-color: #314b20 !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #4d7036 !important;
    border-color: #4d7036 !important;
    color: #fff !important;
}

.btn-primary:active,
.btn-outline-primary:active {
    background-color: #5d8840 !important;
    border-color: #5d8840 !important;
    color: #fff !important;
}

body {
    padding-top: 70px;
    font-family: 'Montserrat', sans-serif;
    color: #444444;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(45deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.call-button {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 999;
    background-color: #314b20;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    animation: pulse 1s infinite;
}

.call-button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.call-button:hover {
    background-color: #4d7036;
}

@media (min-width: 768px) {
    .call-button {
        display: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 75, 32, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(49, 75, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 75, 32, 0);
    }
}

.logo-webp {
    height: clamp(40px, 5vw, 70px);
    width: auto;
}

@media (max-width: 767.98px) {
    section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #314b20;
}

.navbar-nav .nav-link:active {
    color: #4d7036;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(49,75,32, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(77,112,54, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .btn {
    border-radius: 20px !important;
}

.btn-outline-primary {
    color: #314b20;
    border-color: #314b20;
}

.dropdown-menu {
    min-width: 6rem;
}

.dropdown-item:hover {
    background-color: #4d7036;
    color: white;
}

.call-button {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 999;
    background-color: #314b20;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    animation: pulse 1s infinite;
}

.call-button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.call-button:hover {
    background-color: #4d7036;
}

@media (min-width: 768px) {
    .call-button {
        display: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 75, 32, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(49, 75, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 75, 32, 0);
    }
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 2rem;
    aspect-ratio: 7/4;
}

@media (max-width: 998px) {
    .hero-image-wrapper {
        margin-top: 1rem;
        border-radius: 15px;
        aspect-ratio: 6/4;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    padding: 0 1rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.responsive-paragraph {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

.layout-slide {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: transform 0.3s ease;
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 4/5;
    max-width: 300px;
    margin: auto;
}

.layout-slide:hover {
    transform: translateY(-4px);
}

.layout-slide img {
    width: 100%;
    border-radius: 0.75rem;
}

.layout-info {
    text-align: center;
    margin-top: 0.75rem;
}

.layout-info .rooms {
    font-weight: 600;
}

.layout-info .size {
    font-size: 0.9rem;
    color: #666;
}

.swiper-pagination {
    margin-top: 1.3rem;
    position: relative;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #314b20;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 998.98px) {
    footer .row>div {
        text-align: start;
    }

    footer h5,
    footer h6 {
        font-size: 1.1rem;
    }

    footer p,
    footer li,
    footer input,
    footer button {
        font-size: 0.95rem;
    }

    footer input.form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    footer button.btn {
        padding: 0.5rem 0.75rem;
    }
}

footer input.form-control,
footer button.btn {
    height: 48px;
    line-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.contact-wrapper {
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    align-self: center;
    align-items: stretch;
    padding: 20px;
    background-color: #ffffff;
}

.map-container {
    flex: 1 1 100%;
    aspect-ratio: 5 / 3;
    min-height: 250px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dfe4dc;
}

.form-container {
    flex: 1 1 100%;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dfe4dc;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.375rem;
    color: #314b20;
    text-align: center;
}

.input-field {
    width: 100%;
    margin-bottom: 1rem;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cfd8cc;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #314b20;
    background-color: #f8f8f8;
}

.input-field input::placeholder,
.input-field textarea::placeholder,
.phone-input::placeholder {
    color: #777;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cfd8cc;
    background-color: #f8f8f8;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.prefix {
    display: flex;
    align-items: center;
    padding: 0 0.625rem;
    background-color: transparent;
    color: #314b20;
    white-space: nowrap;
    font-size: 1rem;
}

.prefix img {
    width: 1.25rem;
    height: 0.875rem;
    margin-right: 0.375rem;
    object-fit: cover;
}

.country-code-text {
    font-weight: 600;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.875rem 0.75rem;
    font-size: 1rem;
    width: 100%;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #314b20;
    color: #fff;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

button[type="submit"]:hover {
    background-color: #4d7036;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    font-size: 14px;
    transform: translateX(-50%) translateY(-100px);
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 99999;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast.error {
    background-color: #e74c3c;
}

@media (max-width: 480px) {
    .toast {
        top: 70px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .toast {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .form-container {
        order: 1;
    }

    .map-container {
        order: 2;
        aspect-ratio: 5 / 3;
        height: auto !important;
    }
}

@media (min-width: 768px) {

    .form-container,
    .map-container {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {

    .message-field {
        display: none;
    }

    .form-container {
        padding: 1.25rem;
    }

    .btn-text {
        font-size: 0.875rem;
    }

    .prefix span {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) and (max-width: 998.98px) {
    footer .row>div {
        text-align: start;
    }

    footer h5,
    footer h6 {
        font-size: 1.1rem;
    }

    footer p,
    footer li,
    footer input,
    footer button {
        font-size: 0.95rem;
    }

    footer input.form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    footer button.btn {
        padding: 0.5rem 0.75rem;
    }
}

.footer-input {
    height: 45px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.footer-button {
    height: 45px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: #314b20;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: #4d7036 !important;
    text-decoration: none;
}

.footer-send-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background-color: #314b20;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.footer-send-btn:hover,
.footer-send-btn:focus {
    background-color: #4d7036;
}

#footer-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

html,
body {
    overflow-x: hidden;
}