 /* Base Styles */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1e1e1e;
    --accent-color: #ff3366;
    --accent-hover: #ff4d7d;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --star-inactive: #444444;
    --star-active: #ff9500;
    --status-draft: #773300;
    --status-draft-text: #ffcc99;
    --status-published: #005500;
    --status-published-text: #99ff99;
    --status-featured: #1DA1F2;
    --status-featured-text: white;
    --status-boosted: #8247e5;
    --status-boosted-text: white;
    --status-new: rgb(255, 0, 238);
    --status-new-text: white;
    --status-premium: #ffc107;
    --status-premium-text: #333333;
    --premium-overlay-bg: rgba(0, 0, 0, 0.85);
    --premium-badge-bg: rgba(255, 193, 7, 0.2);
    --premium-badge-text: #ffc107;
    --premium-button-bg: #ffc107;
    --premium-button-text: #333333;
}

body {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    touch-action: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
}

/* Swipe Container Styles */
.swipe-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    touch-action: none;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.swipe-container .exit {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: flex-end;
    background-color: #00000063;
    padding: 8px 5px;
    position: fixed;
    top: 0;
    right: 0px;
    z-index: 999;
    cursor: pointer;
    align-items: flex-start;
    border-bottom-left-radius: 27px;
}

.swipe-container .exit svg {
    
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important; /* Prevent shrinking */
    min-height: 24px !important;
    display: block; /* Ensure it's treated as a block element */
    flex-shrink: 0; /* Prevent flexbox from shrinking it */
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));
    
}

.swipe-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swipe-item {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    overflow: hidden;
}

.swipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Image Container and Pagination */
.swipe-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.horizontal-swipe-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100% !important;
    transition: transform 0.3s ease-out;
}

.horizontal-swipe-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.pagination {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.pagination-dot.active {
    background: #fff;
}

/* Premium Content Styling */
.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--premium-overlay-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 5;
}

.premium-image {
    position: relative;
    filter: blur(10px);
}

.premium-content-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--premium-badge-bg);
    color: var(--premium-badge-text);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.premium-content-badge svg {
    color: var(--premium-badge-text);
}

.unlock-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--premium-button-bg);
    color: var(--premium-button-text);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unlock-button:hover {
    background-color: #e5ac00;
}

.unlock-button.insufficient-tokens {
    background-color: var(--bg-secondary);
    color: var(--premium-badge-text);
    border: 1px solid var(--premium-badge-text);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--premium-badge-bg);
    color: var(--premium-badge-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 6px;
    margin-left: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-featured {
    background-color: var(--status-featured);
    color: var(--status-featured-text);
}

.badge-boosted {
    background-color: var(--status-boosted);
    color: var(--status-boosted-text);
}

.badge-new {
    background-color: var(--status-new);
    color: var(--status-new-text);
}

.badge-premium {
    background-color: var(--status-premium);
    color: var(--status-premium-text);
}

.badge-icon {
    margin-right: 4px;
}

/* Info Section */
.swipe-item .info {
    position: absolute;
    bottom: 40px;
    left: 20px;
    z-index: 2;
    max-width: 78%;
}

.info .name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

.verified-badge {
    margin-left: 5px;
    color: #1DA1F2;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.hashtag {
    color: white;
    font-size: 13px;
    user-select: none;
    -webkit-user-select: none;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

.hashtag a {
    color: var(--accent-color);
    text-decoration: none;
    
}

/* Description Expanded/Collapsed */
.description {
    display: inline-flex;
    align-items: flex-end;
}

.desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s ease;
}

.desc-text p {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 13px;
    color: #fff;
}

.desc-text.expanded {
    -webkit-line-clamp: unset;
    min-width: 300px;
    max-width: 300px;
}

.more-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
    padding: 4px;
    font-size: 12px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    min-width: 150px;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.07) 16%,
        transparent 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.image-overlay.text-exp {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%);
}

/* Profile and Action Buttons */
.profile {
    position: absolute;
    top: 34%;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    z-index: 2;
}

.profile .search {

    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: flex-end;
    cursor: pointer;

    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color:rgba(255, 255, 255, 0.25);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);

}

.profile .search svg {
    
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important; /* Prevent shrinking */
    min-height: 30px !important;
    display: block; /* Ensure it's treated as a block element */
    flex-shrink: 0; /* Prevent flexbox from shrinking it */
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));


    
}

.profile .profile-img {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile .profile-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 100%;
}

.profile .profile-img span {
   /* background-color: red; */
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    border-radius: 100%;
    color: #fff;
    align-items: center;
    font-size: 18px;
    margin-top: -8px;
}

.profile .fav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile .fav button {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile .fav button i {
    font-size: 24px;
}

.profile .fav button.active i {
    color: var(--accent-color);
}

.profile .fav span {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

.profile .profile-price span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
    background-color: transparent;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ADDED REVIEW BUTTON STYLING */
.profile .review-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile .review-btn {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile .review-btn i {
    font-size: 24px;
}

.profile .review-indicator span {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

/* Lists and Stats */
.desc-text .list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 8px 0;
}

.desc-text .list div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.desc-text .list div i,
.desc-text .list div img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    color: white;
}

.desc-text .list div .number {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    min-width: 50px;
}

/* Call To Action Button */
.desc-text span.button {
    background-color: #009ff4;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px;
    display: block;
    width: 100%;
    margin: 8px auto 0;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.title-detail {
    /*font-size: 0.7rem;*/
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    /*color: var(--text-secondary);*/
}

/* Expanded Post Details */
.post-details {
    background-color: rgba(0, 0, 0, 0.17);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.service-location {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9rem;
}

.location-label {
    color: var(--text-secondary);
    margin-right: 10px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    gap: 5px;
}

.location-incall {
    background-color: #2980b9;
    color: white;
}

.location-outcall {
    background-color: #27ae60;
    color: white;
}

.location-both {
    background-color: #8e44ad;
    color: white;
}

/* Phone Section */
.phone-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color:rgba(255, 255, 255, 0.25);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

.action-buttons-row {
    display: flex;
    gap: 8px;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

/* Reviews Section */
.reviews-preview {
    margin-top: 16px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviews-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.reviews-header a {
    font-size: 12px;
    color: var(--accent-color);
    text-decoration: none;
}

.star-display {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
}

.star-display i {
    font-size: 12px;
}

.star-active {
    color: var(--star-active);
}

.star-inactive {
    color: var(--star-inactive);
}

.review-preview {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.review-author {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Token Balance Display */
.token-display {
    position: absolute;
    top: 16px;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.token-icon {
    color: var(--premium-badge-text);
}

.token-count {
    font-weight: 600;
    font-size: 14px;
}

/* Modal for Unlock Confirmation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--bg-secondary);
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

/* ADDED REVIEW MODAL STYLING */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal-container {
    background-color: var(--bg-secondary);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-modal-overlay.active .review-modal-container {
    transform: scale(1);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.review-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: bold;
}

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

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating i {
    color: var(--star-inactive);
    font-size: 16px;
}

.review-rating i.active {
    color: var(--star-active);
}

.review-content {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Notification styles */
.notification {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(46, 204, 113, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

.notification.error {
    background-color: rgba(255, 51, 102, 0.7);
}

/* Additional styling for "This is Ad" label */
.this-is-ad {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 999;
    background-color: #ddd;
    opacity: 0.7;
    display: inline-block;
    text-align: right;
    border: 1px solid #ddd;
    padding: 4px 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #5f5f5f;
    border-radius: 32px;
}

/* Desktop controls */
.desktop-controls {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 999;
}

.desktop-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.desktop-controls button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 740px) {
    .desktop-controls {
        display: none;
    }
}

/* App logo */
.logo {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

/* Desktop scroll indicator */
.desktop-scroll-indicator {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.scroll-dot.active {
    background-color: #fff;
    transform: scale(1.5);
}

/* Add animation for slide transitions */
.swipe-wrapper.animating {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Empty state when no posts available */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

.empty-state svg {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Highlight animation for returning to post */
@keyframes highlightPost {
    0% { box-shadow: 0 0 0 rgba(255, 51, 102, 0); }
    50% { box-shadow: 0 0 15px rgba(255, 51, 102, 0.8); }
    100% { box-shadow: 0 0 0 rgba(255, 51, 102, 0); }
}

.highlight-post {
    animation: highlightPost 1.5s ease-out;
    z-index: 3;
    position: relative;
}

.change-location {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    user-select: none;
    -webkit-user-select: none;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
    margin-left: 0px;
}

.change-location a {
    color: var(--accent-color);
    text-decoration: none;
    
}

/* Add these styles to home.css to ensure proper footer display */

/* Adjust swipe container to account for footer */
.swipe-container {
    bottom: 60px; /* Match the height of the nav-bar in footer.php */
}

/* Ensure desktop controls don't overlap with footer */
.desktop-controls {
    bottom: 70px;
}

/* Style adjustments for footer on home page */
.nav-bar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001; /* Ensure it's above other elements */
}

/* Make sure footer elements are visible against the dark background */
.nav-bar .nav-item {
    color: #ffffff;
}

/* Highlight active nav item more distinctly */
.nav-bar .nav-item.active {
    color: #ff3366;
    font-weight: 700;
}

/* Adjust mobile responsiveness */
@media (max-width: 600px) {
    .swipe-container {
        bottom: 60px; /* Match footer height */
        /* Ensure content is accessible in viewport */
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .desktop-controls {
        display: none; /* Hide desktop controls on mobile */
    }
    
    /* Adjust position for better visibility on mobile */
    .swipe-item .info {
        bottom: 65px; /* Increased from 40px to ensure visibility */
    }
    
    /* Adjust description expansion on mobile */
    .desc-text.expanded {
        -webkit-line-clamp: unset;
        min-width: 50px;
        max-width: 90%; /* Better mobile width constraint */
        padding-bottom: 30px; /* Ensure space at bottom */
    }

    /* Make Show button more visible and touchable */
    .more-btn {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        display: inline-block;
        font-weight: bold;
        min-width: 80px;
        border-radius: 4px;
        position: relative;
        z-index: 10; /* Ensure button is above other elements */
        margin-top: 8px; /* Add space above button */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2); /* Better touch feedback */
    }
    
    /* Fix for Safari viewport issues */
    @supports (-webkit-touch-callout: none) {
        .swipe-container {
            /* Safari-specific adjustments */
            padding-bottom: max(env(safe-area-inset-bottom, 30px), 30px);
        }
        
        .swipe-item .info {
            bottom: 80px; /* Extra space for Safari */
        }
        
        /* Ensure description fits in Safari viewport */
        .description {
            margin-bottom: 15px;
        }
    }
}

.desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s ease;
}

.desc-text p {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 13px;
    color: #fff;
}

.desc-text.expanded {
    -webkit-line-clamp: unset;
}

.image-overlay.text-exp {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%);
}
