.container-content {
    margin-top: 1%;
    display: flex;
    flex-direction: row;
    height: calc(100% - 6rem);
}
#map {
    height: 100%;
    width: 75%;
    margin-left: 1%;
    z-index: 1;
}

/* Main Container Styling */
.container-search {
    width: 23%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f9fafc;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    margin-left: 1.5%;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.sticky-button {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

/* Tabs Styling */
.tab-container {
    width: 100%;
    margin: 1.5rem 0;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #eaecf0;
}

.tab-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    margin-right: 8px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.tab-button:hover {
    color: #334155;
}

.tab-button.active {
    color: #AF322D;
}

.tab-button.active::after {
    background-color: #AF322D;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* List Containers */
#ape-list, #dep-list, #ccn-list {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    min-height: 3rem;
    max-height: 12rem;
    overflow-y: auto;
    margin-bottom: 1.2rem;
    border: 1px solid #eaecf0;
}

/* List item containers (direct children of the list containers) */
#ape-list > div, #dep-list > div, #ccn-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

#ape-list > div:last-child, #dep-list > div:last-child, #ccn-list > div:last-child {
    margin-bottom: 0;
}

/* Text inside the list items */
.text-res {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 30px);
    margin: 0;
    font-size: 14px;
    color: #334155;
}

/* Delete buttons in list items */
#ape-list button, #dep-list button, #ccn-list button {
    background-color: #f1f5f9;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: 8px;
    font-weight: bold;
}

#ape-list button:hover, #dep-list button:hover, #ccn-list button:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}
/* Search Inputs */
#autoComplete-ape, #autoComplete-dep, #autoComplete-ccn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 1rem;
    transition: all 0.3s;
    background-color: white;
}

#autoComplete-ape:focus, #autoComplete-dep:focus, #autoComplete-ccn:focus {
    outline: none;
    border-color: #AF322D;
    box-shadow: 0 0 0 3px rgba(175, 50, 45, 0.1);
}

/* Section Headings */
h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

/* Tooltip styling */
.tooltip button {
    background-color: #e2e8f0;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #64748b;
    margin-left: 8px;
    cursor: pointer;
}

/* Selected items styling */
.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.selected-item button {
    background-color: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
}

/* Results text */
.resulat-big {
    color: #334155;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 1rem;
}

/* Tutorial button */
.btn-toggle-modal-tutorial {
    position: fixed;
    right: 2%;
    bottom: 1.5rem;
    z-index: 900;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-modal-tutorial::before {
    content: '▶';
    font-size: 12px;
}
