/* assets/country.css - Country listing page styles */

:root {
    --primary: #1a2e3f;
    --secondary: #c9a959;
    --accent: #e5d5b3;
    --text-dark: #1e293b;
    --text-light: #546e7a;
    --bg-light: #faf8f5;
    --white: #ffffff;
    --border: #e2dcd3;
    --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
    --radius: 20px;
}

/* Hero Section */
.country-hero {
    background: linear-gradient(135deg, rgba(26,46,63,0.9) 0%, rgba(42,64,85,0.9) 100%), url('https://images.unsplash.com/photo-1549517045-bc93de9f8a6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.country-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.country-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.country-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.country-stat {
    text-align: center;
}

.country-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.country-stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Properties Section */
.properties-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.results-count {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 50px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    font-size: 0.95rem;
    transition: all 0.3s;
}

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

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-filter {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-filter:hover {
    background: #2a4055;
}

.btn-reset {
    padding: 12px 25px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--border);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .card-image img {
    transform: scale(1.1);
}

.image-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.image-count i {
    margin-right: 5px;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

.card-location {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.card-location i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.card-features {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature i {
    color: var(--secondary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 0;
    background: var(--white);
    border-radius: var(--radius);
}

.no-results i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4055 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: #b8943f;
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .country-hero h1 { font-size: 3rem; }
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .country-hero { padding: 60px 0; }
    .country-hero h1 { font-size: 2.2rem; }
    .country-hero p { font-size: 1.1rem; }
    .country-hero-stats { gap: 30px; }
    .country-stat-number { font-size: 2rem; }
    .properties-section { padding: 50px 0; }
    .properties-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.8rem; }
    .filters { flex-direction: column; padding: 20px; }
    .filter-group { width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions button { flex: 1; }
    .cta-content h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
    .country-hero h1 { font-size: 1.8rem; }
    .section-header { flex-direction: column; text-align: center; }
    .card-title { font-size: 1.2rem; }
    .card-price { font-size: 1.5rem; }
}