/* ============================================
   Chekiao.com Stylesheet
   Brand: Blue #41a6df, Dark #363F48, Quicksand
   ============================================ */

:root {
    --primary: #41a6df;
    --primary-dark: #2d8bc4;
    --primary-light: #e8f4fc;
    --dark: #363F48;
    --dark-light: #4a545e;
    --gray: #7f7f7f;
    --gray-light: #f0f2f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --max-width: 1200px;
    --font: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── Header / Nav ── */
.site-header {
    background: var(--dark);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}
.logo img { height: 40px; width: auto; }
.nav-search { flex: 1; max-width: 400px; }
.nav-search-form {
    display: flex;
    background: rgba(255,255,255,0.12);
    border-radius: 24px;
    overflow: hidden;
}
.nav-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    color: var(--white);
}
.nav-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-form button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.nav-search-form button:hover { background: var(--primary-dark); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
}
.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Hero Section ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.hero-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-family: var(--font);
    font-size: 16px;
    outline: none;
    color: var(--dark);
}
.hero-search select {
    border: none;
    border-left: 1px solid #e5e7eb;
    padding: 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--gray);
    background: var(--white);
    cursor: pointer;
    outline: none;
}
.hero-search button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search button:hover { background: var(--primary-dark); }

/* ── Section Titles ── */
.section {
    padding: 50px 20px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

/* ── Category Grid ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.category-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.category-card .cat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 24px;
}
.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}
.category-card .count {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ── Location Grid ── */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.location-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 180px;
    display: block;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.location-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}
.location-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.location-placeholder {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.4);
}
.location-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.location-card-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.location-card-overlay span {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .location-grid { grid-template-columns: repeat(2, 1fr); }
    .location-card { height: 140px; }
}

/* ── Listing Grid ── */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}
.listing-card {
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.listing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: inherit;
}
.listing-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 20%;
    background: var(--gray-light);
}
.listing-card-body {
    padding: 16px;
}
.listing-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.listing-card-body h3 a { color: var(--dark); }
.listing-card-body h3 a:hover { color: var(--primary); }
.listing-card-body .tagline {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}
.listing-card-body .meta {
    font-size: 0.8rem;
    color: var(--gray);
}
.listing-card-body .meta span { margin-right: 12px; }

/* ── Listing Detail ── */
.listing-hero {
    background: var(--gray-light);
    padding: 40px 20px;
}
.listing-hero .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.listing-hero-img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--white);
}
.listing-hero-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.listing-hero-info .tagline {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}
.listing-hero-info .badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.badge-cat { background: var(--primary-light); color: var(--primary); }
.badge-loc { background: #e8f5e9; color: #2e7d32; }

.listing-content {
    padding: 40px 20px;
}
.listing-content .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}
.listing-main { min-width: 0; }
.listing-main h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--dark);
}
.listing-main h2:first-child { margin-top: 0; }

.listing-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}

/* Contact card */
.contact-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.contact-item:last-child { border-bottom: none; }
.contact-item svg { flex-shrink: 0; color: var(--primary); }
.contact-item a { word-break: break-all; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); }

/* Business hours */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.hours-table td:first-child { font-weight: 600; }
.hours-table td:last-child { text-align: right; color: var(--gray); }

/* FAQ accordion */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: var(--gray-light);
    border: none;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding: 12px 16px;
    font-size: 0.9rem;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* Social links */
.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--dark);
    transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--primary); color: var(--white); }
.social-link.facebook { background: #1877f2; color: var(--white); }
.social-link.facebook:hover { background: #0d65d9; }
.social-link.twitter { background: #000000; color: var(--white); }
.social-link.twitter:hover { background: #333; }
.social-link.instagram { background: #e4405f; color: var(--white); }
.social-link.instagram:hover { background: #c13584; }
.social-link.linkedin { background: #0077b5; color: var(--white); }
.social-link.linkedin:hover { background: #005e93; }
.social-link.youtube { background: #ff0000; color: var(--white); }
.social-link.youtube:hover { background: #cc0000; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.8; }

/* Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

/* ── Search Results ── */
.search-header {
    background: var(--gray-light);
    padding: 30px 20px;
}
.search-filters {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.search-filters select,
.search-filters input {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    background: var(--white);
    outline: none;
}
.search-filters input { flex: 1; min-width: 200px; }
.result-count {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    padding: 16px;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 30px 0;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}
.page-link:hover { background: var(--primary-light); color: var(--primary); }
.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ── Category/Location Page Header ── */
.page-header {
    background: var(--gray-light);
    padding: 40px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* ── 404 ── */
.not-found {
    text-align: center;
    padding: 80px 20px;
}
.not-found h1 { font-size: 4rem; color: var(--primary); }
.not-found p { font-size: 1.2rem; color: var(--gray); margin: 16px 0 30px; }

/* ── Footer ── */
.site-footer {
    background: var(--dark);
    color: #c0c5cb;
    padding: 50px 0 0;
    margin-top: 50px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.footer-links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 12px; }
.footer-links a { color: #c0c5cb; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-links li { margin-bottom: 8px; }
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social .social-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.footer-bottom {
    border-top: 1px solid #4a545e;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Ad Slots ── */
.ad-slot {
    text-align: center;
    padding: 16px 0;
}
.ad-slot:empty,
.ad-slot:has(ins[data-ad-status="unfilled"]) {
    display: none;
}

/* ── Submit Listing Form ── */
.submit-form { margin-top: 10px; }
.form-section {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}
.submit-form .form-group {
    margin-bottom: 14px;
}
.submit-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}
.submit-form input,
.submit-form select,
.submit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s;
}
.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(65,166,223,0.1);
}
.submit-form textarea { resize: vertical; }
.form-row-public {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 400 !important;
}
.checkbox-item input { width: auto; accent-color: var(--primary); }
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 14px 32px;
}
.submit-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 12px;
}
.submit-success {
    text-align: center;
    padding: 60px 20px;
}
.submit-success h2 {
    font-size: 1.5rem;
    margin: 16px 0 8px;
}
.submit-success p {
    color: var(--gray);
    margin-bottom: 24px;
}
.submit-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .form-row-public { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .listing-content .container { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-search { display: none; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }

    .hero h1 { font-size: 1.6rem; }
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .hero-search input,
    .hero-search select { border-left: none; border-bottom: 1px solid #e5e7eb; }
    .hero-search button { border-radius: 0 0 var(--radius) var(--radius); }

    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: 1fr; }

    .listing-hero .container { flex-direction: column; align-items: center; text-align: center; }
    .listing-hero-img { width: 150px; height: 150px; }
    .listing-hero-info .badges { justify-content: center; }

    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .search-filters { flex-direction: column; }
    .search-filters input,
    .search-filters select { width: 100%; }
}

/* ── Description Content ── */
.description-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dark-light);
}
.description-content p { margin-bottom: 12px; }
.description-content strong { color: var(--dark); }

/* ── Placeholder image ── */
.placeholder-img {
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
