/* ========================================
   Responsive Styles - Updated & Cleaned
======================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {

    /* Mobile Header - Consistent Height */
    .main-nav {
        min-height: 58px !important;
        max-height: 58px !important;
    }

    .main-nav-inner {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    /* Hero Slider - Menyatu dengan Header */
    .hero-slider {
        display: block !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto;
        min-height: 550px;
        max-height: 650px;
    }

    .slider-container {
        height: 100%;
        min-height: 550px;
    }

    .slider-slide {
        height: 100%;
        min-height: 550px;
    }

    .slider-slide .slide-bg {
        background-image: none !important;
    }

    .slider-slide .slide-bg picture,
    .slider-slide .slide-bg .slide-picture {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .slider-slide .slide-bg img,
    .slider-slide .slide-bg .slide-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
        animation: none !important;
    }

    .slider-content {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .slider-text {
        max-width: 100%;
        text-align: center;
    }

    .slider-text .subtitle {
        font-size: 1.6rem;
        letter-spacing: 1px;
        margin-bottom: var(--spacing-xs);
    }

    .slider-text h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }

    .slider-text p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: var(--spacing-md);
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        min-height: 200px;
    }

    /* Page Header */
    .page-header {
        margin-top: -80px !important;
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        border-radius: 0 0 30px 30px !important;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-news {
        padding-top: 200px !important;
        padding-bottom: 60px !important;
        margin-top: -80px !important;
        border-radius: 0 0 30px 30px !important;
    }
}

/* Tablet Small */
@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }

    .single-post-wrapper {
        max-width: 100%;
    }

    .post-featured-image {
        height: auto;
        aspect-ratio: 16/9;
        border-radius: 0;
        margin-bottom: var(--spacing-lg);
    }

    .post-featured-image img {
        border-radius: 0;
    }

    /* Hero Slider - Optimized Height */
    .hero-slider {
        display: block !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto;
        min-height: 460px;
        max-height: 560px;
    }

    .slider-container {
        height: 100%;
        min-height: 460px;
    }

    .slider-slide {
        height: 100%;
        min-height: 460px;
    }

    .slider-content {
        padding: var(--spacing-xl) 0;
        height: 100%;
        min-height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
        padding-bottom: 95px;
    }

    .slider-text {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-md);
        text-align: center;
    }

    .slider-text .subtitle {
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .slider-text h1 {
        font-size: 1.85rem;
        margin-bottom: var(--spacing-xs);
        line-height: 1.22;
    }

    .slider-text p {
        font-size: 0.875rem;
        font-style: italic;
        margin: 0 auto var(--spacing-md);
        line-height: 1.5;
        max-width: 100%;
    }

    .slider-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: center;
        flex-wrap: wrap;
    }

    .slider-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
        min-width: 140px;
    }

    .slider-arrows {
        display: none;
    }

    .slider-nav {
        bottom: clamp(115px, 12vw, 140px);
    }

    /* Section spacing */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Section Header - Tablet */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        margin-bottom: 42px;
        padding-bottom: var(--spacing-lg);
    }

    .section-header::after {
        height: 2px;
    }

    .section-heading {
        width: 100%;
        gap: var(--spacing-2xs);
    }

    .section-badge {
        font-size: 0.625rem;
        padding: 4px 12px;
    }

    .section-title-main {
        font-size: 1.875rem;
    }

    .section-desc {
        font-size: 0.9375rem;
        max-width: 100%;
        text-align: left;
    }

    .section-title {
        margin-bottom: var(--spacing-xl);
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Services Grid - 2 columns on mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-lg);
        text-align: center;
    }

    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        margin: 0 auto var(--spacing-md);
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .service-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .news-card {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .news-image {
        height: 220px;
        overflow: hidden;
    }

    .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .news-excerpt {
        flex: 1;
    }

    /* Rest Area */
    .rest-area-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .rest-card-inner {
        height: 400px;
    }

    .rest-area-single-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .rest-area-single-info {
        position: relative;
        top: 0;
    }

    .rest-area-single-info>* {
        padding: var(--spacing-xl);
    }

    .rest-area-facilities-grid {
        grid-template-columns: 1fr;
    }

    .rest-area-quick-info {
        grid-template-columns: 1fr;
    }

    .rest-area-carousel {
        padding: 0 40px;
    }

    .rest-area-swiper-button {
        width: 44px;
        height: 44px;
    }

    .rest-area-swiper-button.prev {
        left: -10px;
    }

    .rest-area-swiper-button.next {
        right: -10px;
    }

    /* Page Header */
    .page-header {
        margin-top: -80px;
        padding: 90px 0 50px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-body {
        padding: var(--spacing-lg);
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Mobile Header - Compact Height */
    .main-nav {
        min-height: 54px !important;
        max-height: 54px !important;
    }

    .main-nav-inner {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    /* Page Header */
    .page-header {
        margin-top: -72px !important;
        padding-top: 85px !important;
        padding-bottom: 40px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .page-header-news {
        margin-top: -72px !important;
        padding-top: 170px !important;
        padding-bottom: 40px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Hero Slider - Compact Mobile */
    .hero-slider {
        display: block !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: 420px;
        max-height: 500px;
        height: auto;
    }

    .slider-container {
        min-height: 420px;
        height: 100%;
    }

    .slider-slide {
        min-height: 420px;
        height: 100%;
    }

    .slider-content {
        min-height: 420px;
        height: 100%;
        padding: var(--spacing-md) 0;
        padding-top: 75px;
        padding-bottom: 85px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .slider-text {
        text-align: center;
        margin: 0 auto;
        padding: 0;
    }

    .slider-text .subtitle {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .slider-text h1 {
        font-size: 1.55rem;
        line-height: 1.22;
        margin-bottom: 6px;
    }

    .slider-text p {
        font-size: 0.8rem;
        font-style: italic;
        line-height: 1.45;
        margin: 0 auto var(--spacing-sm);
    }

    .slider-buttons {
        flex-direction: row;
        gap: var(--spacing-xs);
        justify-content: center;
        flex-wrap: wrap;
    }

    .slider-buttons .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.8rem;
        min-width: 128px;
    }

    /* Section */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Section Header - Mobile */
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
        margin-bottom: 32px;
        padding-bottom: var(--spacing-md);
        padding-left: 0;
        padding-right: 0;
    }

    .section-header::after {
        height: 2px;
    }

    .section-heading {
        width: 100%;
        gap: 6px;
        align-items: center;
    }

    .section-badge {
        font-size: 0.55rem;
        padding: 4px 12px;
        letter-spacing: 0.8px;
    }

    .section-title-main {
        font-size: 1.45rem;
    }

    .section-desc {
        font-size: 0.875rem;
        max-width: 100%;
        text-align: center;
    }

    .section-header.text-left {
        align-items: flex-start;
        text-align: left;
    }

    .section-header.text-left .section-heading {
        align-items: flex-start;
    }

    .section-header.text-left .section-desc {
        text-align: left;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Cards */
    .service-card {
        padding: var(--spacing-lg);
        text-align: center;
    }

    .service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto var(--spacing-md);
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.875rem;
    }

    /* Rest Area Modern Mobile */
    .rest-area-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 480px;
        margin: 0 auto;
    }

    .rest-area-carousel {
        padding: 0 4px;
    }

    .rest-area-card {
        height: auto;
        min-height: auto;
    }

    .rest-card-inner {
        height: 380px;
        border-radius: 18px;
    }

    .rest-card-top {
        padding: 14px 16px;
        gap: 8px;
    }

    .rest-card-tag {
        padding: 4px 10px;
        font-size: 0.72rem;
    }

    .rest-card-body {
        padding: 16px 18px 20px;
        gap: 12px;
    }

    .rest-card-cta {
        margin: 2px -18px -20px -18px;
        padding: 14px 18px 16px 18px;
    }

    .rest-card-title {
        font-size: 1.22rem;
        line-height: 1.3;
    }

    .rest-card-facility {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .rest-card-facilities {
        gap: 6px;
    }

    .rest-area-swiper .swiper-slide {
        min-height: 380px;
    }

    .rest-area-swiper-button {
        display: none;
    }

    /* Rest Area Single Page */
    .rest-area-single-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .rest-area-single-info {
        position: relative;
        top: 0;
    }

    .rest-area-single-info>* {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .rest-area-single-image {
        margin-bottom: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .rest-area-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .rest-area-badge i {
        font-size: 0.6rem;
    }

    .rest-area-map-widget {
        border-radius: var(--radius-lg);
        margin-bottom: var(--spacing-md);
    }

    .rest-area-quick-info {
        gap: var(--spacing-sm);
    }

    .quick-info-card {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .quick-info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .quick-info-label {
        font-size: 0.75rem;
    }

    .quick-info-value {
        font-size: 0.95rem;
    }

    .quick-info-arrow {
        font-size: 1rem;
    }

    .rest-area-facilities-block h3 {
        font-size: 1.1rem;
    }

    .rest-area-facilities-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .rest-area-facility-item {
        padding: var(--spacing-sm);
    }

    .facility-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .facility-label {
        font-size: 0.875rem;
    }

    .rest-area-content h3 {
        font-size: 1.1rem;
    }

    .rest-area-content p {
        font-size: 0.9rem;
    }

    .rest-area-cta .btn-block {
        font-size: 1rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    /* News cards */
    .news-card-content {
        padding: var(--spacing-lg);
    }

    .news-card h3 {
        font-size: 1rem;
    }

    .news-card-image {
        height: 200px;
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xs);
    }

    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1rem;
        min-height: 48px;
    }

    .text-center .btn {
        min-width: 200px;
    }

    .phone-details strong {
        font-size: 1.25rem;
    }

    .mobile-menu-cta .btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* Single Rest Area (Solid Clean Design) */
    .page-header-rest-area {
        padding-top: 110px !important;
        padding-bottom: 24px !important;
        margin-top: -70px !important;
    }

    .page-header-rest-area .page-header-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 8px;
    }

    .page-header-rest-area .page-header-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .page-header-rest-area .breadcrumbs {
        margin-bottom: 12px;
        font-size: 0.78rem;
    }

    .rest-area-header-pills {
        gap: 6px;
    }

    .rest-area-pill {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    .clean-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .clean-facility-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .facility-icon-wrap {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .facility-label {
        font-size: 0.78rem;
    }

    .clean-card,
    .sidebar-main-card {
        padding: 18px 16px;
    }

    .iconic-feature-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .iconic-photo-img {
        height: 180px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .related-image {
        height: 180px;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .hero-slider,
    .site-footer,
    .back-to-top,
    .mobile-menu-overlay,
    .sidebar {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}