/* =========================
   CONNECTA24 MARKETPLACE UI
   ========================= */

body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fb;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* Headings */
h1, h2, h3 {
    color: #0f4c5c;
    margin-top: 0;
}

p {
    margin-top: 0;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
    background: #0f4c5c;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-right: 14px;
}

.navbar a:hover {
    color: #ffd166;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

/* =========================
   CARDS
   ========================= */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

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

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-block;
    padding: 10px 14px;
    background-color: #0f4c5c;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background-color: #0c3c49;
}

.btn + .btn {
    margin-left: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
}

/* =========================
   FORMS
   ========================= */
form input,
form select,
form textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd3da;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    box-sizing: border-box;
    margin-top: 6px;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form label {
    font-weight: 600;
    color: #333;
}

form button {
    margin-top: 10px;
}

/* =========================
   LISTING IMAGES
   ========================= */
.listing-image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.listing-thumb {
    width: 220px;
    height: 180px;
    object-fit: contain;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px;
    display: block;
    border: 1px solid #e2e8f0;
}

/* =========================
   DETAIL IMAGES
   ========================= */
.detail-slider {
    max-width: 800px;
    margin-bottom: 20px;
    overflow: hidden;
    touch-action: pan-y;
}

.detail-image-full {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    background: #f1f3f5;
    border-radius: 10px;
    display: block;
    border: 1px solid #e2e8f0;
}

/* =========================
   PRICE + META
   ========================= */
.price-tag {
    color: #d97706;
    font-size: 18px;
    font-weight: 700;
}

.meta-text {
    color: #555;
    font-size: 14px;
}

/* =========================
   ALERTS / MESSAGES
   ========================= */
.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.messages li {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.messages .success {
    background: #e8f8ee;
    color: #1f7a3e;
}

.messages .error {
    background: #fdecec;
    color: #b42318;
}

.messages .warning {
    background: #fff7e6;
    color: #b26b00;
}

/* =========================
   GRID HELPERS
   ========================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

/* =========================
   LINKS
   ========================= */
a {
    color: #0f4c5c;
}

a:hover {
    color: #d97706;
}

/* =========================
   HR
   ========================= */
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-thumb {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .detail-image-full {
        max-height: 340px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .btn + .btn {
        margin-left: 0;
    }
}

/* Moving safety banner */
.safety-marquee {
    width: 100%;
    overflow: hidden;
    background: #fff3cd;
    color: #856404;
    border-top: 1px solid #ffe69c;
    border-bottom: 1px solid #ffe69c;
    padding: 10px 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.safety-marquee-text {
    display: inline-block;
    padding-left: 100%;
    font-weight: 700;
    animation: moveSafetyMessage 18s linear infinite;
}

@keyframes moveSafetyMessage {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* GRID LAYOUT */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.listing-thumb {
    transition: transform 0.3s ease;
}

.listing-thumb:hover {
    transform: scale(1.05);
}

.price-tag {
    color: #d97706;
    font-size: 18px;
    font-weight: bold;
}

.category-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.new-badge {
    background: red;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 6px;
}

/* =========================
   HOMEPAGE REDESIGN
   ========================= */

.hero-section {
    background: linear-gradient(135deg, #0f4c5c, #1b6b80);
    color: white;
    padding: 50px 20px;
    border-radius: 16px;
    margin-bottom: 35px;
}

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

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.hero-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-search-form input {
    flex: 1;
    min-width: 180px;
    padding: 12px;
    border: none;
    border-radius: 8px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: white;
    color: #0f4c5c;
}

.secondary-btn:hover {
    background: #f3f4f6;
    color: #0f4c5c;
}

.hero-image-box {
    flex: 1;
    min-width: 240px;
    text-align: center;
}

.hero-image {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* Categories */
.category-section {
    margin-bottom: 40px;
}

.category-section h2 {
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.category-card h3 {
    margin-bottom: 8px;
    color: #0f4c5c;
}

/* Why section */
.why-section {
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.why-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* CTA */
.cta-section {
    margin-bottom: 30px;
}

.cta-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 10px;
    color: #9a3412;
}

.cta-box p {
    margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-search-form {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
/* ===== CONNECTA24 STARTUP UI UPGRADE ===== */

:root {
  --primary: #0f4c5c;
  --accent: #d97706;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 18px;
}

/* Soft startup polish */
body {
  background: #f7f9fb;
  color: var(--text);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.hero-section {
  box-shadow: 0 18px 40px rgba(15, 76, 92, 0.16);
}

.hero-search-form input,
.hero-search-form select,
.hero-search-form textarea {
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card,
.category-card,
.why-card,
.cta-box {
  border-radius: var(--radius);
}

.listing-grid .card {
  overflow: hidden;
}

.card img,
.listing-thumb,
.hero-image {
  border-radius: 12px;
}

.btn {
  border-radius: 999px;
  padding: 12px 18px;
}

.category-card,
.why-card,
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.why-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

.category-badge {
  background: rgba(15, 76, 92, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.container {
  width: min(92%, 1200px);
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

p {
  color: #374151;
}
/* ===== HOMEPAGE STARTUP POLISH ===== */

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin-bottom: 8px;
}

.section-heading p {
    color: #6b7280;
    max-width: 700px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 180px;
    backdrop-filter: blur(4px);
}

.hero-stat strong {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
}

.hero-stat span {
    color: #e5eef2;
    font-size: 13px;
    line-height: 1.4;
}

.category-card p,
.why-card p,
.cta-box p {
    color: #4b5563;
}

.cta-box .hero-buttons {
    justify-content: center;
    margin-top: 14px;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        width: 100%;
    }

    .section-heading {
        text-align: left;
    }

    .cta-box .hero-buttons {
        align-items: stretch;
    }
}

/* ===== BASE LAYOUT STARTUP UPGRADE ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

.navbar {
    background: rgba(15, 76, 92, 0.96);
    padding: 14px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.brand-text {
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 260px;
}

.navbar-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 420px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 999px;
    border: none;
    outline: none;
}

.search-btn {
    background: #d97706;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-btn:hover {
    background: #b45309;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0;
}

.nav-links a:hover {
    color: #ffd166;
    text-decoration: none;
}

.nav-post-btn {
    background: #d97706;
    color: white !important;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.nav-post-btn:hover {
    background: #b45309;
    color: white !important;
}

.welcome-text {
    color: #e5eef2;
    font-weight: 600;
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.08);
}

.site-main {
    padding-top: 24px;
    padding-bottom: 40px;
}

.message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.listing-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
}

.detail-image {
    width: 100%;
    max-width: 800px;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .navbar-inner {
        align-items: stretch;
    }

    .nav-center {
        order: 3;
        width: 100%;
    }

    .navbar-search-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .brand-text {
        font-size: 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a,
    .welcome-text {
        font-size: 14px;
    }

    .navbar-search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

/* ===== LISTING FEED STARTUP UPGRADE ===== */

.feed-header {
    margin-bottom: 22px;
}

.feed-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #ffffff, #f8fbfc);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feed-label {
    display: inline-block;
    background: rgba(15, 76, 92, 0.08);
    color: #0f4c5c;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feed-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.feed-actions {
    display: flex;
    align-items: center;
}

.feed-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-pill {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 700;
    color: #0f4c5c;
    transition: 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: #0f4c5c;
    color: white;
}

.listing-feed-card {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
}

.listing-feed-media {
    position: relative;
}

.listing-cover-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    background: #f3f4f6;
}

.listing-placeholder {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #6b7280;
    font-weight: 700;
}

.listing-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.listing-card-body {
    padding: 18px;
}

.listing-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.listing-card-top h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: #0f4c5c;
}

.listing-meta-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.listing-description {
    color: #374151;
    min-height: 48px;
    margin-bottom: 18px;
}

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

.listing-detail-btn {
    background: #0f4c5c;
    color: white;
}

.listing-detail-btn:hover {
    background: #0c3c49;
    color: white;
}

.empty-state {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .feed-header-row {
        padding: 18px;
    }

    .listing-card-top {
        flex-direction: column;
    }

    .listing-card-actions {
        flex-direction: column;
    }

    .listing-card-actions .btn {
        width: 100%;
    }
}