/**
 * Release Date: 2024-11-27 12:45
 */

/* 

#gratuity-form {
    max-width: 24rem;
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

#gratuity-form .form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 10px;
}

#gratuity-form .form-container .full-width {
    grid-column: span 2;
}

#gratuity-form .result {
    display: none;
    padding-top: 1rem;
}

#gratuity-form .result span {
    display: block;
    text-align: center;
    font-size: large;
}

#gratuity-form .result span:nth-child(2) {
    font-weight: 600;
    margin-top: .5rem;
    margin-bottom: .5rem;
    font-size: x-large;
}

#gratuity-form .result span:nth-child(3) {
    font-size: small;
}

#gratuity-form .result .notice {
    font-size: smaller;
    color: red;
    margin-top: 1rem;
}

#gratuity-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

#gratuity-form input[type="text"],
#gratuity-form input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#gratuity-form button {
    width: 100%;
    padding: 15px 20px;
    background-color: #0366d6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#gratuity-form button:hover {
    background-color: #004694;
}

#gratuity-form .fade-loop {
    animation: fade 1s infinite alternate;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

@media only screen and (max-width: 480px) {
    #gratuity-form .form-container {
        grid-row-gap: 5px;
    }

    #gratuity-form .form-container>div {
        grid-column: span 2;
    }
} */

.uae-tool .tab-navigation {
    width: 100%;
    margin: 0 auto;
}

.uae-tool .tab-content {
    margin-top: 20px;
}

.uae-tool .content {
    display: none;
}

.uae-tool .content.active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
}

.uae-tool .content>div {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    box-sizing: border-box;
}

/* Desktop Tabs */
.uae-tool .tabs-desktop {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 20px;
}

.uae-tool .tab-button {
    padding: 10px;
    background: transparent;
    color: #676767;
    border-color: #007bff;
    border-radius: 5px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.uae-tool .tab-button:hover,
.uae-tool .tab-button.active {
    background: #007bff;
    color: white;
}

/* Mobile Hamburger Menu */
.uae-tool .tabs-mobile {
    display: none;
    position: relative;
}

.uae-tool .hamburger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background: #f8f8f8;
}

.uae-tool .hamburger:hover {
    background: #007bff;
    color: white;
}

.uae-tool .hamburger-icon {
    font-size: 24px;
}

.uae-tool .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
}

.uae-tool .mobile-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    transition: background 0.3s;
}

.uae-tool .mobile-menu button:hover {
    background: #f0f0f0;
}

.uae-tool label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.uae-tool input,
.uae-tool select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.uae-tool .unit-input {
    display: flex;
    align-items: center;
    position: relative;
    width: 300px;
}

.uae-tool .unit-input input {
    width: calc(100% - 120px);
    /* Adjust width considering select width */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.uae-tool .unit-input select {
    width: 120px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
    background: #f9f9f9;
    outline: none;
    cursor: pointer;
}

.uae-tool .unit-input select:focus {
    border-color: #007bff;
}

.uae-tool option {
    white-space: nowrap;
    /* Tidak memungkinkan teks membungkus */
    overflow: hidden;
    /* Potong teks jika lebih panjang dari kotak */
    text-overflow: ellipsis;
    /* Tambahkan "..." di akhir teks panjang */
}

/* Jika ingin opsi wrapping dalam menu drop-down */
.uae-tool select option {
    white-space: normal;
    /* Izinkan teks membungkus */
}

.uae-tool #location {
    position: relative;
    min-height: 27rem;
}

.uae-tool #location.active {
    display: block;
}

.uae-tool .popup {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    margin-top: 1rem;
}

.uae-tool .popup>div {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    box-sizing: border-box;
}

.uae-tool #calculate-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #0366d6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    max-width: 14rem;
    margin: 1rem auto;
    display: block;
}

.uae-tool #uae-map {
    width: 100%;
    height: 500px;
}

.uae-tool .popup.hidden {
    display: none;
}

.uae-tool .popup.visible {
    z-index: 9999;
    display: flex;
    /* background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); */
}

.uae-tool #calculate-btn:hover {
    background-color: #004694;
}

.uae-tool .fade-loop {
    animation: fade 1s infinite alternate;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

/* Bagian Results */

.uae-tool>.result {
    display: none;
}


.uae-tool>.result .container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.uae-tool>.result h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.uae-tool>.result .info-section {
    margin-bottom: 20px;
    display: flex;
    /* flex-wrap: wrap; */
    gap: 0px 20px;
    justify-content: space-between;
}

.uae-tool .error {
    color: red;
}

.uae-tool p.converter {
    display: none;
}

.uae-tool>.result .column {
    min-width: 250px;
    box-sizing: border-box;
}

.uae-tool>.result h2 {
    font-size: 1.5em;
    color: #555;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.uae-tool>.result .info-item {
    display: flex;
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    box-sizing: border-box;
    column-gap: 10px;
    margin-bottom: 7px;
    border: 1px solid #eee;
    border-radius: 5px;
    align-items: stretch;
}

.uae-tool>.result .info-item strong {
    color: #444;
    flex: 1 0 30%;
    background: #f9f9f9;
    padding: 10px;
    align-items: center;
    display: flex;
    min-width: 100px;
    max-width: 130px;
}

.uae-tool>.result .info-item span {
    align-items: center;
    display: flex;
}

.uae-tool>.result .info-item svg {
    margin-left: 10px;
    width: 10px;
}

.uae-tool>.result .info-item svg path {
    fill: green;
}

.uae-tool>.result .result {
    padding: 20px;
    background: #e9f7ff;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    margin-bottom: 20px;
}

.uae-tool>.result .result.value {
    background: #d8ffd0;
    border-left: 5px solid #22ca00;
}

.uae-tool>.result .facility {
    margin-bottom: 1rem;
}

.uae-tool>.result .result p {
    margin: 0;
    color: #333;
}

.uae-tool>.result .addendum {
    margin-top: 20px;
}

.uae-tool>.result .addendum h2 {
    font-size: 1.2em;
    color: #555;
}

.uae-tool>.result .addendum-item {
    margin-bottom: 10px;
}

.uae-tool>.result .addendum-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.uae-tool>.result .addendum-item a:hover {
    text-decoration: underline;
}

.uae-tool>.result .note {
    padding: 15px;
    background: #fff3cd;
    border-left: 5px solid #ffeeba;
    border-radius: 5px;
    margin-top: 20px;
    color: #856404;
}

.com_mall_sub_type,
.com_retSubType {
    display: none;
}

.popup .map-prop-type,
.popup .bedrooms2,
.popup .retail-type,
.popup .mall-type {
    display: none;
}

.uae-tool select option[value=""] {
    color: red;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .uae-tool .tabs-desktop {
        display: none;
    }

    .uae-tool .tabs-mobile {
        display: block;
    }

    .uae-tool .content.active {
        padding: unset;
    }

    .uae-tool #uae-map {
        height: 300px;
    }

    .uae-tool>.result .info-section {
        display: block;
    }
}