/* ================= SOPHISTICATED ECO THEME - EASY ON THE EYES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Soft, Sophisticated Palette */
  --forest-green: #2d6a4f;
  --sage-green: #52b788;
  --mint-cream: #d8f3dc;
  --ocean-teal: #1b4965;
  --sky-blue: #62b6cb;
  --warm-sand: #f4f1de;
  --charcoal: #2c3e50;
  --slate-gray: #52796f;
  --soft-white: #fefefe;
  --pearl: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #52796f;
  --text-muted: #95a5a6;
  --shadow-soft: 0 2px 8px rgba(45, 106, 79, 0.08);
  --shadow-med: 0 4px 16px rgba(45, 106, 79, 0.12);
  --shadow-strong: 0 8px 24px rgba(45, 106, 79, 0.16);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--pearl) 50%, var(--warm-sand) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

.cp-footer {
  flex-shrink: 0;
}

/* ================= WRAPPER ================= */
.cp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ================= ELEGANT HEADER ================= */
.cp-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

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

/* Logo - Larger & Clear */
.cp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.cp-logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(45, 106, 79, 0.15));
  transition: var(--transition);
}

.cp-logo:hover .cp-logo-img {
  filter: drop-shadow(0 4px 12px rgba(45, 106, 79, 0.25));
  transform: scale(1.02);
}

/* Location Search - Refined */
.cp-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pearl);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(82, 183, 136, 0.2);
  transition: var(--transition);
}

.cp-loc:hover {
  background: var(--soft-white);
  border-color: var(--sage-green);
  box-shadow: var(--shadow-soft);
}

.cp-loc:focus-within {
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1), 0 4px 12px rgba(45, 106, 79, 0.15);
  background: white;
  transform: translateY(-1px);
}

.cp-loc i {
  color: var(--forest-green);
  font-size: 16px;
}

.cp-loc-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 150px;
  font-weight: 600;
  padding: 2px 8px 2px 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352b788' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}

/* Custom styled dropdown list */
.cp-loc-input {
  position: relative;
}

/* Style for dropdown options - Enhanced */
.cp-loc-input option {
  padding: 16px 20px;
  background: white;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(82, 183, 136, 0.1);
  transition: var(--transition);
}

.cp-loc-input option:first-child {
  background: var(--pearl);
  color: var(--text-secondary);
  font-weight: 600;
  font-style: italic;
  border-radius: 8px 8px 0 0;
}

.cp-loc-input option:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.cp-loc-input option:hover {
  background: linear-gradient(90deg, var(--mint-cream) 0%, white 100%);
  color: var(--forest-green);
  padding-left: 24px;
  border-left: 3px solid var(--sage-green);
}

.cp-loc-input option:checked,
.cp-loc-input option:focus {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add icon to location options */
.cp-loc-input option:not(:first-child)::before {
  content: '📍 ';
  margin-right: 8px;
}

/* Elegant Search Bar */
.cp-search-form {
  width: 100%;
}

.cp-search-container {
  display: flex;
  align-items: center;
  background: var(--pearl);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 16px;
  transition: var(--transition);
  padding-right: 6px;
}

.cp-search-container:focus-within {
  background: var(--soft-white);
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.cp-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 20px;
  font-size: 15px;
  outline: none;
  color: var(--text-primary);
}

.cp-search-input::placeholder {
  color: var(--text-muted);
}

.cp-search-btn {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
  border: none;
  padding: 10px 18px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-width: 48px;
  height: 46px;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.cp-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

/* Language Selector */
.cp-lang {
  position: relative;
}

.cp-lang-btn {
  background: var(--pearl);
  border: 1px solid rgba(82, 183, 136, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  color: var(--text-secondary);
}

.cp-lang-btn:hover {
  border-color: var(--sage-green);
  background: var(--soft-white);
}

.cp-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow-med);
  min-width: 160px;
  display: none;
  overflow: hidden;
  z-index: 200;
}

.cp-lang-menu.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cp-lang-menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.cp-lang-menu button:hover {
  background: var(--mint-cream);
}

.cp-lang-menu button.active {
  background: var(--mint-cream);
  color: var(--forest-green);
  font-weight: 600;
}

.cp-lang-menu button i {
  opacity: 0;
  color: var(--sage-green);
}

.cp-lang-menu button.active i {
  opacity: 1;
}

/* Header Actions */
.cp-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-message {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pearl);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(82, 183, 136, 0.15);
}

.cp-message:hover {
  background: var(--mint-cream);
  border-color: var(--sage-green);
  color: var(--forest-green);
  transform: scale(1.05);
}

.cp-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}

.cp-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(82, 183, 136, 0.2);
  transition: var(--transition);
}

.cp-avatar:hover {
  border-color: var(--sage-green);
  transform: scale(1.05);
}

.cp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow-med);
  min-width: 180px;
  display: none;
  overflow: hidden;
  z-index: 200;
}

.profile-dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 14px;
}

.dropdown-content a:hover {
  background: var(--mint-cream);
  color: var(--forest-green);
}

.dropdown-content a i {
  color: var(--text-muted);
  width: 18px;
}

/* Elegant Post Button */
.cp-sell {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
  color: white;
  padding: 11px 22px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 14px;
  box-shadow: 0 3px 12px rgba(45, 106, 79, 0.25);
  letter-spacing: 0.3px;
}

.cp-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35);
}

.cp-plus {
  font-size: 18px;
  font-weight: 700;
}

/* Login Button */
.login-btn {
  background: linear-gradient(135deg, var(--ocean-teal) 0%, var(--sky-blue) 100%);
  color: white;
  padding: 11px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
  box-shadow: 0 3px 12px rgba(27, 73, 101, 0.25);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 73, 101, 0.35);
}

/* ================= REFINED CATEGORIES ================= */
.cp-mini-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
  position: sticky;
  top: 96px;
  z-index: 99;
  box-shadow: var(--shadow-soft);
}

.cp-categories-navbar {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-green) transparent;
  display: flex;
  justify-content: center;
}

.cp-categories-navbar::-webkit-scrollbar {
  height: 4px;
}

.cp-categories-navbar::-webkit-scrollbar-track {
  background: transparent;
}

.cp-categories-navbar::-webkit-scrollbar-thumb {
  background: var(--sage-green);
  border-radius: 2px;
}

.cp-categories-list {
  display: flex;
  list-style: none;
  gap: 6px;
  padding: 10px 0;
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.category {
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  background: var(--pearl);
  border: 1px solid transparent;
}

.category:hover {
  background: var(--mint-cream);
  color: var(--forest-green);
  border-color: rgba(82, 183, 136, 0.3);
}

.category.active {
  background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
  color: white;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
  font-weight: 600;
}

/* ================= MAIN CONTENT ================= */
main {
  padding: 36px 0;
  min-height: 60vh;
}

.cp-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* ================= REFINED GRID ================= */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

/* ================= ELEGANT CARD ================= */
.cp-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(82, 183, 136, 0.15);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.cp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--sage-green);
}

.cp-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cp-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--pearl);
  position: relative;
}

.cp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cp-card:hover .cp-thumb img {
  transform: scale(1.08);
}

.cp-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pearl), var(--mint-cream));
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.cp-info {
  padding: 18px;
}

.cp-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--forest-green);
}

.cp-barter {
  color: var(--sage-green);
  background: var(--mint-cream);
  padding: 5px 14px;
  border-radius: 16px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
}

.cp-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  line-height: 1.5;
}

.cp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(82, 183, 136, 0.15);
}

/* No Items */
#noItemsText {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  padding: 60px;
  grid-column: 1 / -1;
}

/* ============================
   GLOBAL STYLES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ============================
   HEADER
   ============================ */
.item-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.back-btn, .home-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.back-btn:hover, .home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* ============================
   IMAGE GALLERY
   ============================ */
.image-gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.main-image-container {
    width: 100%;
    height: 450px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image-placeholder {
    text-align: center;
    color: #9ca3af;
}

.no-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.thumbnail.active {
    border-color: #3b82f6;
}

/* ============================
   DETAILS CARD
   ============================ */
.details-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.item-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.item-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.item-meta i {
    color: #9ca3af;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.item-description, .desired-trade {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
    white-space: pre-line;
}

.desired-trade {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* ============================
   OWNER CARD
   ============================ */
.owner-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.owner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.owner-info {
    flex: 1;
}

.owner-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.member-since {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.chat-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.owner-notice {
    padding: 0.875rem;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.owner-notice i {
    margin-right: 0.5rem;
}

/* ============================
   LOCATION CARD
   ============================ */
.location-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: #3b82f6;
}

.location-text {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.map-container {
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
}

.view-larger-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.view-larger-map:hover {
    color: #2563eb;
    gap: 0.75rem;
}

.pilot-area-badge {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 6px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

.pilot-area-badge i {
    margin-right: 0.5rem;
}

/* Show pilot badge only when it has content */
.pilot-area-badge:not(:empty) {
    display: block;
}

/* ============================
   SAFETY TIPS CARD
   ============================ */
.safety-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.safety-card .card-title {
    color: #92400e;
}

.safety-card .card-title i {
    color: #f59e0b;
}

.safety-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-tips li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #78350f;
    font-size: 0.875rem;
}

.safety-tips li:last-child {
    margin-bottom: 0;
}

.safety-tips i {
    color: #10b981;
    margin-top: 0.125rem;
}

/* ============================
   SOPHISTICATED FOOTER
   ============================ */
.cp-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #0f766e 100%);
    color: white;
    padding: 64px 0 32px;
    margin-top: 4rem;
    border-top: 3px solid #52b788;
}

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

.cp-footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #52b788;
    letter-spacing: 0.5px;
}

.cp-footer-col p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.9;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.cp-footer-col i {
    color: #52b788;
    width: 18px;
    margin-top: 4px;
}

.cp-social {
    display: flex;
    flex-direction: column;
}

.cp-social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.cp-social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(82, 183, 136, 0.15);
    border-radius: 50%;
    color: #52b788;
    transition: all 0.3s ease;
    border: 2px solid rgba(82, 183, 136, 0.3);
    text-decoration: none;
}

.cp-social-links a i {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

.cp-social-links a:hover {
    background: #52b788;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(82, 183, 136, 0.4);
}

.cp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cp-footer-bottom .cp-logo {
    transition: all 0.3s ease;
    display: inline-block;
}

.cp-footer-bottom .cp-logo:hover {
    transform: scale(1.05);
}

.cp-footer-bottom .cp-logo-img {
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(82, 183, 136, 0.3));
}

.cp-footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991px) {
    .item-title {
        font-size: 1.5rem;
    }
    
    .main-image-container {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .header-title {
        font-size: 1rem;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .details-card {
        padding: 1.5rem;
    }
    
    /* Footer responsive */
    .cp-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .cp-footer-col {
        align-items: center;
    }
    
    .cp-footer-col p {
        justify-content: center;
    }
    
    .cp-social {
        align-items: center;
    }
    
    .cp-social-links {
        justify-content: center;
    }
}