/* ==========================================================================
   LOJAS E SERVIÇOS STYLING - PANORÂMICO POWER CENTER
   ========================================================================== */

/* ---------------- HERO SECTION ---------------- */
.establishment-hero-section {
    padding-top: 1.5rem;
}

.establishment-hero-badge {
    background: rgba(255, 111, 0, 0.12);
    border: 1px solid rgba(255, 111, 0, 0.3);
    color: #FF6F00;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.785rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.establishment-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.establishment-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    opacity: 0.88;
}

html[data-theme="light"] .establishment-hero-subtitle {
    color: #374151 !important;
}

/* ---------------- CONTROLES: ABAS E BUSCA ---------------- */
.establishment-controls-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 111, 0, 0.2);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .establishment-controls-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.establishment-tabs-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem;
    border-radius: 12px;
    gap: 0.25rem;
}

html[data-theme="light"] .establishment-tabs-group {
    background: #f1f3f5;
}

.establishment-tab-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 0.45rem 1.15rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.establishment-tab-btn:hover {
    color: #FF6F00;
}

.establishment-tab-btn.active {
    background: #FF6F00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

html[data-theme="light"] .establishment-tab-btn {
    color: #64748b;
}

html[data-theme="light"] .establishment-tab-btn.active {
    background: #FF6F00;
    color: #ffffff;
}

.establishment-search-wrap {
    position: relative;
    width: 100%;
}

.establishment-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.establishment-search-wrap:focus-within .establishment-search-icon {
    color: #FF6F00;
}

.establishment-search-input {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 0.55rem 3.5rem 0.55rem 2.4rem !important;
    font-size: 0.9rem !important;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
}

.establishment-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.establishment-search-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #FF6F00 !important;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.25) !important;
    outline: none;
}

html[data-theme="light"] .establishment-search-input {
    background: #f8f9fa !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

html[data-theme="light"] .establishment-search-input::placeholder {
    color: #9ca3af;
}

html[data-theme="light"] .establishment-search-input:focus {
    background: #ffffff !important;
    border-color: #FF6F00 !important;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.18) !important;
}

html[data-theme="light"] .establishment-search-icon {
    color: #9ca3af;
}

/* ---------------- CARD DE ESTABELECIMENTO ---------------- */
.establishment-card {
    background: rgba(22, 22, 22, 0.88);
    border: 1px solid rgba(255, 111, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.establishment-card:hover {
    transform: translateY(-6px);
    border-color: #FF6F00;
    box-shadow: 0 16px 40px rgba(255, 111, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .establishment-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .establishment-card:hover {
    transform: translateY(-6px);
    border-color: #FF6F00;
    box-shadow: 0 16px 36px rgba(255, 111, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------------- IMAGEM DO ESTABELECIMENTO ---------------- */
.establishment-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #121212;
}

.establishment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.establishment-card:hover .establishment-img {
    transform: scale(1.08);
}

.establishment-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.establishment-type-badge.type-store {
    background: #FF6F00;
    color: #ffffff;
}

.establishment-type-badge.type-service {
    background: #0284c7;
    color: #ffffff;
}

/* ---------------- CORPO DO CARD ---------------- */
.establishment-card-body {
    padding: 1.35rem 1.4rem 1.6rem;
}

.establishment-card-title {
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.establishment-card-desc {
    color: #f1f5f9 !important;
    font-size: 0.9rem;
    line-height: 1.55;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="light"] .establishment-card-desc {
    color: #475569 !important;
}

/* ---------------- ESTADO VAZIO ---------------- */
.establishment-empty-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 111, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
}

.establishment-empty-desc {
    color: #f1f5f9 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

html[data-theme="light"] .establishment-empty-desc {
    color: #374151 !important;
}

html[data-theme="light"] .establishment-empty-box {
    background: #ffffff;
    border-color: rgba(255, 111, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
