/* Global Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.fa-compass {
    color: #fe424d;
    font-size: 2rem;
}

.nav-link {
    color: #222222 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #fe424d !important;
}

/* Search Form Styles */
.search-input {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.input-group .search-input {
    border-right: none;
    border-radius: 25px 0 0 25px;
}

.search-input:focus {
    border-color: #fe424d;
    box-shadow: none; /* Remove default focus shadow */
    z-index: 3;
}

.btn-search {
    background-color: #fe424d;
    color: white;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group .btn-search {
    border-radius: 0 25px 25px 0;
    border: 2px solid #fe424d;
    border-left: none;
}

.btn-search:hover {
    background-color: #e63946;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 66, 77, 0.3);
}

.btn-search i {
    margin-right: 0.5rem;
}

/* Profile Icon */
.profile {
    color: #fe424d !important;
    font-size: 1.5rem !important;
    transition: transform 0.3s ease;
}

.profile:hover {
    transform: scale(1.1);
}

/* Footer Styles */
.f-info {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.f-info-links a {
    text-decoration: none;
    color: #adb5bd;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.f-info-links a:hover {
    color: #fe424d;
    text-decoration: none;
}

.f-info-socials i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.f-info-socials i:hover {
    color: #fe424d;
}

.f-info-links,
.f-info-brand, 
.f-info-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.5rem 0;
}

.f-info-brand {
    font-weight: 600;
    color: #dee2e6;
}

/* Card Styles */
.listing-card {
    border: none !important;
    margin-bottom: 2rem;
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 15px 15px 0 0 !important;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem !important;
}

.list-link {
    text-decoration: none;
    color: inherit;
}

.list-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-img-overlay {
    opacity: 0;
    background: linear-gradient(45deg, rgba(254, 66, 77, 0.8), rgba(230, 57, 70, 0.8));
    transition: opacity 0.3s ease;
}

.card-img-overlay:hover {
    opacity: 1;
}

/* Button Styles */
.btn-col {
    background-color: #fe424d !important;
    border: none !important;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-col:hover {
    background-color: #e63946 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 66, 77, 0.3);
}

.sub-btn {
    background-color: #fe424d !important;
    border: none !important;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sub-btn:hover {
    background-color: #e63946 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 66, 77, 0.3);
}

/* Show Page Styles */
.show-card {
    width: 100% !important;
    height: 400px !important;
    border-radius: 15px !important;
    object-fit: cover;
}

.nice-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Like Button */
.like-btn {
    height: 2.5rem !important;
    width: 2.5rem !important;
    font-size: 1.25rem;
    border: none;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fa-solid {
    color: #fe424d;
}

.hio {
    text-decoration: none;
    color: white;
}

/* Map Styles */
#map {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Filter Styles */
#filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}
.filter {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #fe424d;
}

.filter p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Tax Toggle */
.tax-toggle {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tax-toggle:hover {
    border-color: #fe424d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tax-info {
    display: none;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Icon Slider */
.icon-slider {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.icon-slider::-webkit-scrollbar {
    display: none;
}

.icons {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.icon-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.icon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Review Cards */
.review-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #fe424d;
    box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .fa-compass {
        font-size: 1.5rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-search {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-search i {
        margin-right: 0.25rem;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .show-card {
        height: 300px !important;
    }
    
    .listing-card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    #map {
        height: 300px;
    }
    
    .tax-toggle {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .icon-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .f-info {
        padding: 1.5rem 0;
    }
    
    .f-info-socials i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .f-info-links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.5rem !important;
    }
    
    .card-img-top {
        height: 180px !important;
    }
    
    .show-card {
        height: 250px !important;
    }
    
    .btn-col,
    .sub-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .like-btn {
        height: 2rem !important;
        width: 2rem !important;
        font-size: 1rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .f-info {
        padding: 1rem 0;
    }
    
    .f-info-socials i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .f-info-links a {
        margin: 0 0.25rem;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid #fe424d;
    outline-offset: 2px;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #181818;
  color: #f1f1f1;
}
body.dark-mode .navbar {
  background-color: #222 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
body.dark-mode a,
body.dark-mode .nav-link {
  color: #f1f1f1 !important;
}
body.dark-mode .nav-link:hover {
  color: #ffd166 !important;
}
body.dark-mode .container {
  background: transparent;
}
body.dark-mode .listing-card,
body.dark-mode .show-card,
body.dark-mode .nice-card,
body.dark-mode .review-card {
  background: #23272f !important;
  color: #f1f1f1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
}
body.dark-mode .card-body {
  background: transparent;
}
body.dark-mode .card-img-overlay {
  background: linear-gradient(45deg, rgba(30,30,30,0.8), rgba(40,40,40,0.8));
}
body.dark-mode .btn-col,
body.dark-mode .sub-btn {
  background-color: #ffd166 !important;
  color: #23272f !important;
  border: none;
}
body.dark-mode .btn-col:hover,
body.dark-mode .sub-btn:hover {
  background-color: #ffb700 !important;
  color: #23272f !important;
}
body.dark-mode .like-btn {
  background: #23272f;
  color: #ffd166;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
body.dark-mode .like-btn:hover {
  background: #ffd166;
  color: #23272f;
}
body.dark-mode .fa-solid {
  color: #ffd166;
}
body.dark-mode .search-input,
body.dark-mode .form-control {
  background: #23272f;
  color: #f1f1f1;
  border: 2px solid #444;
}
body.dark-mode .search-input:focus,
body.dark-mode .form-control:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 0.2rem rgba(255,209,102,0.25);
}
body.dark-mode .input-group .search-input {
  border-right: none;
}
body.dark-mode .btn-search {
  background-color: #ffd166;
  color: #23272f;
  border: none;
}
body.dark-mode .btn-search:hover {
  background-color: #ffb700;
  color: #23272f;
}
body.dark-mode .filter,
body.dark-mode .icon-item,
body.dark-mode .tax-toggle {
  background: #23272f;
  color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 2px solid #444;
}
body.dark-mode .filter:hover,
body.dark-mode .icon-item:hover,
body.dark-mode .tax-toggle:hover {
  border-color: #ffd166;
}
body.dark-mode .f-info {
  background-color: #181818;
  color: #ffd166;
}
body.dark-mode .f-info-links a,
body.dark-mode .f-info-socials i {
  color: #ffd166;
}
body.dark-mode .f-info-links a:hover,
body.dark-mode .f-info-socials i:hover {
  color: #ffb700;
}
body.dark-mode #map {
  border: 2px solid #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

/* Dark mode text colors */
body.dark-mode,
body.dark-mode p,
body.dark-mode span,
body.dark-mode label,
body.dark-mode li,
body.dark-mode td,
body.dark-mode th,
body.dark-mode .form-label,
body.dark-mode .form-text,
body.dark-mode .form-check-label,
body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode small {
  color: #f1f1f1 !important;
}
body.dark-mode .text-muted,
body.dark-mode .form-text,
body.dark-mode .tax-info {
  color: #b0b0b0 !important;
}
body.dark-mode .text-warning {
  color: #ffd166 !important;
}
body.dark-mode .text-danger {
  color: #ff6b6b !important;
}
body.dark-mode .text-success {
  color: #4caf50 !important;
}

/* Dark mode for details card and primary text */
body.dark-mode .card.bg-light {
  background: #23272f !important;
  color: #f1f1f1 !important;
  border: 1px solid #444 !important;
}
body.dark-mode .card-title.text-primary,
body.dark-mode .text-primary {
  color: #ffd166 !important;
}
body.dark-mode .card.bg-light .card-title,
body.dark-mode .card.bg-light .card-text,
body.dark-mode .card.bg-light p,
body.dark-mode .card.bg-light strong,
body.dark-mode .card.bg-light i {
  color: #f1f1f1 !important;
}
body.dark-mode .card.bg-light .text-muted {
  color: #b0b0b0 !important;
}
body.dark-mode .bg-light {
  background: #23272f !important;
  color: #f1f1f1 !important;
}

/* Dark mode for login/signup card and form */
body.dark-mode .card.shadow-lg,
body.dark-mode .card.shadow-lg .card-body {
  background: #23272f !important;
  color: #f1f1f1 !important;
  border: 1px solid #444 !important;
}
body.dark-mode .card.shadow-lg .form-label,
body.dark-mode .card.shadow-lg .form-control,
body.dark-mode .card.shadow-lg .form-check-label {
  color: #f1f1f1 !important;
}
body.dark-mode .card.shadow-lg .form-control {
  background: #181818 !important;
  border: 1.5px solid #444 !important;
}
body.dark-mode .card.shadow-lg .form-control:focus {
  border-color: #ffd166 !important;
  box-shadow: 0 0 0 0.2rem rgba(255,209,102,0.15) !important;
}
body.dark-mode .card.shadow-lg .btn-primary {
  background: #ffd166 !important;
  color: #23272f !important;
  border: none !important;
}
body.dark-mode .card.shadow-lg .btn-primary:hover {
  background: #ffb700 !important;
  color: #23272f !important;
}
body.dark-mode .card.shadow-lg .text-primary {
  color: #ffd166 !important;
}
body.dark-mode .card.shadow-lg .text-muted {
  color: #b0b0b0 !important;
}

/* Dark mode for reviews section */
body.dark-mode .card.review-card,
body.dark-mode .card.mb-4,
body.dark-mode .card-header,
body.dark-mode .card-body,
body.dark-mode .card.review-card .card-body {
  background: #23272f !important;
  color: #f1f1f1 !important;
  border: 1px solid #444 !important;
}
body.dark-mode .card-header {
  background: #181818 !important;
  color: #ffd166 !important;
  border-bottom: 1px solid #444 !important;
}
body.dark-mode .form-label,
body.dark-mode .form-check-label {
  color: #ffd166 !important;
}
body.dark-mode .form-control,
body.dark-mode textarea.form-control {
  background: #181818 !important;
  color: #f1f1f1 !important;
  border: 1.5px solid #444 !important;
}
body.dark-mode .form-control:focus,
body.dark-mode textarea.form-control:focus {
  border-color: #ffd166 !important;
  box-shadow: 0 0 0 0.2rem rgba(255,209,102,0.15) !important;
}
body.dark-mode .starability-slot label,
body.dark-mode .starability-result {
  color: #ffd166 !important;
}
body.dark-mode .btn-primary {
  background: #ffd166 !important;
  color: #23272f !important;
  border: none !important;
}
body.dark-mode .btn-primary:hover {
  background: #ffb700 !important;
  color: #23272f !important;
}