/* Lifestyle App Custom Styles */

/* Listing Cards */
.listing-card {
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Image Gallery */
.gallery-top {
    height: 400px;
    width: 100%;
}

.gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    background-color: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Rating Stars */
.rating-stars label {
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #f59e0b;
}

.rating-stars input:checked + label {
    color: #f59e0b;
}

/* Form Elements */
.form-radio:checked {
    background-color: #1DB954;
    border-color: #1DB954;
}

.form-checkbox:checked {
    background-color: #1DB954;
    border-color: #1DB954;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #d1d5db;
    transition: all 0.3s;
}

.dropzone-active {
    border-color: #1DB954;
    background-color: rgba(29, 185, 84, 0.05);
}

/* Image Previews */
.image-preview {
    position: relative;
    transition: all 0.3s;
}

.image-preview:hover {
    transform: scale(1.02);
}

.image-preview.selected {
    border: 2px solid #1DB954;
}

.image-preview .delete-btn {
    opacity: 0;
    transition: opacity 0.3s;
}

.image-preview:hover .delete-btn {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-top {
        height: 300px;
    }
    
    .gallery-thumbs {
        height: 80px;
    }
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition {
    transition: all 0.3s ease;
}
/* Additional utility classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    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: rotate(360deg); }
}

/* Transition effects */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modern lifestyle layout */
.lifestyle-shell {
    background:
        radial-gradient(900px 400px at 10% -10%, rgba(79, 70, 229, 0.16), transparent 60%),
        radial-gradient(800px 300px at 85% 10%, rgba(14, 165, 233, 0.12), transparent 55%),
        #f8fafc;
}

.lifestyle-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1f2937, #312e81 55%, #4f46e5);
    color: #fff;
    border-radius: 28px;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.lifestyle-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 240px at 85% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.lifestyle-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .lifestyle-hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

.lifestyle-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.lifestyle-title {
    font-size: clamp(2.2rem, 2.2rem + 1.2vw, 3.5rem);
    font-weight: 700;
    margin-top: 0.75rem;
    line-height: 1.05;
}

.lifestyle-lead {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}

.lifestyle-search {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.lifestyle-search input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
}

.lifestyle-search button {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.3);
}

.lifestyle-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.35);
}

.lifestyle-chip-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.lifestyle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.lifestyle-hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.lifestyle-metrics {
    display: grid;
    gap: 1rem;
}

.lifestyle-metric {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

.lifestyle-metric span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.lifestyle-metric strong {
    font-size: 1.4rem;
    font-weight: 700;
}

.lifestyle-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin: 2.5rem 0 1.5rem;
}

.lifestyle-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lifestyle-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.lifestyle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.lifestyle-card-media {
    position: relative;
}

.lifestyle-card-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.lifestyle-card-body {
    padding: 1.4rem;
    display: grid;
    gap: 0.75rem;
}

.lifestyle-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.lifestyle-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.9rem;
}

.lifestyle-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
}

.lifestyle-card-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

.lifestyle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lifestyle-tag {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
}

.lifestyle-detail-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .lifestyle-detail-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
    }
}

.lifestyle-detail-media img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.lifestyle-panel {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.lifestyle-panel h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.lifestyle-info-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
    color: #475569;
    font-size: 0.92rem;
}

.lifestyle-section {
    margin-top: 2.5rem;
}

.lifestyle-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.lifestyle-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lifestyle-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.lifestyle-review-form {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.lifestyle-review-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.lifestyle-empty {
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}
