/* Language Dropdown - Til tanlash dropdown */

/* Header row - pastga tushmaslik uchun */
@media (min-width: 992px) {
    .header .row {
        flex-wrap: nowrap;
    }
}

.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    vertical-align: top;
    flex-shrink: 0;
}

.lang-dropdown-btn {
    background: #F5F5F5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 65px;
    white-space: nowrap;
    height: auto;
}

.lang-dropdown-btn:hover {
    background: #E7BC91;
    color: white;
    border-color: #E7BC91;
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 9px;
    transition: transform 0.3s;
}

.lang-dropdown-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 100px;
    display: none;
    z-index: 1000;
}

.lang-dropdown-menu.open {
    display: block;
}

.lang-option {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: left;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background: #f8f8f8;
}

/* Header CTA button va dropdown container */
@media (min-width: 992px) {
    .header .col-lg-auto {
        display: flex;
        align-items: center;
        gap: 0;
        flex-wrap: nowrap;
        width: auto !important;
        flex: 0 0 auto;
    }
}

.header .cta.full {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    display: inline-block;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .language-dropdown {
        margin-top: 10px;
        margin-left: 0;
        display: block;
        text-align: center;
    }
    
    .lang-dropdown-btn {
        margin: 0 auto;
    }
}

/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.booking-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 40px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: color 0.3s;
}

.booking-modal-close:hover {
    color: #E7BC91;
}

.booking-modal h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #E7BC91;
}

/* Modal form inputs - barcha inputlar bir xil o'lchamda */
.booking-modal .input_row input[type="text"],
.booking-modal .input_row input[type="tel"],
.booking-modal .input_row input[type="number"],
.booking-modal .input_row textarea {
    width: 100%;
}

.booking-modal .input_row input[type="number"] {
    -moz-appearance: textfield;
}

.booking-modal .input_row input[type="number"]::-webkit-outer-spin-button,
.booking-modal .input_row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mexmonlar soni input - custom +/- tugmalar bilan */
.guests-input-wrapper {
    position: relative;
}

.guests-input-wrapper label {
    position: relative;
    display: block;
}

.guests-input-wrapper input[type="number"] {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 24px 50px 8px 50px !important;
    line-height: 18px;
    width: 100% !important;
    box-shadow: 0 0 5px 2px rgba(0,0,0,.03);
    border-radius: 4px;
    border: solid 1px #C6C6C6;
    background: #FFF;
}

.guest-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #000;;
    background: white;
    color: #000;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.guest-btn:hover {
    background: #E7BC91;
    color: white;
    border-color: #E7BC91;
}

/* Header formadagi mehmonlar soni tugmalari */
.bnovo__field-guests {
    position: relative;
}

.bnovo__field-guests .bnovo__input {
    text-align: center;
    padding-left: 15px !important;
    padding-right: 30px !important;
}

.guest-btn-header {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s;
    z-index: 10;
}

.guest-btn-header i {
    font-size: 16px;
    color: #000;
}

.guest-btn-header:hover {
    background: transparent;
    color: #E7BC91;
}

.guest-btn-header:hover i {
    color: #E7BC91;
}

.guest-btn-header:active {
    transform: translateY(-50%) scale(0.95);
}

.guest-minus-header {
    left: 12px;
}

.guest-plus-header {
    right: 12px;
}

.guest-plus-header i {
    font-size: 16px;
}

.guests-icon-header {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 75px;
    pointer-events: none;
    z-index: 5;
    color: #666;
}

.guests-icon-header i {
    font-size: 16px;
}

.guest-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.guest-minus {
    left: 10px;
}

.guest-plus {
    right: 10px;
}

.guests-input-wrapper span {
    display: none;
}

/* Header Form Blur Background */
.slider .caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
    padding-bottom: 1px;
}

.slider .caption .title {
    margin-bottom: 5px;
}

.slider .form {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1110px;
    margin: 0 auto;
}

.slider .form .row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider .form .bnovo__field {
    flex: 1;
    min-width: 0;
    position: relative;
}

.slider .form .bnovo__input {
    width: 100%;
    height: 42px;
    padding: 0 95px 0 15px;
    border: 1px solid #BCBCBC;
    border-radius: 20px;
    background: rgba(255, 255, 255, 1);
    color: #000;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.slider .form .bnovo__input::placeholder {
    color: #666;
    opacity: 1;
}

.slider .form .bnovo__input:hover {
    border-color: #BCBCBC;
}

.slider .form .bnovo__input:focus {
    outline: none;
    border-color: #E7BC91;
}

.slider .form .bnovo__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 16px;
}

.slider .form .bnovo__button {
    width: 100%;
    height: 42px;
    background: #E7BC91;
    color: #fff;
    border: 1px solid #E7BC91;
    border-radius: 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10 75px;
}

.slider .form .bnovo__button:hover {
    background: #262721;
    border-color: #262721;
}

@media (max-width: 768px) {
    .booking-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .slider .form {
        margin-top: 30px;
        padding: 40px 50px;
    }
    
    .slider .form .row {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .slider .form .bnovo__field {
        width: 100%;
    }
    
    .slider .form .bnovo__input,
    .slider .form .bnovo__button {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }
}

/* Footer Logo Size */
.footer .logo img {
    width: 95px;
    height: auto;
    margin-bottom: 10px;
}

/* Slider background image visibility fix */
.slider:before {
    opacity: 0.2 !important;
    background: rgba(241, 231, 221, 0.4) !important;
}

.slider .picture {
    z-index: 0 !important;
    opacity: 1;
}

/* Logo watermark behind form - more visible */
.slider .caption:before {
    opacity: 0.25 !important;
}

/* Popup Modal Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 35px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
    font-weight: 300;
}

.popup-close:hover {
    color: #E7BC91;
    transform: rotate(90deg);
}

.popup-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: #E7BC91;
    text-align: center;
    line-height: 1.3;
}

.popup-subtitle {
    margin: 0 0 30px 0;
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

/* International Tel Input custom styles */
.popup-form .iti,
.input_row .iti {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* Force same height as name input */
.popup-form .iti__input,
.popup-form input[type="tel"],
.input_row .iti__input,
.input_row input[type="tel"] {
    width: 100% !important;
    min-height: 50px !important;
    max-height: 50px !important;
    height: 50px !important;
    padding: 15px 55px 15px 18px !important;
    border: 2px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 20px !important;
    margin: 0 !important;
}

.popup-form .iti__input:focus,
.popup-form input[type="tel"]:focus,
.input_row .iti__input:focus,
.input_row input[type="tel"]:focus {
    outline: none !important;
    border-color: #E7BC91 !important;
}

/* Move flag to RIGHT side */
.popup-form .iti__flag-container,
.input_row .iti__flag-container {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 10px !important;
    z-index: 5;
}

.popup-form .iti__selected-country,
.input_row .iti__selected-country {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0 !important;
    border: none;
}

/* Hide dial code from beside flag */
.popup-form .iti__selected-dial-code,
.input_row .iti__selected-dial-code {
    display: none !important;
}

.popup-form .iti__arrow,
.input_row .iti__arrow {
    margin-left: 6px;
    border: none;
}

.popup-form .iti__country-list,
.input_row .iti__country-list {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    font-size: 14px;
    margin-top: 5px;
    z-index: 99999;
}

.popup-form .iti__country,
.input_row .iti__country {
    padding: 8px 12px;
}

.popup-form .iti__country:hover,
.input_row .iti__country:hover {
    background: #f8f8f8;
}

.popup-form .floating-label {
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 12px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s;
    background: white;
    padding: 0 5px;
    transform: translateY(-50%);
    font-weight: 500;
    z-index: 10;
}

.popup-form input:not([type="tel"]) {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
    height: 50px; /* Match with phone input */
}

.popup-form input:not([type="tel"]):focus {
    outline: none;
    border-color: #E7BC91;
}

.popup-form input:not([type="tel"]):focus + .floating-label {
    color: #E7BC91;
}

.popup-form .iti__input:focus + .floating-label {
    color: #E7BC91;
}

/* Phone input error state */
.popup-form input.input-error,
.popup-form .iti__input.input-error,
.input_row .iti__input.input-error {
    border-color: #e74c3c;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s;
}

/* Fix for input_row (contact & modal forms) */
.input_row {
    position: relative;
}

.input_row .iti {
    position: relative;
}

.popup-submit {
    width: 100%;
    padding: 15px 20px;
    background: #E7BC91;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.popup-submit:hover {
    background: #101010;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 188, 145, 0.3);
}

.popup-submit:active {
    transform: translateY(0);
}

.popup-privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
    margin-top: 10px;
}

.popup-success {
    text-align: center;
    padding: 20px 0;
}

.popup-success i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.popup-success h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.popup-success p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-container {
        padding: 30px 25px;
        width: 95%;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-subtitle {
        font-size: 14px;
    }
    
    .popup-form input {
        padding: 13px 15px;
        font-size: 14px;
    }
    
    .popup-submit {
        padding: 13px 18px;
        font-size: 15px;
    }
}

/* Override intl-tel-input default styles - CRITICAL */
.iti--separate-dial-code .iti__input,
.iti--separate-dial-code input[type="tel"] {
    padding-left: 18px !important;
}

.iti input[type="tel"],
.iti input[type="text"] {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    line-height: 20px !important;
}

/* Fix floating label ONLY for phone input in contact/modal forms */
/* Label for phone input - default state */
.input_row label span[data-i18n-placeholder="form.phone"] {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    font-size: 14px;
    color: #999;
    z-index: 1;
}

/* Hide phone label when active */
.input_row label.active span[data-i18n-placeholder="form.phone"] {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

/* Also hide when phone input is focused */
.input_row label:has(input[type="tel"]:focus) span[data-i18n-placeholder="form.phone"] {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.input_row label {
    position: relative;
    display: block;
    width: 100%;
}

.input_row {
    position: relative;
    width: 100%;
}

/* Make sure intl-tel-input container has proper positioning */
.input_row .iti {
    position: relative !important;
    width: 100% !important;
}

/* Loading state for buttons */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Date picker styles */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: #E7BC91;
    border-color: #E7BC91;
}

.flatpickr-day.selected:hover {
    background: #E7BC91;
    border-color: #E7BC91;
}
