/* Petneta - Soft, Feminine, Mobile-First */

:root {
    /* Brand Colors from Logo */
    --primary: #B79ACB;
    --primary-dark: #9B7DB5;
    --primary-darker: #4B3A54;
    --accent-pink: #E5C1D6;
    --accent-lavender: #EDE7F2;
    --text: #4B3A54;
    --text-light: #8E7C9A;
    --bg: #FDFBFE;
    --bg-alt: #F8F5FA;
    --border: #E8E0ED;
    --success: #A8D5BA;
    --warning: #E8C9A0;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(183, 154, 203, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-darker);
    letter-spacing: -0.5px;
}

.logo img {
    height: 56px;
    width: auto;
}

.logo:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav a:hover {
    background: var(--accent-lavender);
    color: var(--primary-darker);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--white) 50%, var(--accent-pink) 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    color: var(--primary-darker);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(75, 58, 84, 0.1);
    border: 1px solid var(--border);
}

.search-box input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.search-box select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 154, 203, 0.4);
}

/* Section */
.section {
    padding: 56px 0;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    color: var(--primary-darker);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* Article Grid */
.article-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 640px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(75, 58, 84, 0.12);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
}

.article-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--primary-darker);
}

.article-card h3 a:hover {
    color: var(--primary-dark);
}

.article-card .meta {
    font-size: 14px;
    color: var(--text-light);
    background: var(--accent-lavender);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
}

.article-card .excerpt {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Category Cards */
.category-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(183, 154, 203, 0.2);
}

.category-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: var(--primary-darker);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Listing Grid */
.listing-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.listing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(183, 154, 203, 0.15);
}

.listing-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    margin-bottom: 6px;
}

.listing-card h3 a {
    color: var(--primary-darker);
}

.listing-card .address {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.listing-card .phone {
    color: var(--primary-dark);
    font-weight: 500;
}

/* Article Page */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px;
}

.article-header {
    margin-bottom: 32px;
    text-align: center;
}

.article-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--primary-darker);
}

.article-meta {
    color: var(--text-light);
    font-size: 15px;
}

.article-meta a {
    color: var(--primary-dark);
}

.article-featured-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 30px rgba(75, 58, 84, 0.1);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    margin: 40px 0 20px;
    color: var(--primary-darker);
}

.article-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    margin: 32px 0 16px;
    color: var(--primary-darker);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--primary-darker);
}

/* Listing Page */
.listing {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px;
}

.listing-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--primary-darker);
}

.listing-contact {
    background: var(--accent-lavender);
    padding: 24px;
    border-radius: 16px;
    margin: 28px 0;
}

.listing-contact p {
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-darker);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 140px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 154, 203, 0.4);
}

/* Footer */
.footer {
    background: var(--primary-darker);
    color: var(--white);
    padding: 48px 0;
    margin-top: 64px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer a {
    color: var(--accent-pink);
}

.footer a:hover {
    color: var(--white);
}

/* Utilities */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* Location Display */
.location-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--accent-lavender);
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text);
}

#location-icon {
    font-size: 18px;
}

#user-location {
    flex: 1;
    font-weight: 500;
}

.change-location-link {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

.change-location-link:hover {
    color: var(--primary);
}

.location-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.location-input-wrapper input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 0 !important;
}

.location-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.use-location-btn,
.cancel-location-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.use-location-btn {
    background: var(--primary);
    color: var(--white);
}

.use-location-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.cancel-location-btn {
    background: var(--bg-alt);
    color: var(--text-light);
}

.cancel-location-btn:hover {
    color: var(--text);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Location Info */
.location-info {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.location-info strong {
    color: var(--text);
}

/* Results Count */
.results-count {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Premium Listing */
.listing-premium {
    border: 2px solid var(--primary) !important;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-lavender) 100%) !important;
    position: relative;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Listing Card Enhancements */
.listing-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.rating {
    margin: 8px 0;
    font-size: 14px;
}

.rating-number {
    font-weight: 600;
    color: var(--primary-darker);
    margin-left: 4px;
}

.rating-count {
    color: var(--text-light);
    font-size: 13px;
}

.distance {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
    margin: 6px 0;
}

.view-details {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.view-details:hover {
    color: var(--primary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 48px 20px;
    background: var(--accent-lavender);
    border-radius: 16px;
}

.no-results p {
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 639px) {
    .filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .location-input-wrapper {
        flex-wrap: wrap;
    }
    
    .location-input-wrapper input[type="text"] {
        width: 100%;
        flex: none;
    }
}

/* Clickable Listing Card - Full card is a link */
.listing-card {
    position: relative;
    cursor: pointer;
}

.listing-card .view-details::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure inner links/buttons stay above the overlay */
.listing-card h3 a,
.listing-card .phone,
.listing-card a:not(.view-details) {
    position: relative;
    z-index: 2;
}

/* Keep view-details static so ::after stretches to .listing-card */
.listing-card .view-details {
    position: static;
}
