/* 
==============================================================
FIXYDO V9.9 - ARCHIVE & SEARCH RESULTS (TOUCH TARGETS FIXED)
UPDATED BY Fixydo Developer
- Fixed: Increased touch targets for location and title links.
==============================================================
*/

/* 
==============================================================
   0. BODY & LAYOUT BACKGROUND
============================================================== 
*/
body.archive,
body.search {
    background-color: #f9fafb;
}

/* --- Global Box Sizing Fix --- */
.fixydo-card-compact * {
    box-sizing: border-box;
}

/* 
==============================================================
   1. HERO SECTION ("AZAD" STYLE)
============================================================== 
*/
.archive-hero-section {
    background-color: #F0F4F8; /* Light Grey-Blue */
    padding: 40px 0 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0f2fe;
}

.archive-hero-header { text-align: left; margin-bottom: 25px; }
.archive-hero-header .page-title { font-size: 2.2rem; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; line-height: 1.2; letter-spacing: -0.5px; }

.seo-top-description { 
    font-size: 1.05rem; 
    color: #475569; 
    max-width: 100%; 
    line-height: 1.6; 
    margin-top: 5px; 
}

.fixydo-live-filter-container { background: transparent; padding: 0; border: none; box-shadow: none; margin-bottom: 0; position: static; z-index: 99; }
.filter-wrapper { width: 100%; }
#fixydo-live-search-form { display: flex; align-items: center; gap: 15px; width: 100%; }
.filter-row-inputs { display: flex; gap: 15px; }
.search-input-wrap { position: relative; flex: 1; min-width: 250px; }
.search-input-wrap .dashicons { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.search-input-wrap input { width: 100%; padding: 12px 12px 12px 45px; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; font-size: 15px; color: #374151; outline: none; height: 50px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s ease; }
.search-input-wrap input:focus { border-color: #003366; box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15); }
.fixydo-select { padding: 0 35px 0 15px; height: 50px; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; font-size: 14px; color: #374151; cursor: pointer; outline: none; min-width: 180px; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003366%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto; appearance: none; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s ease; }
.fixydo-select:focus { border-color: #003366; box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15); }
.view-switcher-group { display: flex; gap: 5px; margin-left: auto; padding-left: 15px; }
.view-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #9ca3af; transition: 0.2s; margin-top: 5px; }
.view-btn:hover { color: #003366; border-color: #003366; }
.view-btn.active { background: #F0F4F8; color: #003366; border-color: #003366; }
#mobile-filter-toggle { display: none; width: 100%; padding: 12px; background: #003366; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; align-items: center; justify-content: center; gap: 8px; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2); }
.filter-loader { margin-left: auto; padding-left: 10px; }
.filter-loader .spin { animation: spin 1s infinite linear; color: #003366; font-size: 24px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 
==============================================================
   2. LAYOUT WRAPPER
============================================================== 
*/
.fixydo-search-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    margin-top: 0;
}

.listing-results { flex: 1; width: 100%; min-width: 0; }

.sidebar-right {
    width: 320px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* 
==============================================================
   3. LISTING CARD
============================================================== 
*/
.company-listing-container.view-list { display: flex; flex-direction: column; gap: 20px; }
.company-listing-container.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.fixydo-card-compact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.fixydo-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #d1d5db;
}

.company-listing-container.view-grid .fixydo-card-compact { height: 100%; }
.company-listing-container.view-grid .fc-header { flex-direction: column; align-items: center; text-align: center; }
.company-listing-container.view-grid .fc-img-box { width: 100px; height: 100px; margin-bottom: 10px; }
.company-listing-container.view-grid .fc-content { width: 100%; align-items: center; }
.company-listing-container.view-grid .fc-top-row { justify-content: center; }
.company-listing-container.view-grid .fc-meta { justify-content: center; }
.company-listing-container.view-grid .fc-footer { flex-direction: column; gap: 15px; }
.company-listing-container.view-grid .fc-socials { justify-content: center; }
.company-listing-container.view-grid .fc-btns { width: 100%; }
.company-listing-container.view-grid .fc-btn { flex: 1; }
.fc-header { display: flex; gap: 20px; align-items: flex-start; width: 100%; }
.fc-img-box { width: 90px; height: 90px; flex-shrink: 0; position: relative; }
.fc-img-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #f3f4f6; display: block; }
.fc-initials-avatar { width: 100%; height: 100%; background-color: #F0F4F8; color: #003366; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; text-transform: uppercase; border: 1px solid #cbd5e1; }
.fc-status { position: absolute; bottom: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; z-index: 2; }
.fc-open { background-color: #10b981; }
.fc-closed { background-color: #ef4444; }
.fc-content { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.fc-top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.fc-cat { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #003366; background: #F0F4F8; padding: 3px 8px; border-radius: 4px; }
.fc-verified { font-size: 11px; color: #10b981; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.fc-title { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 6px 0; line-height: 1.3; }

/* FIX: Increased Touch Target for Title */
.fc-title a { text-decoration: none; color: inherit; display: block; padding: 2px 0; }

.fc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: #6b7280; margin-bottom: 6px; }
.fc-rating { display: flex; align-items: center; color: #f59e0b; font-weight: 600; }
.fc-rating .dashicons { font-size: 16px; width: 16px; height: 16px; margin-right: 4px; }
.fc-rating-num { color: #374151; margin-left: 2px; }
.fc-no-rating { font-size: 0.8rem; color: #64748b; font-style: italic; }
.fc-loc { display: flex; align-items: center; color: #6b7280; }
.fc-loc .dashicons { font-size: 16px; width: 16px; height: 16px; margin-right: 4px; }

/* FIX: Increased Touch Target for Location */
.fc-loc a { color: #6b7280; text-decoration: none; display: inline-block; padding: 5px 0; }

.fc-price-highlight { font-size: 14px; color: #047857; margin-top: 2px; }
.fc-price-highlight strong { font-weight: 700; font-size: 15px; }

.fc-services-container { width: 100%; overflow: hidden; }
.fc-services-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
.fc-services-scroll::-webkit-scrollbar { display: none; }
.fc-pill { background: transparent; color: #6B7280; border: 1px solid #E5E7EB; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: all 0.2s ease; }
.fc-pill:hover { border-color: #003366; color: #003366; }
.fc-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #f3f4f6; gap: 10px; }
.fc-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-social-badge { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; background: #f3f4f6; color: #9ca3af; }
.fc-social-badge .dashicons { font-size: 16px; width: 16px; height: 16px; }
.fc-social-badge:hover { color: #fff; transform: translateY(-3px); }
.fc-social-badge.social-facebook:hover { background: #3b5998; }
.fc-social-badge.social-twitter:hover { background: #000000; }
.fc-social-badge.social-instagram:hover { background: #c13584; }
.fc-social-badge.social-linkedin:hover { background: #0077b5; }
.fc-social-badge.social-youtube:hover { background: #ff0000; }
.fc-social-badge.social-whatsapp:hover { background: #25D366; }
.fc-btns { display: flex; gap: 12px; flex-shrink: 0; }
.fc-btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: 0.2s; white-space: nowrap; }
.fc-btn-view { background: transparent; border: 1px solid #cbd5e1; color: #64748b; }
.fc-btn-view:hover { background: #F0F4F8; color: #003366; border-color: #003366; }
.fc-btn-book { background: #003366; border: 1px solid #003366; color: #ffffff; }
.fc-btn-book:hover { background: #002244; border-color: #002244; }

/* 
==============================================================
   4. SEO CONTENT CARDS (NEW STYLES)
============================================================== 
*/
.seo-content-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.seo-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* NEW: Archive Bottom Description Card */
.archive-bottom-description {
    margin-top: 40px;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.archive-bottom-description p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
}
.archive-bottom-description h2, .archive-bottom-description h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}


.seo-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* --- CARD 1: HIGHLIGHTS --- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-col {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s;
}

.highlight-col:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.hl-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.hl-icon .dashicons { font-size: 24px; width: 24px; height: 24px; }

.highlight-col h4 { font-size: 1.1rem; margin-bottom: 5px; color: #0f172a; }
.highlight-col h5 { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; font-weight: 500; }

.hl-list ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.hl-list li { font-size: 0.9rem; color: #475569; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.hl-list li .dashicons { color: #10b981; font-size: 16px; }

/* --- PRICING & RATES GRID (2 Columns) --- */
.pricing-rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- CARD 2 & 3: PRICING TABLES --- */
.table-responsive-content table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.table-responsive-content th, .table-responsive-content td { padding: 12px 15px; border: 1px solid #e2e8f0; text-align: left; }
.table-responsive-content th { background: #f1f5f9; font-weight: 600; color: #1e293b; }
.table-responsive-content tr:nth-child(even) { background: #f8fafc; }
.pricing-note { font-size: 0.85rem; color: #64748b; font-style: italic; margin-top: 10px; }

/* --- CARD 4: WHY CHOOSE (GRID) --- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wc-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s;
}

.wc-item:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.wc-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.wc-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: #0f172a; }
.wc-item p { font-size: 0.9rem; color: #64748b; line-height: 1.5; margin: 0; }

/* --- CARD 6: FAQs --- */
.seo-faq-item { border-bottom: 1px solid #e2e8f0; }
.seo-faq-item:last-child { border-bottom: none; }
.faq-question {
    padding: 15px 0;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question .dashicons { transition: transform 0.3s; color: #94a3b8; }
.faq-question.active .dashicons { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: 15px; color: #475569; line-height: 1.6; }

/* 
==============================================================
   5. MOBILE ADJUSTMENTS (GENERIC)
============================================================== 
*/
@media (max-width: 992px) {
    .fixydo-search-layout { flex-direction: column; }
    .sidebar-right { width: 100%; position: static; margin-top: 20px; }
    .pricing-rates-grid { grid-template-columns: 1fr; }
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .archive-hero-section { padding: 30px 0; }
    .archive-hero-header .page-title { font-size: 1.8rem; }
    #mobile-filter-toggle { display: flex; }
    #filter-content-wrapper { display: none; padding-top: 15px; margin-top: 10px; background: transparent; }
    #filter-content-wrapper.active { display: block; }
    #fixydo-live-search-form { flex-direction: column; gap: 10px; }
    .filter-row-inputs { flex-direction: column; width: 100%; }
    .search-input-wrap, .fixydo-select { width: 100%; }
    .fixydo-card-compact { padding: 16px; margin-bottom: 16px; }
    .fixydo-card-compact:hover { transform: none; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
    .fc-header { gap: 15px; }
    .fc-img-box { width: 70px; height: 70px; }
    .fc-initials-avatar { font-size: 22px; }
    .fc-title { font-size: 16px; margin-bottom: 2px; }
    .fc-footer { flex-direction: column; align-items: stretch; gap: 15px; }
    .fc-socials { display: none; }
    .fc-btns { width: 100%; }
    .fc-btn { flex: 1; text-align: center; }
    .highlights-grid { grid-template-columns: 1fr; }
    .why-choose-grid { grid-template-columns: 1fr; }
    .card-header-box { padding: 20px; margin: -30px -30px 20px -30px; }
    .links-card-content { padding: 0 20px 20px 20px; }
}

/* 
==============================================================
   6. PREMIUM INTERNAL LINKS SECTION (V9.3)
============================================================== 
*/

/* --- MAIN CARD & HEADER BOX --- */
.links-card, .tips-card {
    padding: 0 !important;
    overflow: hidden;
}

.card-header-box {
    text-align: left;
    padding: 25px 30px;
    margin: 0 0 30px 0;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    border-bottom: 1px solid #cbd5e1;
}

.card-header-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-box h3 .dashicons {
    font-size: 18px;
    color: #0284c7;
    background-color: #e0f2fe;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-description {
    font-size: 0.9rem;
    color: #475569;
    margin: 8px 0 0 0;
    padding: 0;
    line-height: 1.6;
    max-width: 100%;
}

.card-header-description p { margin: 0; padding: 0; }

/* --- NUMBERED LIST FOR 'TIPS' CARD --- */
.numbered-list-style ol { 
    counter-reset: tips-counter; 
    list-style: none; 
    padding: 0; 
    margin: 0;
}
.numbered-list-style li { 
    position: relative; 
    padding-left: 35px; 
    margin-bottom: 15px; 
    font-size: 0.95rem;
    color: #334155;
}
.numbered-list-style li:last-child { margin-bottom: 0; }
.numbered-list-style li::before {
    counter-increment: tips-counter;
    content: counter(tips-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #003366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: 700;
}

/* --- NEW INTERNAL LINKS GRID LAYOUT --- */
.links-card-content {
    padding: 0 30px 30px 30px;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.internal-link-item {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.internal-link-item:hover {
    transform: translateY(-3px);
    border-color: #003366;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.internal-link-item .link-icon {
    color: #0284c7;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    transition: color 0.2s ease-in-out;
}

.internal-link-item .link-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s ease-in-out;
}

.internal-link-item .link-arrow {
    font-size: 20px;
    color: #94a3b8;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* --- Hover State for Inner Elements --- */
.internal-link-item:hover .link-text,
.internal-link-item:hover .link-icon {
    color: #003366;
}

.internal-link-item:hover .link-arrow {
    transform: translateX(5px);
    color: #003366;
}

/* --- Responsive Adjustments for the Links Grid --- */
@media (max-width: 992px) {
    .internal-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .internal-links-grid {
        grid-template-columns: 1fr;
    }
}

/* 
==============================================================
   7. VIEW ALL BUTTONS (NEW)
============================================================== 
*/
.button-ghost {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.button-ghost:hover {
    background: #f1f5f9;
    color: #003366; /* Primary Color */
    border-color: #003366;
}

.button-ghost .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.button-ghost:hover .dashicons {
    transform: translateX(3px);
}

/* 
==============================================================
   8. PAGINATION BUTTONS (FIXED)
============================================================== 
*/
.fixydo-pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.fixydo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
}

.fixydo-pagination .page-numbers:hover {
    background: #f3f4f6;
    color: #003366;
    border-color: #003366;
}

.fixydo-pagination .current {
    background: #003366;
    color: white;
    border-color: #003366;
}

/* Specific styles for Next/Prev to ensure they look like buttons */
.fixydo-pagination .next,
.fixydo-pagination .prev {
    padding: 8px 20px; /* Wider for text */
    font-weight: 700;
}

/* Add arrows via CSS if text is plain */
.fixydo-pagination .next::after {
    content: '\f345'; /* Dashicon arrow-right */
    font-family: 'dashicons';
    margin-left: 5px;
    font-size: 16px;
    vertical-align: middle;
}

.fixydo-pagination .prev::before {
    content: '\f341'; /* Dashicon arrow-left */
    font-family: 'dashicons';
    margin-right: 5px;
    font-size: 16px;
    vertical-align: middle;
}