/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

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

/* ===== HEADER STYLES ===== */
.site-header {
    background: linear-gradient(135deg, #3f6f7a 0%, #1c444f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 50px;
}

.header-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.9;
}

/* Main Navigation */
.header-navbar__menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.header-navbar__menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.header-navbar__menu a:hover,
.header-navbar__menu a.active {
    background-color: rgba(247, 171, 126, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== MAIN CONTENT ===== */
.site-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f7ab7e;
    position: relative;
}

.page-title h1 {
    font-size: 36px;
    color: #1c444f;
    margin-bottom: 10px;
}

.page-title p {
    color: #5a6d7a;
    font-size: 18px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: #f7ab7e;
    color: #1c444f;
}

.btn-primary:hover {
    background: #f49a67;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 171, 126, 0.3);
}

.btn-secondary {
    background: #f7ab7e;
    color: #1c444f;
}

.btn-secondary:hover {
    background: #f49a67;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #f7ab7e;
    color: #f7ab7e;
}

.btn-outline:hover {
    background: #f7ab7e;
    color: #1c444f;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* Loading button state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-background {
    background: linear-gradient(rgba(28, 68, 79, 0.9), rgba(10, 45, 56, 0.9)),
                url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
    border-radius: 12px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-search-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-search-input {
    flex: 1;
}

.hero-search-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-size: 16px; /* Prevent iOS zoom */
}

.hero-cta-button {
    background: #f7ab7e;
    color: #1c444f;
    padding: 15px 30px;
    font-weight: 600;
}

.hero-cta-button:hover {
    background: #f49a67;
}

/* Categories Section */
.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card-link {
    text-decoration: none;
    display: block;
}

.category-card {
    background: rgba(247, 171, 126, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #f7ab7e;
    box-shadow: 0 10px 30px rgba(247, 171, 126, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3f6f7a 0%, #1c444f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #f7ab7e;
}

.category-card h3 {
    font-size: 20px;
    color: #1c444f;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.category-card p {
    color: #5a6d7a;
    font-size: 14px;
}

/* Featured Listings (Homepage) */
.home-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.home-listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #f7ab7e;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.home-listing-header {
    padding: 25px 25px 0;
}

.home-listing-badges {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(247, 171, 126, 0.2);
    color: #1c444f;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #f7ab7e;
}

.recommended-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(28, 68, 79, 0.1);
    color: #1c444f;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #1c444f;
}

.home-listing-title {
    font-size: 22px;
    color: #1c444f;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.home-listing-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.home-listing-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7ab7e;
    background: rgba(247, 171, 126, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(247, 171, 126, 0.3);
}

.home-listing-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6d7a;
    font-size: 14px;
    text-decoration: none;
}

.home-listing-website:hover {
    color: #f7ab7e;
}

.home-listing-content {
    padding: 0 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-listing-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.home-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.home-info-item {
    margin-bottom: 10px;
}

.home-info-label {
    font-size: 12px;
    color: #5a6d7a;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-info-value {
    color: #1c444f;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-info-value i {
    color: #f7ab7e;
}

.home-info-value a {
    color: #1c444f;
    text-decoration: none;
    word-break: break-all;
}

.home-info-value a:hover {
    color: #f7ab7e;
}

.home-listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.home-listing-date {
    color: #8a9ba8;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Stats Section (Homepage) */
.home-stats-section {
    background: linear-gradient(135deg, #3f6f7a 0%, #1c444f 100%);
    color: white;
    padding: 80px 0;
    margin-top: 60px;
    text-align: center;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item-home {
    text-align: center;
}

.stat-number-home {
    font-size: 48px;
    font-weight: 700;
    color: #f7ab7e;
    margin-bottom: 10px;
}

.stat-number-home.color-green {
    color: #f7ab7e;
}

.stat-number-home.color-orange {
    color: #f7ab7e;
}

.stat-number-home.color-purple {
    color: #f7ab7e;
}

.stat-label-home {
    color: #cbd5e0;
    font-size: 18px;
}

/* CTA Section (Homepage) */
.home-cta-section {
    padding: 80px 0;
    text-align: center;
    background: rgba(28, 68, 79, 0.05);
    border-radius: 12px;
}

.home-cta-section h2 {
    font-size: 36px;
    color: #1c444f;
    margin-bottom: 20px;
}

.home-cta-section p {
    font-size: 18px;
    color: #5a6d7a;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

/* Empty State (Homepage) */
.home-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.home-empty-icon {
    font-size: 72px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.home-empty-state h3 {
    font-size: 24px;
    color: #5a6d7a;
    margin-bottom: 10px;
}

.home-empty-state p {
    color: #8a9ba8;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== FORM STYLES ===== */
.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 50px;
    margin: 0 auto;
    max-width: 800px;
}

.hp-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    margin-bottom: 10px;
}

.form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1c444f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f7ab7e, #1c444f);
}

.form-field {
    margin-bottom: 25px;
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1c444f;
    font-size: 16px;
}

.field-label.required::after {
    content: ' *';
    color: #e53e3e;
}

.field-input,
.field-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    font-size: 16px; /* Prevent iOS zoom */
}

.field-input:focus,
.field-select:focus {
    outline: none;
    border-color: #f7ab7e;
    box-shadow: 0 0 0 3px rgba(247, 171, 126, 0.1);
}

.field-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c444f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

/* Radio Button Group */
.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    min-width: 22px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #f7ab7e;
    background-color: #f7ab7e;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.radio-label {
    font-size: 16px;
    color: #1c444f;
}

/* Email Record Section */
.email-record {
    background: linear-gradient(135deg, rgba(247, 171, 126, 0.2) 0%, rgba(28, 68, 79, 0.1) 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #f7ab7e;
}

.email-record label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #1c444f;
}

.email-record input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #f7ab7e;
}

.email-address {
    font-weight: 700;
    color: #1c444f;
    margin-left: 5px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 20px;
}

.form-help {
    color: #5a6d7a;
    font-size: 14px;
}

.form-help a {
    color: #f7ab7e;
    text-decoration: none;
    font-weight: 500;
}

.form-help a:hover {
    text-decoration: underline;
}

.form-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: linear-gradient(135deg, #3f6f7a 0%, #1c444f 100%);
    color: #cbd5e0;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f7ab7e;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}

.footer-widget ul li a:hover {
    color: #f7ab7e;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #2c5c6a;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
}

.footer-links ul {
    display: flex;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f7ab7e;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(247, 171, 126, 0.2);
    color: #1c444f;
    border-left: 5px solid #f7ab7e;
}

.alert-error {
    background-color: rgba(229, 62, 62, 0.1);
    color: #742a2a;
    border-left: 5px solid #e53e3e;
}

.alert-info {
    background-color: rgba(247, 171, 126, 0.2);
    color: #1c444f;
    border-left: 5px solid #f7ab7e;
}

/* ===== DIRECTORY STYLES ===== */

/* Directory Layout */
.directory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Sidebar Styles */
.directory-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-section h3,
.sidebar-stats h3 {
    font-size: 18px;
    color: #1c444f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    min-height: 44px;
}

.category-item label:hover {
    background-color: rgba(247, 171, 126, 0.1);
}

.category-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #f7ab7e;
}

.category-item span {
    color: #1c444f;
    font-size: 14px;
}

/* Stats Section in Sidebar */
.sidebar-stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 5px 0px;
    background: rgba(247, 171, 126, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(247, 171, 126, 0.2);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1c444f;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #5a6d7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.submit-cta p {
    color: #5a6d7a;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Main Content Styles */
.directory-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Toolbar Styles */
.directory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9ba8;
}

.search-input input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-size: 16px; /* Prevent iOS zoom */
}

.search-input input:focus {
    outline: none;
    border-color: #f7ab7e;
    box-shadow: 0 0 0 3px rgba(247, 171, 126, 0.1);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9ba8;
    text-decoration: none;
    font-size: 14px;
    min-height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    color: #e53e3e;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-box label {
    color: #5a6d7a;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1c444f;
    background: white;
    cursor: pointer;
    min-width: 150px;
    font-size: 16px; /* Prevent iOS zoom */
}

.sort-select:focus {
    outline: none;
    border-color: #f7ab7e;
    box-shadow: 0 0 0 3px rgba(247, 171, 126, 0.1);
}

/* Results Count */
.results-count {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.results-count p {
    color: #5a6d7a;
    font-size: 14px;
    margin: 0;
}

/* Business Listings */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.listing-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.listing-header {
    position: relative;
    padding: 25px 25px 0;
}

.listing-badges {
    position: static;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge i {
    font-size: 10px;
}

/* Badge Styles - Only keep non-status badges */
.badge.type-own {
    background: rgba(247, 171, 126, 0.2);
    color: #1c444f;
    border: 1px solid #f7ab7e;
    font-size: 12px;
}

.badge.type-recommending {
    background: rgba(28, 68, 79, 0.1);
    color: #1c444f;
    border: 1px solid #1c444f;
    font-size: 12px;
}

.listing-image {
    display: none;
}

.listing-content {
    padding: 0 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(247, 171, 126, 0.1);
    border-radius: 20px;
    color: #1c444f;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(247, 171, 126, 0.3);
    align-self: flex-start;
}

.listing-title {
    font-size: 18px;
    color: #1c444f;
    margin-bottom: 20px;
    line-height: 1.4;
    word-wrap: break-word;
}

.listing-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c444f;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item i {
    color: #5a6d7a;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item a {
    color: #1c444f;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.detail-item a:hover {
    color: #f7ab7e;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.listing-date {
    color: #8a9ba8;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State (Directory) */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 72px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: #5a6d7a;
    margin-bottom: 10px;
}

.empty-state p {
    color: #8a9ba8;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #1c444f;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #5a6d7a;
    line-height: 1.6;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* ===== UTILITY CLASSES ===== */
.featured-listings {
    margin: 60px 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .home-listings-grid,
    .listings-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .directory-layout {
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .directory-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .directory-sidebar {
        order: 2;
    }
    
    .directory-main {
        order: 1;
    }
    
    .hero-search-form {
        flex-direction: column;
        padding: 15px;
    }
    
    .home-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}

/* Mobile Menu Breakpoint */
@media (max-width: 768px) {
    /* Header and Navigation */
    .header-navbar {
        flex-wrap: wrap;
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .header-logo {
        order: 1;
        flex: 1;
    }
    
    .header-navbar__menu {
        order: 3;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    .header-navbar__menu.active {
        display: block;
    }
    
    .header-navbar__menu ul {
        flex-direction: column;
        gap: 0;
        background: linear-gradient(135deg, #3f6f7a 0%, #1c444f 100%);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .header-navbar__menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-navbar__menu li:last-child {
        border-bottom: none;
    }
    
    .header-navbar__menu a {
        padding: 15px 20px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    /* Hero Section */
    .hero-background {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
        min-height: 180px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    /* Listings */
    .home-listings-grid,
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-listing-card,
    .listing-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .home-listing-header,
    .listing-header {
        padding: 20px 20px 0;
    }
    
    .home-listing-content,
    .listing-content {
        padding: 0 20px 20px;
    }
    
    .home-listing-title,
    .listing-title {
        font-size: 20px;
    }
    
    .home-listing-footer,
    .listing-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .home-listing-actions,
    .listing-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Forms */
    .form-container {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-field {
        margin-bottom: 20px;
    }
    
    .field-input,
    .field-select {
        padding: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .form-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Directory */
    .directory-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
        min-width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .sort-box {
        justify-content: space-between;
        width: 100%;
    }
    
    .sort-select {
        min-width: 100%;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stats-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item-home {
        padding: 15px;
    }
    
    .stat-number-home {
        font-size: 36px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Page Titles */
    .page-title {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* Content padding */
    .site-content {
        padding: 20px 0;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        min-height: 160px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-home {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number-home {
        font-size: 32px;
    }
    
    .home-stats-section {
        padding: 60px 0;
    }
    
    .home-cta-section {
        padding: 60px 20px;
    }
    
    .home-cta-section h2 {
        font-size: 28px;
    }
    
    .home-cta-section p {
        font-size: 16px;
    }
    
    .empty-state,
    .home-empty-state {
        padding: 40px 15px;
    }
    
    .empty-icon,
    .home-empty-icon {
        font-size: 60px;
    }
    
    .empty-state h3,
    .home-empty-state h3 {
        font-size: 20px;
    }
    
    /* Hero section for very small screens */
    .hero-background {
        padding: 40px 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    /* Buttons for very small screens */
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Form improvements for small screens */
    .form-container {
        padding: 15px 10px;
    }
    
    .form-section-title {
        font-size: 18px;
    }
    
    .field-label {
        font-size: 15px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-background {
        padding: 40px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        min-height: 150px;
    }
    
    .header-navbar__menu ul {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: linear-gradient(rgba(28, 68, 79, 0.9), rgba(10, 45, 56, 0.9)),
                          url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-1.2.1&auto=format&fit=crop&w=2560&q=80&dpr=2');
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .menu-toggle,
    .header-navbar__menu,
    .form-actions .btn-outline,
    .site-footer,
    .btn,
    .listing-actions,
    .home-listing-actions {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .home-listing-card,
    .listing-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}