/**
 * Paraty Tours - Frontend Styles
 */

/* Tours Grid */
.pt-tours-grid {
    display: grid;
    gap: 30px;
}

.pt-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pt-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pt-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .pt-columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .pt-columns-3,
    .pt-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .pt-tours-grid { grid-template-columns: 1fr; }
}

/* Tour Card */
.pt-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.pt-tour-thumbnail {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.pt-tour-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pt-tour-card:hover .pt-tour-thumbnail img {
    transform: scale(1.05);
}

.pt-tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b35;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pt-tour-content {
    padding: 20px;
}

.pt-tour-category {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pt-tour-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pt-tour-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.pt-tour-title a:hover {
    color: #ff6b35;
}

.pt-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.pt-tour-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pt-tour-meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pt-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pt-tour-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.pt-tour-price .pt-price-label {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.pt-tour-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.pt-tour-btn:hover {
    background: #e55a2b;
    color: #fff;
}

/* Single Tour */
.pt-single-tour {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.pt-tour-header {
    margin-bottom: 30px;
}

.pt-tour-gallery {
    margin-bottom: 30px;
}

.pt-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.pt-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.pt-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.pt-gallery-thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.pt-gallery-thumb:hover,
.pt-gallery-thumb.active {
    opacity: 1;
}

.pt-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-tour-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .pt-tour-info-grid {
        grid-template-columns: 1fr;
    }
}

.pt-tour-description {
    line-height: 1.8;
    color: #444;
}

/* Tour Details Box */
.pt-tour-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.pt-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.pt-detail-label {
    color: #666;
    font-weight: 500;
}

.pt-detail-value {
    font-weight: 600;
    color: #1a1a1a;
}

/* Booking Form */
.pt-booking-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: clamp(15px, 5%, 25px);
    position: sticky;
    top: 30px;
    container-type: inline-size;
    container-name: pt-booking;
}

.pt-booking-form-title {
    font-size: clamp(16px, 5cqi, 20px);
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b35;
}

/* Frontend Calendar */
.pt-calendar {
    margin-bottom: 25px;
    container-type: inline-size;
    container-name: pt-calendar;
}

.pt-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 5px;
}

.pt-calendar-title {
    font-weight: 600;
    font-size: clamp(12px, 4cqi, 16px);
    white-space: nowrap;
}

.pt-calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    padding: clamp(4px, 2cqi, 8px) clamp(6px, 3cqi, 12px);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: clamp(12px, 3.5cqi, 16px);
}

.pt-calendar-nav-btn:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.pt-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(2px, 1cqi, 5px);
    margin-bottom: 10px;
}

.pt-calendar-weekdays span {
    text-align: center;
    font-weight: 600;
    font-size: clamp(9px, 3cqi, 12px);
    color: #666;
    padding: clamp(2px, 1.5cqi, 8px) clamp(1px, 0.5cqi, 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pt-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(2px, 1cqi, 5px);
}

.pt-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: clamp(4px, 2cqi, 8px);
    cursor: pointer;
    transition: all 0.2s;
    font-size: clamp(11px, 3.5cqi, 14px);
}

.pt-cal-day:hover:not(.pt-cal-empty):not(.pt-cal-past):not(.pt-cal-unavailable) {
    border-color: #ff6b35;
    background: #fff5f0;
}

.pt-cal-day.pt-cal-empty {
    background: transparent;
    border: none;
    cursor: default;
}

.pt-cal-day.pt-cal-past {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.pt-cal-day.pt-cal-unavailable {
    background: #f8f8f8;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.pt-cal-day.pt-cal-available {
    background: #f0fff4;
    border-color: #28a745;
}

.pt-cal-day.pt-cal-special {
    background: #fff8e1;
    border-color: #ffc107;
}

.pt-cal-day.pt-cal-selected {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.pt-cal-day .pt-cal-price {
    font-size: clamp(8px, 2.5cqi, 10px);
    margin-top: 2px;
}

/* Calendar Container Queries for small containers */
@container pt-calendar (max-width: 280px) {
    .pt-calendar-weekdays span {
        font-size: 8px;
        padding: 2px 0;
    }
    .pt-cal-day {
        font-size: 10px;
        border-radius: 4px;
    }
    .pt-calendar-title {
        font-size: 11px;
    }
    .pt-calendar-nav-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
    .pt-calendar-weekdays,
    .pt-calendar-days {
        gap: 2px;
    }
}

@container pt-calendar (max-width: 220px) {
    .pt-calendar-weekdays span {
        font-size: 7px;
        padding: 1px 0;
    }
    .pt-cal-day {
        font-size: 9px;
        border-radius: 3px;
    }
    .pt-calendar-title {
        font-size: 10px;
    }
    .pt-calendar-nav-btn {
        padding: 3px 5px;
        font-size: 10px;
    }
    .pt-calendar-weekdays,
    .pt-calendar-days {
        gap: 1px;
    }
}

/* Hide calendar prices when option is enabled */
.pt-hide-calendar-prices .pt-cal-price,
.pt-hide-calendar-prices .pt-cal-day .pt-cal-price,
.pt-hide-calendar-prices .pt-calendar-days .pt-cal-day .pt-cal-price,
.pt-calendar.pt-hide-calendar-prices .pt-cal-price,
.pt-booking-calendar.pt-hide-calendar-prices .pt-cal-price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Guest Selection */
.pt-guests-selection {
    margin-bottom: 25px;
    container-type: inline-size;
    container-name: pt-guests;
}

.pt-guests-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: clamp(14px, 5cqi, 18px);
}

.pt-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(10px, 4cqi, 15px) 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.pt-guest-row:last-child {
    border-bottom: none;
}

.pt-guest-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.pt-guest-type {
    font-weight: 600;
    font-size: clamp(12px, 4cqi, 16px);
}

.pt-guest-type small {
    font-size: clamp(10px, 3cqi, 13px);
}

.pt-guest-price {
    font-size: clamp(11px, 3.5cqi, 13px);
    color: #666;
}

.pt-guest-counter {
    display: flex;
    align-items: center;
    gap: clamp(8px, 3cqi, 15px);
    flex-shrink: 0;
}

.pt-counter-btn {
    --pt-icon-size: 16px;
    width: calc(var(--pt-icon-size) * 2.2);
    height: calc(var(--pt-icon-size) * 2.2);
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: var(--pt-icon-size);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Guest Selection Container Queries */
@container pt-guests (max-width: 280px) {
    .pt-guest-row {
        flex-wrap: wrap;
    }
    .pt-guest-info {
        width: 100%;
        margin-bottom: 8px;
    }
    .pt-guest-counter {
        width: 100%;
        justify-content: center;
    }
}

.pt-counter-btn:hover:not(:disabled) {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.pt-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pt-counter-btn i,
.pt-counter-btn svg {
    line-height: 1;
}

.pt-counter-btn svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pt-counter-btn:hover:not(:disabled) svg {
    fill: currentColor;
}

.pt-counter-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Price Summary */
.pt-price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pt-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pt-price-row.pt-price-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
    font-weight: 700;
}

/* Submit Button */
.pt-submit-booking {
    width: 100%;
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.pt-submit-booking:hover {
    background: #e55a2b;
}

.pt-submit-booking:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Contact Info */
.pt-contact-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.pt-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pt-contact-item:last-child {
    margin-bottom: 0;
}

.pt-contact-item svg {
    width: 20px;
    height: 20px;
    fill: #ff6b35;
}

.pt-contact-item a {
    color: #1a1a1a;
    text-decoration: none;
}

.pt-contact-item a:hover {
    color: #ff6b35;
}

/* Maps Link */
.pt-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285f4;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.pt-maps-link:hover {
    background: #3367d6;
    color: #fff;
}

/* Loading */
.pt-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: pt-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes pt-spin {
    to { transform: rotate(360deg); }
}

/* No Tours Message */
.pt-no-tours {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* ==============================================
   Elementor Widget Styles
   ============================================== */

/* Tour Details Widget - Layouts */
.pt-details-list .pt-detail-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pt-details-list .pt-detail-item:last-child {
    border-bottom: none;
}

.pt-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pt-details-inline .pt-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-details-grid {
    display: grid;
    gap: 20px;
}

.pt-details-grid.pt-details-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pt-details-grid.pt-details-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pt-details-grid.pt-details-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .pt-details-grid.pt-details-columns-3,
    .pt-details-grid.pt-details-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pt-details-grid {
        grid-template-columns: 1fr;
    }
    .pt-details-inline {
        flex-direction: column;
    }
}

.pt-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff5f0;
    border-radius: 50%;
    color: #ff6b35;
    flex-shrink: 0;
    margin-right: 12px;
}

.pt-detail-icon svg {
    fill: currentColor;
}

.pt-detail-content {
    display: flex;
    flex-direction: column;
}

.pt-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 2px;
}

.pt-detail-value {
    font-weight: 600;
    color: #1a1a1a;
}

.pt-detail-price .pt-detail-value {
    font-size: 24px;
    color: #ff6b35;
}

.pt-price-suffix {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Tour Gallery Widget */
.pt-gallery-container {
    position: relative;
}

/* Grid Layout */
.pt-gallery-grid {
    display: grid;
    gap: 10px;
}

.pt-gallery-columns-1 { grid-template-columns: 1fr; }
.pt-gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pt-gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pt-gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pt-gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.pt-gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
    .pt-gallery-columns-5,
    .pt-gallery-columns-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .pt-gallery-columns-4,
    .pt-gallery-columns-5,
    .pt-gallery-columns-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .pt-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Masonry Layout */
.pt-gallery-masonry {
    columns: 3;
    column-gap: 10px;
}

.pt-gallery-masonry.pt-gallery-columns-2 { columns: 2; }
.pt-gallery-masonry.pt-gallery-columns-4 { columns: 4; }

.pt-gallery-masonry .pt-gallery-item {
    break-inside: avoid;
    margin-bottom: 10px;
    height: auto !important;
}

@media (max-width: 768px) {
    .pt-gallery-masonry { columns: 2; }
}

@media (max-width: 576px) {
    .pt-gallery-masonry { columns: 1; }
}

/* Gallery Item */
.pt-gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.pt-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    z-index: 1;
    pointer-events: none;
}

.pt-gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.pt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pt-gallery-masonry .pt-gallery-item img {
    height: auto;
}

.pt-gallery-item:hover img {
    transform: scale(1.05);
}

.pt-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pt-gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    color: #fff;
    background: rgba(255, 107, 53, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.pt-gallery-item:hover .pt-gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}

/* Carousel Layout */
.pt-gallery-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.pt-gallery-carousel {
    display: flex;
    transition: transform 0.3s ease;
}

.pt-gallery-carousel .pt-gallery-item {
    flex-shrink: 0;
    margin: 0 5px;
}

.pt-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pt-gallery-nav-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.pt-gallery-prev {
    left: 10px;
}

.pt-gallery-next {
    right: 10px;
}

.pt-gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.pt-gallery-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.pt-gallery-pagination .dot.active {
    background: #ff6b35;
}

/* Gallery Video Item */
.pt-gallery-video-item {
    background: #000;
}

.pt-gallery-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.pt-gallery-video-wrapper iframe,
.pt-gallery-video-wrapper .pt-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pt-video-thumbnail {
    object-fit: cover;
}

/* Video fallback when no thumbnail */
.pt-gallery-video-wrapper:not(:has(.pt-video-thumbnail)) {
    background: #1a1a1a;
}

.pt-gallery-video-wrapper:not(:has(.pt-video-thumbnail)) .pt-video-play-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Video Play Button (Main View) */
.pt-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.pt-video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.pt-video-play-btn {
    width: 100px;
    height: 100px;
    background: rgba(255, 107, 53, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pt-video-play-btn:hover {
    background: #ff6b35;
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
}

.pt-video-play-btn svg {
    margin-left: 5px;
}

/* Only apply hover effects in grid/masonry layouts, not in featured main */
.pt-gallery-grid .pt-gallery-video-wrapper,
.pt-gallery-masonry .pt-gallery-video-wrapper {
    cursor: pointer;
}

.pt-gallery-grid .pt-gallery-video-wrapper iframe,
.pt-gallery-masonry .pt-gallery-video-wrapper iframe {
    pointer-events: none;
    transition: pointer-events 0.3s;
}

.pt-gallery-grid .pt-gallery-video-item:hover .pt-gallery-video-wrapper iframe,
.pt-gallery-masonry .pt-gallery-video-item:hover .pt-gallery-video-wrapper iframe {
    pointer-events: auto;
}

.pt-gallery-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Only show overlay effects in grid/masonry layouts */
.pt-gallery-grid .pt-gallery-video-item:hover .pt-gallery-video-overlay,
.pt-gallery-masonry .pt-gallery-video-item:hover .pt-gallery-video-overlay {
    opacity: 0;
}

.pt-gallery-play-icon {
    color: #fff;
    background: rgba(255, 107, 53, 0.9);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pt-gallery-video-label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Old styles kept for backward compatibility */
.pt-gallery-video-link:hover .pt-gallery-play-icon {
    background: #ff6b35;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Featured Layout - Main + Thumbnails */
.pt-gallery-featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pt-gallery-main-wrapper {
    position: relative;
}

.pt-gallery-main {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Main Navigation Buttons */
.pt-main-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.pt-main-nav-btn:hover {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
}

.pt-main-nav-btn svg {
    width: 26px;
    height: 26px;
}

.pt-main-prev {
    left: 20px;
}

.pt-main-next {
    right: 20px;
}

.pt-gallery-main-item {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.pt-gallery-main-item img,
.pt-gallery-main-item .pt-gallery-video-wrapper,
.pt-gallery-main-item .pt-gallery-map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-gallery-main-item .pt-gallery-video-wrapper,
.pt-gallery-main-item .pt-gallery-map-wrapper {
    padding-top: 0;
    cursor: default;
}

.pt-gallery-main-item .pt-gallery-video-wrapper iframe,
.pt-gallery-main-item .pt-gallery-map-wrapper iframe {
    pointer-events: auto !important;
}

/* Remove overlays in main view */
.pt-gallery-main-item .pt-gallery-video-overlay,
.pt-gallery-main-item .pt-gallery-map-overlay {
    display: none !important;
}

/* Ensure iframe is fully interactive in main view */
.pt-gallery-main-item iframe {
    z-index: 1;
    pointer-events: auto !important;
}

/* Thumbnails Grid */
.pt-gallery-thumbs-wrapper {
    position: relative;
}

.pt-gallery-thumbs {
    display: flex;
    flex-direction: row; /* Força direção horizontal */
    gap: var(--thumbs-gap, 10px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex-wrap: nowrap; /* Força uma única linha */
    align-items: stretch;
}

/* Remove espaços vazios e elementos sem conteúdo */
.pt-gallery-thumbs::after,
.pt-gallery-thumbs::before,
.pt-gallery-thumb::after,
.pt-gallery-thumb::before {
    content: none !important;
    display: none !important;
}

.pt-gallery-thumbs > *:empty,
.pt-gallery-thumbs > .pt-gallery-thumb:empty {
    display: none !important;
}

/* Força remoção de elementos vazios que podem ter sido criados por Elementor */
.pt-gallery-thumbs-wrapper .pt-gallery-thumb:not(:has(*)) {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Fallback para navegadores sem suporte a :has() */
@supports not (selector(:has(*))) {
    .pt-gallery-thumb:empty,
    .pt-gallery-thumb[style*="background"]:not([class*="video"]):not([class*="map"]) {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
    }
}

.pt-gallery-thumbs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Cálculo dinâmico da largura das miniaturas baseado nas colunas visíveis e no gap */
.pt-gallery-thumbs-columns-1 .pt-gallery-thumb { 
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
.pt-gallery-thumbs-columns-2 .pt-gallery-thumb { 
    width: calc((100% - var(--thumbs-gap, 10px)) / 2);
    min-width: calc((100% - var(--thumbs-gap, 10px)) / 2);
    max-width: calc((100% - var(--thumbs-gap, 10px)) / 2);
    flex: 0 0 calc((100% - var(--thumbs-gap, 10px)) / 2);
}
.pt-gallery-thumbs-columns-3 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
}
.pt-gallery-thumbs-columns-4 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
}
.pt-gallery-thumbs-columns-5 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 4)) / 5);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 4)) / 5);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 4)) / 5);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 4)) / 5);
}
.pt-gallery-thumbs-columns-6 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 5)) / 6);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 5)) / 6);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 5)) / 6);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 5)) / 6);
}
.pt-gallery-thumbs-columns-7 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 6)) / 7);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 6)) / 7);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 6)) / 7);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 6)) / 7);
}
.pt-gallery-thumbs-columns-8 .pt-gallery-thumb { 
    width: calc((100% - (var(--thumbs-gap, 10px) * 7)) / 8);
    min-width: calc((100% - (var(--thumbs-gap, 10px) * 7)) / 8);
    max-width: calc((100% - (var(--thumbs-gap, 10px) * 7)) / 8);
    flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 7)) / 8);
}

/* Thumbnail Navigation Buttons */
.pt-thumbs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.pt-thumbs-nav-btn:hover {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.pt-thumbs-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.6);
}

.pt-thumbs-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.pt-thumbs-nav-btn svg {
    width: 22px;
    height: 22px;
}

.pt-thumbs-prev {
    left: -18px;
}

.pt-thumbs-next {
    right: -18px;
}

@media (max-width: 768px) {
    .pt-gallery-thumbs-columns-5 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-6 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-7 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-8 .pt-gallery-thumb { 
        width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
        min-width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
        max-width: calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
        flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 3)) / 4);
    }
}

@media (max-width: 576px) {
    .pt-gallery-thumbs-columns-3 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-4 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-5 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-6 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-7 .pt-gallery-thumb,
    .pt-gallery-thumbs-columns-8 .pt-gallery-thumb { 
        width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
        min-width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
        max-width: calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
        flex: 0 0 calc((100% - (var(--thumbs-gap, 10px) * 2)) / 3);
    }
}

.pt-gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: transparent;
}

/* Hide empty thumbnails */
.pt-gallery-thumb:empty {
    display: none !important;
}

/* Remove any debug borders and empty elements */
.pt-gallery-thumb:not(:has(img)):not(:has(.pt-thumb-placeholder)):not(:has(.pt-thumb-video-wrapper)) {
    display: none !important;
    border: none !important;
    background: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Esconder thumbs que só têm whitespace */
.pt-gallery-thumb:not(:has(img)):not(:has(.pt-thumb-placeholder)):not(:has(.pt-thumb-video-wrapper)):not(:has(svg)) {
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.pt-gallery-thumb:hover {
    border-color: rgba(255, 107, 53, 0.5);
    transform: scale(1.05);
}

.pt-gallery-thumb.active {
    border-color: #ff6b35;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.pt-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f0f0f0;
    color: #999;
}

/* Ocultar elementos de thumb que não têm imagem ou conteúdo */
.pt-gallery-thumb:not(:has(img)):not(:has(.pt-thumb-placeholder)):not(:has(.pt-thumb-video-wrapper)) {
    display: none !important;
}

.pt-thumb-placeholder.pt-thumb-video {
    background: #1a1a1a;
    color: #fff;
}

.pt-thumb-placeholder.pt-thumb-map {
    background: #e8f4f8;
    color: #0066cc;
}

.pt-thumb-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Thumbnail with Play Icon */
.pt-thumb-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.pt-thumb-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pt-gallery-thumb:hover .pt-thumb-video-icon {
    background: #ff6b35;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5);
}

.pt-thumb-video-icon svg {
    margin-left: 2px;
}

/* Gallery Map Item */
.pt-gallery-map-item {
    background: #e5e3df;
}

.pt-gallery-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    cursor: pointer;
}

.pt-gallery-map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Only apply hover effects in grid/masonry layouts, not in featured main */
.pt-gallery-grid .pt-gallery-map-wrapper iframe,
.pt-gallery-masonry .pt-gallery-map-wrapper iframe {
    pointer-events: none;
    transition: pointer-events 0.3s;
}

.pt-gallery-grid .pt-gallery-map-item:hover .pt-gallery-map-wrapper iframe,
.pt-gallery-masonry .pt-gallery-map-item:hover .pt-gallery-map-wrapper iframe {
    pointer-events: auto;
}

.pt-gallery-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Only show overlay effects in grid/masonry layouts */
.pt-gallery-grid .pt-gallery-map-item:hover .pt-gallery-map-overlay,
.pt-gallery-masonry .pt-gallery-map-item:hover .pt-gallery-map-overlay {
    opacity: 0;
}

.pt-gallery-map-icon {
    color: #fff;
    background: rgba(255, 107, 53, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pt-gallery-map-label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Starting Price Header */
.pt-starting-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pt-price-from {
    font-size: clamp(10px, 3cqi, 12px);
    color: #666;
}

.pt-price-value {
    font-size: clamp(20px, 7cqi, 28px);
    font-weight: 700;
    color: #ff6b35;
}

.pt-price-per {
    font-size: clamp(10px, 3cqi, 12px);
    color: #666;
}

/* Booking Responsive Layout */
@media (max-width: 768px) {
    .pt-booking-form-title,
    .pt-starting-price,
    .pt-calendar-title,
    .pt-guests-title,
    .pt-guest-info,
    .pt-price-summary,
    .pt-price-row,
    .pt-submit-booking {
        text-align: center;
    }

    .pt-booking-form-container {
        padding: clamp(15px, 8vw, 25px);
    }

    .pt-calendar-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .pt-starting-price,
    .pt-price-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .pt-guest-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .pt-guest-info {
        align-items: center;
    }

    .pt-guest-counter {
        width: 100%;
        justify-content: center;
    }
}

@container pt-booking (max-width: 280px) {
    .pt-starting-price {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
    }
}

/* Tour Excerpt */
.pt-tour-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Archive Tour */
.pt-archive-tour {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.pt-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.pt-archive-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.pt-archive-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Pagination */
.pt-pagination {
    margin-top: 40px;
    text-align: center;
}

.pt-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pt-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
}

.pt-pagination .page-numbers:hover,
.pt-pagination .page-numbers.current {
    background: #ff6b35;
    color: #fff;
}

/* Lightbox Styles (basic - works with native/Elementor lightbox) */
.pt-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.pt-lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.pt-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.pt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.pt-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
