/* ========================================
   PERFIL AGENCIA STYLES
   Estilos para la página de perfil de agencia
   ======================================== */

/* Page Container */
.perfil-agencia-page {
    background-color: #02081C;
    min-height: 100vh;
    color: white;
    padding-bottom: 40px;
}

.perfil-agencia-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Breadcrumb */
.perfil-agencia-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb-link:hover {
    opacity: 0.7;
}

.breadcrumb-separator {
    color: white;
}

.breadcrumb-current {
    color: white;
}

/* Content Layout */
.perfil-agencia-content {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

/* Sidebar */
.perfil-agencia-sidebar {
    width: 344px;
    flex-shrink: 0;
}

/* Agency Header Card */
.agencia-header-card {
    position: relative;
    margin-bottom: 70px; /* Espacio para el logo que sobresale */
    background: white;
    border-radius: 4px;
    overflow: visible; /* Permitir que el logo sobresalga */
    height: 141px;
}

.agencia-banner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Contener la imagen del banner */
    border-radius: 4px;
}

.agencia-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agencia-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 25.077px;
}

.agencia-logo {
    position: absolute;
    left: 50%;
    top: 90px;
    transform: translateX(-50%);
    width: 102px;
    height: 102px;
    border-radius: 100px;
    background: #f7f7f7;
    box-shadow: 2px -2px 4px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agencia-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agencia-logo-placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13.387px;
    color: black;
    text-align: center;
}

/* Filters Container */
.perfil-agencia-filters-container {
    background: #030D2B;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 16px;
}

.perfil-agencia-filters-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.perfil-agencia-filters-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    margin: 0;
}

.filter-divider {
    border: none;
    border-top: 0.5px solid rgba(255, 255, 255, 0.25);
    margin: 0;
}

/* Filter Form */
.perfil-agencia-filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perfil-agencia-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.perfil-agencia-filter-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: white;
}

.perfil-agencia-select-wrapper {
    position: relative;
}

.perfil-agencia-filter-select,
.perfil-agencia-filter-select-small {
    width: 100%;
    background: #02081C;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5L11 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 6px;
}

.perfil-agencia-filter-select:focus,
.perfil-agencia-filter-select-small:focus {
    outline: none;
    border-color: white;
}

/* Price Range */
.perfil-agencia-price-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-input-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: white;
}

.perfil-agencia-price-field {
    background: #02081C;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.perfil-agencia-price-field:focus {
    outline: none;
    border-color: white;
    color: white;
}

.price-separator {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: white;
    padding-top: 14px;
}

/* Dropdowns */
.perfil-agencia-dropdown {
    background: #02081C;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.perfil-agencia-dropdown summary {
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: white;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perfil-agencia-dropdown summary::-webkit-details-marker {
    display: none;
}

.perfil-agencia-dropdown summary::after {
    content: '';
    width: 12px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5L11 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.perfil-agencia-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.dropdown-content {
    padding: 12px 16px 16px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.25);
}

/* Main Content */
.perfil-agencia-main {
    flex: 1;
    min-width: 0;
}

.perfil-agencia-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: white;
    margin: 0 0 24px 0;
}

/* Sort Header */
.perfil-agencia-sort-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.perfil-agencia-sort-wrapper {
    position: relative;
}

.perfil-agencia-sort-select {
    background: transparent;
    border: none;
    padding: 10px 28px 10px 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
}

.perfil-agencia-sort-select:focus {
    outline: none;
}

/* Cars Grid */
.perfil-agencia-cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
    margin-bottom: 32px;
}

/* Car Card */
.perfil-agencia-auto-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.perfil-agencia-auto-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.perfil-agencia-auto-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
}

.perfil-agencia-auto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destacado-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    padding: 8px 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: white;
}

.perfil-agencia-auto-card-info {
    padding: 8px 0;
}

.perfil-agencia-auto-card-row-top {
    margin-bottom: 8px;
}

.perfil-agencia-auto-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perfil-agencia-auto-card-row-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.perfil-agencia-auto-card-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: white;
}

.perfil-agencia-auto-card-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.perfil-agencia-auto-card-km {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: white;
}

.perfil-agencia-auto-card-cuota {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: white;
    text-align: right;
}

/* Favorite Button */
.perfil-agencia-favorite-btn {
    position: absolute;
    top: 278px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.perfil-agencia-favorite-btn img {
    width: 20px;
    height: 20px;
}

/* Contact Button */
.perfil-agencia-contact-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #06174D;
    cursor: pointer;
    transition: opacity 0.2s;
}

.perfil-agencia-contact-btn:hover {
    opacity: 0.9;
}

/* Pagination */
.perfil-agencia-pagination {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.75);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-arrow:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-arrow-icon {
    width: 16px;
    height: 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.pagination-arrow-icon.left {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='8' viewBox='0 0 16 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1L1 4L8 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pagination-arrow-icon.right {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='8' viewBox='0 0 16 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1L15 4L8 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 2px;
    border-radius: 44px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-number:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-number.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.pagination-ellipsis {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 0 4px;
}

/* Clickeable seller card */
.producto-seller-card-clickable {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.producto-seller-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

/* Eliminar subrayado de todos los textos dentro del link */
.producto-seller-card-clickable * {
    text-decoration: none !important;
}

.producto-seller-card-clickable .seller-card-title,
.producto-seller-card-clickable .seller-business-name,
.producto-seller-card-clickable .seller-info-row span {
    text-decoration: none !important;
}

.producto-seller-card-clickable .seller-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
