/* Mobile Hamburger Button Design */
#mobileMenuBtn {
    background: white !important;
    border: 2px solid #ec4899 !important;
    color: #ec4899 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2) !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

#mobileMenuBtn:hover {
    background: linear-gradient(135deg, #ec4899, #9333ea) !important;
    color: white !important;
    border-color: #9333ea !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4) !important;
}

#mobileMenuBtn i {
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

/* Hide button on desktop (>= 768px) */
@media (min-width: 768px) {
    #mobileMenuBtn {
        display: none !important;
    }
}

/* Long titles (emoji strings) have huge min-content width; without min-width:0 flex columns can grow past col-* and break the grid */
.all-posts-grid > [class*="col-"] {
    min-width: 0;
}

.all-posts-grid a.escort-card-link {
    min-width: 0;
    max-width: 100%;
}

.all-posts-grid .escort-card {
    min-width: 0;
    max-width: 100%;
}

.all-posts-grid .escort-card-name,
.all-posts-grid .escort-card-name span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .all-posts-grid .set-width-mobile {
        margin-left: auto;
        margin-right: auto;
    }
}

.escort-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.escort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.escort-card-image {
    position: relative;
    height: 375px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    background: linear-gradient(to bottom right, #fce7f3, #f3e8ff);
}

.escort-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.escort-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.escort-card:hover .escort-card-overlay {
    opacity: 1;
}

.escort-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge-verified {
    background: rgba(255, 255, 255, 0.95);
    color: #6b7280;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.escort-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.escort-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

a.escort-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

a.escort-card-link:hover .escort-card-name {
    color: #ec4899;
}

.escort-card-location {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.escort-card-location i {
    color: #ec4899;
}

@media (max-width: 425px) {
    a.escort-card-link {
        width: 72% !important;
        min-width: unset !important;
        max-width: unset !important;
    }

    .escort-card {
        width: 100% !important;
    }

    .escort-card-image {
        height: 375px;
    }

    .escort-card-content {
        height: auto;
        padding: 1rem;
    }
}

@media (max-width: 395px) {
    a.escort-card-link {
        width: 82% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}

@media (max-width: 375px) {
    a.escort-card-link {
        width: 85% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}

@media (max-width: 335px) {
    a.escort-card-link {
        width: 92% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f3e8ff 100%);
    padding: 3rem 0;
}

.page-hero h1 {
    background: linear-gradient(135deg, #ec4899, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pagination Styling */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 0.5rem;
    border: none;
    padding: 0.5rem 1rem;
    color: #6b7280;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #ec4899, #9333ea);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ec4899, #9333ea);
    color: white;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-bottom: 3px solid #ec4899;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Results count */
.results-count {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 350px) and (max-width: 575px) {
    .set-width-mobile {
        width: 90% !important;
    }
}

@media (min-width: 426px) and (max-width: 470px) {
    .set-width-mobile {
        width: 70% !important;
    }
}

@media (min-width: 471px) and (max-width: 568px) {
    .set-width-mobile {
        width: 54% !important;
    }
}

@media (min-width: 569px) and (max-width: 575px) {
    .set-width-mobile {
        width: 50% !important;
    }
}

@media (min-width: 1072px) and (max-width: 1199px) {
    .escort-card {
        width: 80%;
        margin: 0 auto;
    }
}

@media (min-width: 992px) and (max-width: 1073px) {
    .escort-card {
        width: 88%;
        margin: 0 auto;
    }
}

@media (min-width: 900px) and (max-width: 991px) {
    .escort-card {
        width: 63%;
        margin: 0 auto;
    }
}

@media (min-width: 811px) and (max-width: 899px) {
    .escort-card {
        width: 70%;
        margin: 0 auto;
    }
}

@media (min-width: 752px) and (max-width: 810px) {
    .escort-card {
        width: 77%;
        margin: 0 auto;
    }
}

@media (min-width: 682px) and (max-width: 751px) {
    .escort-card {
        width: 84%;
        margin: 0 auto;
    }
}

@media (min-width: 627px) and (max-width: 681px) {
    .escort-card {
        width: 84%;
        margin: 0 auto;
    }
}

@media (min-width: 576px) and (max-width: 626px) {
    .escort-card {
        width: 100%;
        margin: 0 auto;
    }
}

/* Final mobile alignment override for all-posts cards */
@media (max-width: 575.98px) {
    .all-posts-grid {
        justify-content: center;
    }

    .all-posts-grid .set-width-mobile {
        width: 100% !important;
        max-width: 360px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .all-posts-grid a.escort-card-link {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
