/* Property Dropdown Styles */
.has-submenu {
    position: relative;
}

.has-submenu > a.property-link {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.has-submenu > a.property-link:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.has-submenu:hover > a.property-link:after {
    transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px;
    margin-top: 10px;
}

.sub-menu:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.sub-menu form {
    margin: 0;
}

.select-wrap {
    position: relative;
    margin-bottom: 15px;
}

.select-wrap .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.form-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #2A408A;
    border-color: #2A408A;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1f2f63;
    border-color: #1f2f63;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .sub-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 15px;
        background: #f8f9fa;
        transform: none;
        margin-top: 0;
    }

    .sub-menu:before {
        display: none;
    }

    .th-mobile-menu .sub-menu {
        display: none;
    }

    .th-mobile-menu .menu-item-has-children.active .sub-menu {
        display: block;
    }

    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .has-submenu > a.property-link:after {
        display: none;
    }
}

/* Nice Select Customization */
.nice-select {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.nice-select:after {
    right: 10px;
}

.nice-select .list {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nice-select .option {
    padding: 8px 12px;
}

.nice-select .option:hover,
.nice-select .option.selected {
    background-color: #f8f9fa;
}

/* Loading State */
.form-select:disabled,
.nice-select.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile Menu Styles */
.th-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.th-menu-wrapper.th-body-visible {
    right: 0;
}

.th-menu-area {
    height: 100%;
    padding: 20px;
}

.th-menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10000;
}

.th-menu-toggle i {
    font-size: 24px;
    color: #333;
}

.mobile-logo {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0;
}

.mobile-logo img {
    max-width: 200px;
    height: auto;
}

.th-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-mobile-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.th-mobile-menu li:last-child {
    border-bottom: none;
}

.th-mobile-menu a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.th-mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 30px;
}

.th-mobile-menu .menu-item-has-children > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.th-mobile-menu .menu-item-has-children.active > a:after {
    transform: translateY(-50%) rotate(180deg);
}

.th-mobile-menu .sub-menu {
    display: none;
    padding: 15px;
    background: #f8f9fa;
    margin: 0 -20px;
}

.th-mobile-menu .menu-item-has-children.active .sub-menu {
    display: block;
}

/* Desktop Menu Styles */
.main-menu {
    margin: 0;
    padding: 0;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-menu li {
    position: relative;
    margin: 0 15px;
}

.main-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #2A408A;
}

.menu-item-has-children > a {
    padding-right: 20px;
}

.menu-item-has-children > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a:after {
    transform: translateY(-50%) rotate(180deg);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.select-wrap {
    position: relative;
}

.select-wrap .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.form-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #2A408A;
    border-color: #2A408A;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1f2f63;
    border-color: #1f2f63;
}

/* Nice Select Customization */
.nice-select {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    height: auto;
    line-height: normal;
    padding: 10px 12px;
}

.nice-select:after {
    right: 10px;
    border-color: #666;
}

.nice-select .list {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nice-select .option {
    padding: 10px 12px;
    min-height: auto;
}

.nice-select .option:hover,
.nice-select .option.selected {
    background-color: #f8f9fa;
}

/* Loading State */
.form-select:disabled,
.nice-select.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile Menu Toggle Icon */
.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle-icon span:nth-child(1) {
    top: 0;
}

.menu-toggle-icon span:nth-child(2) {
    top: 8px;
}

.menu-toggle-icon span:nth-child(3) {
    top: 16px;
}

/* Header Styles */
.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.header-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-links li {
    margin-right: 20px;
}

.header-links li:last-child {
    margin-right: 0;
}

.header-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: #2A408A;
}

.th-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.th-social a:last-child {
    margin-right: 0;
}

.th-social a:hover {
    background: #2A408A;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .sub-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 15px;
        background: #f8f9fa;
        transform: none;
        margin-top: 0;
    }

    .sub-menu:before {
        display: none;
    }

    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .menu-item-has-children > a:after {
        display: none;
    }

    .header-links {
        text-align: center;
    }

    .header-links ul {
        justify-content: center;
    }

    .th-social {
        text-align: center;
        margin-top: 10px;
    }
} 