/* Triple-t Villa Custom Styles */

/* Logo Styling */
#logo img {
    max-height: 50px;
    width: auto;
}

#logo .logo-scroll {
    display: none;
}

header.smaller #logo .logo-main {
    display: none;
}

header.smaller #logo .logo-scroll {
    display: block;
}

/* Footer Logo */
.footer-logo {
    max-height: 80px;
    width: auto;
}

/* Button colors - Fixed hover animation */
.btn-main {
    background: var(--primary-color) !important;
    transition: all 0.3s ease !important;
}

.btn-main:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(191, 30, 46, 0.4);
}

.btn-line {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-line:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

header.transparent:not(.smaller) .btn-line {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

header.transparent:not(.smaller) .btn-line:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

header.smaller .btn-line {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

header.smaller .btn-line:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Airbnb Button */
.btn-airbnb {
    background: #FF5A5F !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-airbnb:hover {
    background: #E04850 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.4);
}

.btn-airbnb svg {
    flex-shrink: 0;
}

/* ID Color overrides */
.id-color {
    color: #f6931e !important;
}

/* Accent colors */
.subtitle.id-color {
    color: #bf1e2e !important;
}

/* Section backgrounds */
.section-dark {
    background-color: #231f20;
}

/* Stars rating color */
.d-stars i,
.de-rating-ext i {
    color: #f6931e;
}

/* Breadcrumb styling */
.crumb li a {
    color: #f6931e;
}

/* Footer styling */
footer {
    background-color: #231f20;
}

footer .subfooter {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Topbar styling */
#topbar {
    background-color: #231f20;
}

/* Preloader color */
#de-loader .lds-roller div:after {
    background: #f6931e;
}

/* Back to top button */
#back-to-top {
    background: #f6931e;
}

#back-to-top:hover {
    background: #bf1e2e;
}
/* Override hardcoded colors from style.css */
/* Mobile menu select */
#mainmenu select {
    background: var(--primary-color) !important;
}

/* Error states - use secondary color (red) */
.error_input {
    border-color: var(--secondary-color) !important;
}

.red {
    color: var(--secondary-color) !important;
}

/* Table indicators */
.de-table.table-rank .d-min {
    color: var(--secondary-color) !important;
}

.de-table.table-rank .d-plus {
    color: var(--primary-color) !important;
}

/* Links hover state */
a:hover {
    color: var(--primary-color);
}

/* Social icons hover */
.social-icons a:hover i {
    color: var(--primary-color) !important;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #ffffff;
}

/* Mobile Navigation Fixes */
@media only screen and (max-width: 767px) {
    /* Show logo on mobile */
    header .logo-main {
        display: block !important;
    }
    
    /* Hide scroll logo on mobile (show main logo always) */
    header .logo-scroll {
        display: none !important;
    }
    
    header.smaller .logo-main {
        display: block !important;
    }
    
    header.smaller .logo-scroll {
        display: none !important;
    }
    
    /* Ensure logo is visible in mobile header */
    header #logo {
        display: block !important;
    }
    
    header #logo img {
        max-height: 40px;
        width: auto;
    }
    
    /* Fix header layout on mobile */
    header .de-flex {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    header .de-flex-col:first-child {
        flex: 0 0 auto;
    }
    
    /* Hide airbnb button on very small screens, show menu button */
    header .btn-airbnb {
        display: none !important;
    }
    
    /* Ensure menu button is visible */
    #menu-btn {
        display: block !important;
        position: relative;
        z-index: 1000;
    }
    
    /* Fix menu positioning */
    header.header-mobile #mainmenu {
        top: 60px;
    }
}

/* Tablet Navigation Fixes */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    /* Show logo on tablet */
    header .logo-main {
        display: block !important;
    }
    
    header #logo {
        display: block !important;
    }
    
    header #logo img {
        max-height: 40px;
        width: auto;
    }
}

/* =============================================
   Room Single Page - Section Navigation
   ============================================= */

.room-section-nav {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    z-index: 900;
    transition: all 0.3s ease;
}

.room-section-nav.is-sticky {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.room-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.room-nav-inner::-webkit-scrollbar {
    display: none;
}

.room-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.room-nav-link i {
    font-size: 13px;
    opacity: 0.7;
}

.room-nav-link:hover {
    color: #f6931e;
    background: rgba(246, 147, 30, 0.04);
}

.room-nav-link.active {
    color: #f6931e;
    border-bottom-color: #f6931e;
    font-weight: 600;
}

.room-nav-link.active i {
    opacity: 1;
}

/* =============================================
   Room Single Page - Other Rooms
   ============================================= */

.other-room-item {
    padding: 10px;
}

.other-room-thumb {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.other-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.other-room-thumb:hover img {
    transform: scale(1.05);
}

.other-room-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6931e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.other-room-link:hover {
    color: #bf1e2e;
}

.other-room-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.other-room-link:hover i {
    transform: translateX(4px);
}

.other-room-name {
    font-size: 20px;
    color: #231f20;
    margin: 0 0 6px;
    font-weight: 600;
}

/* =============================================
   Room Single Page - Responsive
   ============================================= */

@media only screen and (max-width: 992px) {
    .room-section-nav.is-sticky {
        top: 60px;
    }
    
    .room-nav-link {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .other-room-image {
        height: 200px;
    }
}

@media only screen and (max-width: 767px) {
    .room-section-nav.is-sticky {
        top: 56px;
    }
    
    .room-nav-link {
        padding: 10px 14px;
        font-size: 11px;
        gap: 5px;
    }
    
    .room-nav-link i {
        font-size: 11px;
    }
    
    .other-room-info {
        padding: 16px 18px 20px;
    }
    
    .other-room-info h4 {
        font-size: 18px;
    }
    
    .other-room-meta {
        gap: 10px;
    }
}