/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.editor-toolbar button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  outline: none;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editor-toolbar button:hover, .editor-toolbar button:focus {
  background: #eaf6ff;
  border-color: #3498db;
  color: #2980b9;
  transform: scale(1.08);
}
.editor-toolbar button:active {
  background: #d0eaff;
  border-color: #2980b9;
}
.editor-toolbar button b,
.editor-toolbar button i {
  font-size: 1.1em;
}
/* Sosyal Medya Paylaşım Butonları */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5rem 0;
  align-items: center;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  padding: 0;
}
.share-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}
.share-btn.whatsapp { background: #25D366; }
.share-btn.whatsapp svg { color: #fff; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.twitter svg { color: #fff; }
.share-btn.facebook { background: #1877f3; }
.share-btn.facebook svg { color: #fff; }
.share-btn.telegram { background: #0088cc; }
.share-btn.telegram svg { color: #fff; }
.share-btn.copy-link { background: #555; }
.share-btn.copy-link svg { color: #fff; }

.share-btn:hover, .share-btn:focus {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  filter: brightness(1.08);
  outline: none;
}

@media (max-width: 600px) {
  .share-buttons {
    gap: 8px;
    justify-content: flex-start;
  }
  .share-btn {
    width: 38px;
    height: 38px;
  }
  .share-btn svg {
    width: 20px;
    height: 20px;
  }
  .listing-detail {
    flex-wrap: nowrap !important;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    gap: 0.3rem;
  }
  .listing-detail .info-item {
    white-space: nowrap;
    flex: 0 0 auto;
    padding-right: 4px;
  }
}
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    background: #f5f5f5;
    color: #222;
}

.header-container h1 {
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.nav-links li a:hover {
    background-color: #ddd;
    color: #333;
}

.nav-links li a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.4rem;
}

.notification {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.bottom-line {
    margin: 0 auto;
    width: 95%;
    height: 2px;
    background: linear-gradient(to bottom, #ccc 0%, #ccc 35%, #fff 35%, #fff 100%);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-section h2,
.hero-text h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
   
}

.hero-section p,
.hero-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin: 1rem 0;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
}

.btn-lost,
.btn-delete {
    background-color: #e74c3c;
    color: #fff;
}

.btn-found {
    background-color: #2ecc71;
    color: #fff;
}

.btn-search,
.btn-details,
.btn-reply {
    background-color: #3498db;
    color: #fff;
}

.btn:hover,
.btn-lost:hover,
.btn-found:hover,
.btn-search:hover,
.btn-details:hover,
.btn-reply:hover,
.btn-delete:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-search:hover,
.btn-details:hover,
.btn-reply:hover {
    background-color: #2980b9;
}

.btn-found:hover {
    background-color: #27ae60;
}

.btn-lost:hover,
.btn-delete:hover {
    background-color: #c82333;
}

/* Form Elements */
.form-group {
    margin-bottom: 0.5rem;
    flex: auto;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control,
.form-control.search-input,
.form-control.search-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  appearance: none; /* iOS/Safari için varsayılan oku gizler */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}

/* Odaklanınca */
select:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
/* Tarih input stili */
input[type="datetime-local"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
  appearance: none; /* Android için */
  -webkit-appearance: none; /* iOS için */
  -moz-appearance: none;
}

/* iOS'ta mavi ok görünmesini engelle */
input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  opacity: 0.7;
  cursor: pointer;
}

/* Odaklanınca */
input[type="datetime-local"]:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-control[type="file"] {
    padding: 0.5rem;
}

/* Toast Notifications */
.toast,
.alert-error,
.alert-success {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    z-index: 11000;
    max-width: 300px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast {
    opacity: 0;
}

.toast.show {
    opacity: 1;
}

.alert-error.hide,
.alert-success.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast-success,
.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.toast-error,
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form Section */
.form-section,
.search-section,
.content-section,
.listing-details {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section h3,
.content-section h3,
.listing-details h3,
.wizard-step h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.form-section p,
.content-section p,
.listing-details p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Index Page */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.category-card {
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    width: 150px;
    transition: box-shadow 0.3s;
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border-radius: 5px;
}

.category-card p {
    font-size: 1rem;
    color: #333;
}

.category-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin: 2rem 0 1rem;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.listing-card,
.match-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

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

.listing-card {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    margin: 1rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #fff;
    text-align: center;
}

.status-badge.lost {
    background-color: #dc3545;
}

.status-badge.found {
    background-color: #28a745;
}

.status-main {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.status-sub {
    padding: 2px 4px;
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    background: #fff;
    color: #333;
    border-radius: 2px;
    margin-top: 4px;
}

.card-content {
    padding: 1.5rem;
}

.card-content h5 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-content p,
.description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.success-images {
    display: flex;
    gap: 10px;
}

.success-images img {
    width: 50%;
    height: 150px;
    object-fit: cover;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #151516, #27292c);
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

footer nav ul {
    display: flex;
    gap: 1.5rem;
}

footer nav ul li a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

footer nav ul li a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}



.listing-detail {
    display: flex;
    gap: 1rem;
    justify-content: left;
    margin-top: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    margin-bottom: 0.8rem;
}

.listing-details h4 {
    font-size: 1.3rem;
    color: #333;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: #eee;
    padding: 1rem;
    border-radius: 10px;
    justify-content: center;
}

.image-gallery img,
.image-gallery svg {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

.image-gallery img:hover,
.image-gallery svg:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.image-modal-content {
    background: none;
    padding: 0;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-nav.prev {
    left: 10px;
}

.modal-nav.next {
    right: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.image-modal .close {
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.image-modal .close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Login Page */
.form-section p a {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s;
}

.form-section p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ajax-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-messages {
    min-height: 2rem;
    text-align: center;
    font-size: 1rem;
    color: #555;
}

/* About Page */
.content-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Admin Page */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #007bff;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.page-link:hover {
    background-color: #007bff;
    color: #fff;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Post Page */
.progress-bar-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    width: 33.33%;
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

/* Profile Page */
.user-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.user-info p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.message-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 5px;
    transition: box-shadow 0.3s;
}

.message-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-card.unread {
    background-color: #e7f1ff;
    border-left: 5px solid #007bff;
}

.message-card.read {
    background-color: #fff;
}

.message-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* Terms of Use */
.terms-of-use {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.8;
    color: #333;
}

.terms-of-use h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.terms-of-use h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: #444;
}

.terms-of-use ul {
    padding-left: 1.2rem;
    list-style: disc;
}

/* Autocomplete */
.autocomplete-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion:focus,
.autocomplete-suggestion[aria-selected="true"] {
    background: #e0e0e0;
    outline: none;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more-container .btn {
    padding: 10px 20px;
    font-size: 16px;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-option:hover,
.btn-option:focus {
    border-color: #007bff;
    background: #f8f9fa;
    outline: none;
}

.btn-option.selected {
    border-color: #007bff;
    background: #e7f1ff;
}

.btn-option svg {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

.btn-option span {
    font-size: 14px;
    text-align: center;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s;
}

.social-links a svg {
  width: 24px;
  height: 24px;
  color: white;
}

.social-links .instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

.social-links .twitter {
  background-color: #000; /* X is now black */
}

.social-links .facebook {
  background-color: #1877f2;
}

.social-links a:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}
/* Responsive Design */
@media (max-width: 768px) {
.form-section,
.search-section,
.content-section,
.listing-details {

    padding: 1rem;
    
}


    
    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .header-container h1 a {
        font-size: 1rem;
    }

    .header-container h1 a img {
        max-height: 40px;
        background-color: #000;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.6rem;
        padding: 0.4rem 0.6rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.6rem;
    }

    .hero-section,
    .hero-text {
        padding: 1.5rem 1rem;
    }

    .hero-section h2,
    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-section p,
    .hero-text p {
        font-size: 0.9rem;
    }

    .form-section,
    .search-section {
        padding: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control,
    .form-control.search-input,
    .form-control.search-select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .wizard-step h3,
    .content-section h3,
    .form-section h3 {
        font-size: 1.4rem;
    }

    .wizard-buttons,
    .action-buttons,
    .form-actions,
    .message-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .form-group {
        min-width: 100%;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-card,
    .match-card {
        max-width: 100%;
        margin: 0.5rem;
    }

    .listing-card img,
    .match-card img,
    .preview-image,
    .success-images img {
        height: 220px;
    }

    .card-content h5 {
        font-size: 1.1rem;
    }

    .card-content p,
    .description,
    .message-card .card-content p {
        font-size: 0.85rem;
    }

    .info-item {
        font-size: 0.8rem;
    }

    .user-info {
        padding: 1rem;
    }

    .message-card {
        padding: 1rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .image-gallery img,
    .image-gallery svg {
        width: 150px;
        height: 150px;
    }

    .toast,
    .alert-error,
    .alert-success {
        max-width: 250px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .image-gallery img,
    .image-gallery svg {
        width: 100%;
        height: 120px;
    }

    #modalImage {
        max-height: 70vh;
    }

    .modal-nav {
        padding: 10px;
        font-size: 20px;
    }

    .listing-detail {
    flex-wrap: nowrap !important;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
    .wizard-step h3,
    .content-section h3,
    .form-section h3 {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control,
    .form-control.search-input,
    .form-control.search-select {
        font-size: 0.85rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .listing-card img,
    .match-card img,
    .preview-image,
    .success-images img {
        height: 200px;
    }

    .card-content h5 {
        font-size: 1rem;
    }

    .user-info p {
        font-size: 0.9rem;
    }

    .message-card .card-content p {
        font-size: 0.8rem;
    }

    .image-gallery img,
    .image-gallery svg {
        max-width: 120px;
        height: 120px;
    }

    .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .toast,
    .alert-error,
    .alert-success {
        max-width: 200px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}