/* Villa Page Custom Styles */

:root {
    --clr-villa-bg: #f7f7ee;
    --clr-villa-sage: #e3e3c4;
    --clr-villa-tan: #E0C5A2;
    --clr-villa-amber: #E59535;
    --clr-villa-dark: #3A3A3A;
}

/* Hero Section */
#villa-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

#villa-hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Riesling', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtext {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 600;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { top: -60px; }
    100% { top: 60px; }
}

/* General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-sec {
    padding: 120px 0;
    background-color: var(--clr-villa-bg);
}

.section-title {
    font-family: 'Riesling', cursive;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--clr-villa-dark);
    margin-bottom: 50px;
}

.section-title.center {
    text-align: center;
}

/* The Villa Grid */
.villa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.villa-image-sec .img-frame {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.villa-image-sec .img-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.villa-image-sec .img-frame:hover img {
    transform: scale(1.05);
}

.villa-text-sec .common-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.amenity-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.amenity-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(229, 149, 53, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--clr-villa-amber);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(225, 149, 53, 0.2);
}

.amenity-card h3 {
    font-family: 'PlayfairDisplay', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--clr-villa-dark);
}

.amenity-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
}

/* Booking Calendar */
.calendar-wrapper {
    background: #fff;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.no-bg {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important; /* Reset transform for better alignment */
    width: 60% !important; /* Give more space to the calendar */
}

/* Adjust map section when next to calendar */
.srv-mid-content .map-section {
    width: 40% !important;
    transform: none !important;
}

.modern-calendar {
    margin-bottom: 40px;
}

.calendar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status.available { background: var(--clr-villa-sage); }
.status.booked { background: #ff7675; }

.btn-book {
    display: inline-block;
    padding: 15px 40px;
    background: var(--clr-villa-dark);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: var(--clr-villa-amber);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(229, 149, 53, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .villa-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .villa-image-sec {
        order: 2;
    }
    .villa-text-sec {
        order: 1;
        text-align: center;
    }
    .content-sec {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    .calendar-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Inquiry Modal Styles - Premium Redesign */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7); /* Darker, more premium overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--clr-villa-bg); 
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 50px; /* More rounded luxury feel */
    position: relative;
    overflow-y: auto;
    transform: scale(0.9) translateY(40px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 120px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.8);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: var(--clr-villa-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    z-index: 100;
}

.modal-close:hover {
    background: var(--clr-villa-amber);
    transform: rotate(180deg);
}

.modal-content {
    padding: 30px 40px 60px 40px;
}

.modal-header {
    text-align: center;
    margin-bottom: 60px;
}

.modal-title {
    font-family: 'Riesling', cursive;
    font-size: 4rem;
    color: var(--clr-villa-dark);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.modal-subtitle {
    font-family: 'Poppins', sans-serif;
    color: #777;
    font-size: 1.1rem;
    margin: 0 auto;
    font-weight: 300;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.modern-form .form-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 35px;
    border: 1px solid #f1f1e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    width: 100%;
    box-sizing: border-box;
}

.group-title {
    font-family: 'PlayfairDisplay', serif;
    font-size: 1.5rem;
    color: var(--clr-villa-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--clr-villa-sage);
    padding-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.group-title i {
    color: var(--clr-villa-amber);
    font-size: 1.2rem;
}

.input-row {
    position: relative;
    width: 100%;
}

.input-row.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Prominent Input Styling */
.ip_parent {
    position: relative;
    background: #fff;
    border: 1.5px solid #eee;
    padding: 30px 20px 12px 20px; /* More padding for a solid look */
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 65px;
    width: 100%;
    display: block;
}

.ip_parent:hover {
    border-color: var(--clr-villa-sage);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.ip_parent:focus-within {
    border-color: var(--clr-villa-amber);
    box-shadow: 0 10px 25px rgba(229, 149, 53, 0.1);
}

.modal-ip-parent {
    opacity: 0;
    transform: translateY(20px);
}

.modal-overlay.active .modal-ip-parent {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: calc(0.08s * var(--i)); /* Sequential effect */
}

.input_f {
    width: 100%;
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--clr-villa-dark);
    outline: none;
    font-weight: 500;
}

.ip_name {
    position: absolute;
    top: 22px;
    left: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.input_f:focus ~ .ip_name,
.input_f:not(:placeholder-shown) ~ .ip_name {
    top: 8px;
    font-size: 0.7rem;
    color: var(--clr-villa-amber);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.select_f {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A3A3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.wrnn-txt {
    color: #ff7675;
    font-size: 0.7rem;
    position: absolute;
    bottom: -18px;
    left: 10px;
}

.ip_parent.fail {
    border-color: #ff7675;
}

.form-footer {
    margin: 60px auto 0 auto;
    text-align: center;
    width: 80%;
    box-sizing: border-box;
}

.btn-submit {
    background: linear-gradient(135deg, var(--clr-villa-dark) 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    padding: 22px 60px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 60px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-submit:hover {
    background: var(--clr-villa-amber);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 50px rgba(229, 149, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(-2px);
}

.btn-submit i {
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.btn-submit:hover i {
    transform: translateX(8px) rotate(-15deg);
}

/* Success Message Area - Premium */
.success-message {
    text-align: center;
    padding: 60px 0;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 6rem;
    color: var(--clr-villa-amber);
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(229, 149, 53, 0.2));
}

.success-message h2 {
    font-family: 'Riesling', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Responsive Modal */
@media (max-width: 1150px) {
    .form-grid {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .form-grid, .form-footer {
        width: 100%;
    }
    .form-grid {
        gap: 30px;
    }
    .modal-content {
        padding: 40px;
    }
    .modal-title {
        font-size: 3rem;
    }
    .modal-container {
        width: 90%;
        border-radius: 40px;
    }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 40px 20px;
    }
    .modal-header {
        margin-bottom: 40px;
    }
    .modal-title {
        font-size: 2.5rem;
    }
    .input-row.grid-2 {
        grid-template-columns: 1fr;
    }
    .form-section {
        padding: 25px 20px;
    }
    .modal-close {
        margin-left: 85%;
        top: 20px;
    }
}



form#villa-inquiry-form {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: var(--clr-villa-dark);
    padding: 18px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--clr-villa-amber);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { border-left-color: #2ecc71; }
.toast.info { border-left-color: #3498db; }
.toast.error { border-left-color: #e74c3c; }

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon { color: #2ecc71; }
.toast.info .toast-icon { color: #3498db; }
.toast.error .toast-icon { color: #e74c3c; }
.toast.warning .toast-icon { color: var(--clr-villa-amber); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.toast-close:hover {
    opacity: 1;
}

/* Form Helper Classes */
.ip_parent.success-val {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.02);
}

.ip_parent.checking {
    border-color: var(--clr-villa-sage);
}

.ip_parent.checking::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--clr-villa-sage);
    border-top-color: var(--clr-villa-amber);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Summary Modal Specifics */
.summary-container {
    max-width: 600px;
}

.summary-details {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #f1f1e6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.sm-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sm-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--clr-villa-dark);
    text-align: right;
}

.summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--clr-villa-sage);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-family: 'PlayfairDisplay', serif;
    font-size: 1.4rem;
    color: var(--clr-villa-dark);
}

.total-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-villa-amber);
}

.summary-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-edit {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-edit:hover {
    color: var(--clr-villa-dark);
}

/* Modal Z-index adjustment to stack modals if needed */
.summary-overlay {
    z-index: 10001;
}