/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
    --rp-primary: #005b96;
    --rp-secondary: #03396c;
    --rp-accent: #6497b1;
    --rp-text: #333333;
    --rp-text-light: #ffffff;
    --rp-bg-light: #f4f7f6;
    --rp-border-radius: 16px;
    --rp-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --rp-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --rp-shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Grid View (Cards with Hover Reveal)
   ========================================================================== */
.rowan-pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 3rem 0;
}

.rowan-pool-card {
    position: relative;
    border-radius: var(--rp-border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--rp-text-light);
    aspect-ratio: 4/5;
    display: block;
    box-shadow: var(--rp-shadow);
    transition: var(--rp-transition);
    background: #000; /* Fallback */
}

.rowan-pool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rp-shadow-hover);
}

.rowan-pool-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rp-transition);
}

.rowan-pool-card:hover .rowan-pool-card-image {
    transform: scale(1.05);
}

.rowan-pool-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    transition: var(--rp-transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    box-sizing: border-box;
}

.rowan-pool-card:hover .rowan-pool-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.rowan-pool-card-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--rp-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--rp-transition);
}

.rowan-pool-card:hover .rowan-pool-card-title {
    transform: translateY(0);
}

.rowan-pool-card-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--rp-transition);
    max-height: 0;
    overflow: hidden;
}

.rowan-pool-card:hover .rowan-pool-card-reveal {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px; /* Arbitrary max height for animation */
    margin-top: 15px;
}

.rowan-pool-card-sizes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rowan-pool-card-sizes li {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rowan-pool-card-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--rp-primary);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--rp-transition);
    text-align: center;
    border: none;
    cursor: pointer;
}

.rowan-pool-card-btn:hover {
    background: var(--rp-secondary);
}

/* ==========================================================================
   Single View (Hero Overlap & Custom UI)
   ========================================================================== */
.rowan-pool-single {
    position: relative;
    background: var(--rp-bg-light);
    padding-bottom: 5rem;
}

/* Hero Section */
.rowan-pool-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: #000;
    overflow: hidden;
}

@media (max-width: 768px) {
    .rowan-pool-hero {
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: auto;
    }
}

.rowan-pool-hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rowan-pool-hero-media iframe,
.rowan-pool-hero-media video,
.rowan-pool-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rowan-pool-hero-content {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    color: #ffffff;
    padding-bottom: 120px; /* Ensures space above the overlapping content wrapper */
}

.rowan-pool-hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    line-height: 1.1;
    color: #ffffff;
}

.rowan-pool-hero-desc {
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    line-height: 1.6;
    color: #ffffff;
}

/* Overlapping Content Container */
.rowan-pool-content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: -100px auto 0;
    padding: 0 20px;
    z-index: 10;
}

/* Features & Top Down Grid */
.rowan-pool-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .rowan-pool-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Features List */
.rowan-pool-features-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--rp-border-radius);
    box-shadow: var(--rp-shadow);
}

.rowan-pool-section-title {
    font-size: 2rem;
    color: var(--rp-primary);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.rowan-pool-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--rp-accent);
    border-radius: 2px;
}

.rowan-pool-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.rowan-pool-features-list li {
    background: var(--rp-bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--rp-secondary);
    display: flex;
    align-items: center;
    transition: var(--rp-transition);
    border-left: 4px solid transparent;
}

.rowan-pool-features-list li:hover {
    transform: translateX(10px);
    border-left-color: var(--rp-primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.rowan-pool-features-list li::before {
    content: "✦";
    color: var(--rp-accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Top Down View */
.rowan-pool-top-down-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--rp-border-radius);
    box-shadow: var(--rp-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rowan-pool-top-down-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--rp-transition);
}

.rowan-pool-top-down-img:hover {
    transform: scale(1.02);
}

/* Custom Sizes Display (Replacing standard table) */
.rowan-pool-sizes-container {
    background: #fff;
    padding: 50px;
    border-radius: var(--rp-border-radius);
    box-shadow: var(--rp-shadow);
}

.rowan-pool-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.rowan-pool-size-card {
    background: var(--rp-bg-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.rowan-pool-size-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.rowan-pool-size-img-wrap {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

.rowan-pool-size-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rowan-pool-size-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rp-primary);
    margin: 0;
}

.rowan-pool-size-main-dim {
    font-size: 1.1rem;
    color: var(--rp-text);
    font-weight: 600;
    margin-top: 5px;
}

.rowan-pool-size-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.rowan-pool-spec-item {
    display: flex;
    flex-direction: column;
}

.rowan-pool-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.rowan-pool-spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-secondary);
}
