/* Office Selection Styles */
.simple-office-dropdown {
    padding: 8px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 28px rgb(0 0 0 / 14%);
}

.simple-office-option {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 8px;
    border: 0;
    border-bottom: 1px solid #f0ecec;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
}

.simple-office-option:last-child {
    border-bottom: 0;
}

.simple-office-option:is(:hover, :focus-visible) {
    background: #faf7f7;
}

.simple-office-option .simple-office-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #D4002A;
}

.simple-office-option .icon {
    color: #D4002A !important;
    font-size: 18px;
}

.office-list-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    top: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.office-list-wrapper[v-show="true"] {
    display: block;
}

.office-list {
    background-color: #fff;
    overflow: auto;
    max-height: 300px;
    height: auto;
}

.list-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.list-item:hover {
    background-color: #f8f9fa;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item.no-results {
    cursor: default;
    color: #6c757d;
    font-style: italic;
}

.list-item.no-results:hover {
    background-color: transparent;
}

.list-item.no-results .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.item-header span {
    flex: 1;
}

.item-header .icon {
    font-size: 16px;
    color: #666;
}

.item-body {
    display: none;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.list-item:hover .item-body {
    display: block;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.adress-detail {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.phone {
    margin-bottom: 8px;
}

.phone b {
    font-weight: 600;
    color: #333;
}

.phone span {
    color: #666;
    margin-left: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.mt-2 {
    margin-top: 8px;
}

.item-icon {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .office-list-wrapper {
        max-height: 250px;
    }
    
    .list-item {
        padding: 10px 12px;
    }
    
    .item-header {
        font-size: 14px;
    }
    
    .item-title {
        font-size: 15px;
    }
    
    .adress-detail {
        font-size: 13px;
    }
}

/* Form control wrapper styles */
.form-control-wrapper {
    position: relative;
}

.form-control-wrapper .form-group {
    position: relative;
}

.form-control-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-find-location {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-find-location:hover {
    background-color: #f0f0f0;
}

.btn-find-location .icon {
    font-size: 16px;
}

/* Scrollbar styles */
.office-list::-webkit-scrollbar {
    width: 6px;
}

.office-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.office-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.office-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for dropdown */
.office-list-wrapper {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon styles */
.icon {
    font-family: 'avis-icons' !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-city-secondary:before {
    content: "\e948";
    color: #fff !important;
}

.icon-airport:before {
    content: "\e923";
}

.icon-human-pin:before {
    content: "\e92c";
}

.icon-search:before {
    content: "\e949";
    color: #fff !important;
}

/* Loading state */
.office-list-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.office-list-wrapper.loading::after {
    content: "Yükleniyor...";
    color: #666;
    font-size: 14px;
}

/* Empty state */
.office-list:empty::after {
    content: "Ofis bulunamadı";
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* Selected office highlight */
.list-item.selected {
    background-color: #e3f2fd;
    border-left: 3px solid #007bff;
}

.list-item.selected .item-header span {
    color: #007bff;
    font-weight: 700;
}
